[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] df: allow translators to reorder "1K-blocks" header
From: |
Nguyễn Thái Ngọc Duy |
Subject: |
[PATCH] df: allow translators to reorder "1K-blocks" header |
Date: |
Sun, 26 Aug 2012 16:57:22 +0700 |
* src/df.c (get_header): Mark "%s-%s" for translation. Give
translators some hint what it is for.
---
src/df.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/df.c b/src/df.c
index 9d956cd..1de44af 100644
--- 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 "1K-blocks" header in df */
+ 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 "1024-blocks" header in "df -P" */
+ if (asprintf (&cell, _("%s-%s"), num, header) == -1)
cell = NULL;
}
else
--
1.7.12.rc2.18.g61b472e
- [PATCH] df: allow translators to reorder "1K-blocks" header,
Nguyễn Thái Ngọc Duy <=