]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
df: allow translators to reorder "1K-blocks" header
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 26 Aug 2012 09:57:22 +0000 (16:57 +0700)
committerJim Meyering <meyering@redhat.com>
Sun, 26 Aug 2012 20:39:12 +0000 (22:39 +0200)
* src/df.c (get_header): Mark two "%s-%s" strings for translation
and give translators a hint what each is for.

src/df.c

index 9d956cd037fac7837171f2c281bc6491bada49e0..83fef7719e8e72fef7f2e166a83a7517aa44c80d 100644 (file)
--- a/src/df.c
+++ b/src/df.c
@@ -315,7 +315,8 @@ get_header (void)
 
           char *num = human_readable (output_block_size, buf, opts, 1, 1);
 
-          if (asprintf (&cell, "%s-%s", num, header) == -1)
+          /* TRANSLATORS: this is the "1K-blocks" header in "df" output.  */
+          if (asprintf (&cell, _("%s-%s"), num, header) == -1)
             cell = NULL;
         }
       else if (header_mode == POSIX_MODE && field == TOTAL_FIELD)
@@ -323,7 +324,8 @@ get_header (void)
           char buf[INT_BUFSIZE_BOUND (uintmax_t)];
           char *num = umaxtostr (output_block_size, buf);
 
-          if (asprintf (&cell, "%s-%s", num, header) == -1)
+          /* TRANSLATORS: this is the "1024-blocks" header in "df -P".  */
+          if (asprintf (&cell, _("%s-%s"), num, header) == -1)
             cell = NULL;
         }
       else