summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-01 21:20:57 +0000
committerJim Meyering <jim@meyering.net>2003-03-01 21:20:57 +0000
commitaa1ae08fc54d81f24a38edef4ecf7d65665a6d91 (patch)
tree72fac2f9db19f2ad215120f24d909b71845dfac2 /src
parent5f80e1064534cd432ab0f1e67b71459e0e8d10ff (diff)
downloadcoreutils-aa1ae08fc54d81f24a38edef4ecf7d65665a6d91.tar.xz
(print_header): Don't embed spaces in a separate `Type'
header string. Instead, put `Filesystem' and `Type' headers in the same string, so translators can use horizontal space as needed.
Diffstat (limited to 'src')
-rw-r--r--src/df.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/df.c b/src/df.c
index a546ab26f..569a43fb4 100644
--- a/src/df.c
+++ b/src/df.c
@@ -148,16 +148,11 @@ static void
print_header (void)
{
char buf[MAX (LONGEST_HUMAN_READABLE + 1, INT_BUFSIZE_BOUND (uintmax_t))];
- char const *type_header = _(" Type");
- printf (_("Filesystem "));
-
- /* Print the `Type' header if required (--print-type, -T),
- or an equivalent number of spaces. */
if (print_type)
- fputs (type_header, stdout);
+ fputs (_("Filesystem Type"), stdout);
else
- printf ("%-*s", strlen (type_header), "");
+ fputs (_("Filesystem "), stdout);
if (inode_format)
printf (_(" Inodes IUsed IFree IUse%%"));