Hello,

We cannot translate the following string in french:
#: src/dd.c:307
msgid ""
"\n"
"BLOCKS and BYTES may be followed by the following multiplicative suffixes:\n"
"xM M, c 1, w 2, b 512, kB 1000, K 1024, MB 1,000,000, M 1,048,576,\n"
"GB 1,000,000,000, G 1,073,741,824, and so on for T, P, E, Z, Y.\n"
"Each KEYWORD may be:\n"
"\n"

This is because people from France would like to write 1.000.000 and the
ones from canada would like to write 1,000,000. To fix this issue, there is
three solutions: either split the translation for both country (quite
overkilling), choose that the solution from France should apply worldwide
(quite rude) or use fprintf to have the LC_NUMERIC field from locales to do
the job automagically. 

The following patch do the third one. Could you consider applying this?

Thanks, Mt.
PS: please keep me or the list of french translators CCed in replies.

-- 
Freedom is not free.
diff -ru coreutils-4.5.10-orig/src/dd.c coreutils-4.5.10/src/dd.c
--- coreutils-4.5.10-orig/src/dd.c      2003-03-26 17:16:59.000000000 +0100
+++ coreutils-4.5.10/src/dd.c   2003-03-26 17:26:45.000000000 +0100
@@ -304,14 +304,14 @@
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      fputs (_("\
+      fprintf (stdout,_("\
 \n\
 BLOCKS and BYTES may be followed by the following multiplicative suffixes:\n\
-xM M, c 1, w 2, b 512, kB 1000, K 1024, MB 1,000,000, M 1,048,576,\n\
-GB 1,000,000,000, G 1,073,741,824, and so on for T, P, E, Z, Y.\n\
+xM M, c 1, w 2, b 512, kB 1000, K 1024, MB %d, M %d,\n\
+GB %d, G %d, and so on for T, P, E, Z, Y.\n\
 Each KEYWORD may be:\n\
 \n\
-"), stdout);
+"), 1000000,1048576,1000000000,1073741824);
       fputs (_("\
   ascii     from EBCDIC to ASCII\n\
   ebcdic    from ASCII to EBCDIC\n\
diff -ru coreutils-4.5.10-orig/src/df.c coreutils-4.5.10/src/df.c
--- coreutils-4.5.10-orig/src/df.c      2003-03-26 17:16:59.000000000 +0100
+++ coreutils-4.5.10/src/df.c   2003-03-26 17:18:23.000000000 +0100
@@ -739,10 +739,10 @@
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      fputs (_("\n\
+      fprintf (stdout, _("\n\
 SIZE may be (or may be an integer optionally followed by) one of following:\n\
-kB 1000, K 1024, MB 1,000,000, M 1,048,576, and so on for G, T, P, E, Z, Y.\n\
-"), stdout);
+kB 1000, K 1024, MB %d, M %d, and so on for G, T, P, E, Z, Y.\n\
+"), 1000000,1048576);
       printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
     }
   exit (status);
diff -ru coreutils-4.5.10-orig/src/du.c coreutils-4.5.10/src/du.c
--- coreutils-4.5.10-orig/src/du.c      2003-03-26 17:16:59.000000000 +0100
+++ coreutils-4.5.10/src/du.c   2003-03-26 17:19:21.000000000 +0100
@@ -212,10 +212,10 @@
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      fputs (_("\n\
+      fprintf (stdout,_("\n\
 SIZE may be (or may be an integer optionally followed by) one of following:\n\
-kB 1000, K 1024, MB 1,000,000, M 1,048,576, and so on for G, T, P, E, Z, Y.\n\
-"), stdout);
+kB 1000, K 1024, MB %d, M %d, and so on for G, T, P, E, Z, Y.\n\
+"), 1000000,1048576);
       printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
     }
   exit (status);
diff -ru coreutils-4.5.10-orig/src/ls.c coreutils-4.5.10/src/ls.c
--- coreutils-4.5.10-orig/src/ls.c      2003-03-26 17:16:59.000000000 +0100
+++ coreutils-4.5.10/src/ls.c   2003-03-26 17:20:10.000000000 +0100
@@ -3876,10 +3876,10 @@
 "), stdout);
       fputs (HELP_OPTION_DESCRIPTION, stdout);
       fputs (VERSION_OPTION_DESCRIPTION, stdout);
-      fputs (_("\n\
+      fprintf (stdout,_("\n\
 SIZE may be (or may be an integer optionally followed by) one of following:\n\
-kB 1000, K 1024, MB 1,000,000, M 1,048,576, and so on for G, T, P, E, Z, Y.\n\
-"), stdout);
+kB 1000, K 1024, MB %d, M %d, and so on for G, T, P, E, Z, Y.\n\
+"), 1000000,1048576);
       fputs (_("\
 \n\
 By default, color is not used to distinguish types of files.  That is\n\
_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to