mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2025-09-10 07:59:52 +02:00
df: add comments to help translators align column headers
* src/df.c (print_header): Add a comment telling translators to retain the message length, and another to align header translations.
This commit is contained in:
committed by
Jim Meyering
parent
b0782cb9ea
commit
4668ae8f06
8
src/df.c
8
src/df.c
@@ -148,11 +148,19 @@ print_header (void)
|
||||
char buf[MAX (LONGEST_HUMAN_READABLE + 1, INT_BUFSIZE_BOUND (uintmax_t))];
|
||||
|
||||
if (print_type)
|
||||
/* TRANSLATORS:
|
||||
For best results (df header/column alignment), ensure that
|
||||
your translation has the same length as the original. */
|
||||
fputs (_("Filesystem Type"), stdout);
|
||||
else
|
||||
fputs (_("Filesystem "), stdout);
|
||||
|
||||
if (inode_format)
|
||||
/* TRANSLATORS:
|
||||
For best results (df header/column alignment), ensure that
|
||||
your translation has the same length as the original.
|
||||
Also, each column name translation should end at the same
|
||||
column as the corresponding original. */
|
||||
printf (_(" Inodes IUsed IFree IUse%%"));
|
||||
else if (human_output_opts & human_autoscale)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user