bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in french localization


From: Jim Meyering
Subject: Re: bug in french localization
Date: Sat, 01 Mar 2003 22:22:09 +0100

...
> That will not be enough. The French translation of "Filesystem " is way
> too long.

Ahh.. I see
Thanks for explaining.
This should make it so your translation strings can be used:

        * src/df.c (print_header): Don't embed spaces in a separate `Type'
        header string.  Instead, put `Filesystem' and `Type' headers in the
        same string, so translators can use horizontal space as needed.
        Reported by Jean Charles Delepine.

Index: df.c
===================================================================
RCS file: /fetish/cu/src/df.c,v
retrieving revision 1.141
diff -u -p -u -p -r1.141 df.c
--- df.c        20 Feb 2003 10:37:14 -0000      1.141
+++ df.c        1 Mar 2003 21:10:43 -0000
@@ -148,16 +148,11 @@ static void
 print_header (void)
 {
   char buf[MAX (LONGEST_HUMAN_READABLE + 1, INT_BUFSIZE_BOUND (uintmax_t))];
-  char const *type_header = _("   Type");
 
-  printf (_("Filesystem "));
-
-  /* Print the `Type' header if required (--print-type, -T),
-     or an equivalent number of spaces.  */
   if (print_type)
-    fputs (type_header, stdout);
+    fputs (_("Filesystem    Type"), stdout);
   else
-    printf ("%-*s", strlen (type_header), "");
+    fputs (_("Filesystem        "), stdout);
 
   if (inode_format)
     printf (_("    Inodes   IUsed   IFree IUse%%"));





reply via email to

[Prev in Thread] Current Thread [Next in Thread]