diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2012-08-26 16:57:22 +0700 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-08-26 22:39:12 +0200 |
commit | 87e71b2d771ab7267ec7f5bfb218ae8be8d2e093 (patch) | |
tree | 8cf34d130b0a2d626084400de5e1aed5143f383e /src | |
parent | c9f4c323220f51a42e3da8ea79f9ddcedab041b9 (diff) | |
download | coreutils-87e71b2d771ab7267ec7f5bfb218ae8be8d2e093.tar.xz |
df: allow translators to reorder "1K-blocks" header
* src/df.c (get_header): Mark two "%s-%s" strings for translation
and give translators a hint what each is for.
Diffstat (limited to 'src')
-rw-r--r-- | src/df.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |