summaryrefslogtreecommitdiff
path: root/src/expand.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/expand.c')
-rw-r--r--src/expand.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/expand.c b/src/expand.c
index eba1be78c..e0d4d1f27 100644
--- a/src/expand.c
+++ b/src/expand.c
@@ -185,7 +185,7 @@ main (argc, argv)
if (have_read_stdin && fclose (stdin) == EOF)
error (1, errno, "-");
if (ferror (stdout) || fclose (stdout) == EOF)
- error (1, errno, "write error");
+ error (1, errno, _("write error"));
exit (exit_status);
}
@@ -213,7 +213,7 @@ parse_tabstops (stops)
tabval = tabval * 10 + *stops - '0';
}
else
- error (1, 0, "tab size contains an invalid character");
+ error (1, 0, _("tab size contains an invalid character"));
}
add_tabstop (tabval);
@@ -248,9 +248,9 @@ validate_tabstops (tabs, entries)
for (i = 0; i < entries; i++)
{
if (tabs[i] == 0)
- error (1, 0, "tab size cannot be 0");
+ error (1, 0, _("tab size cannot be 0"));
if (tabs[i] <= prev_tab)
- error (1, 0, "tab sizes must be ascending");
+ error (1, 0, _("tab sizes must be ascending"));
prev_tab = tabs[i];
}
}
@@ -389,15 +389,15 @@ usage (status)
int status;
{
if (status != 0)
- fprintf (stderr, "Try `%s --help' for more information.\n",
+ fprintf (stderr, _("Try `%s --help' for more information.\n"),
program_name);
else
{
- printf ("\
+ printf (_("\
Usage: %s [OPTION]... [FILE]...\n\
-",
+"),
program_name);
- printf ("\
+ printf (_("\
Convert tabs in each FILE to spaces, writing to standard output.\n\
With no FILE, or when FILE is -, read standard input.\n\
\n\
@@ -408,7 +408,7 @@ With no FILE, or when FILE is -, read standard input.\n\
--version output version information and exit\n\
\n\
Instead of -t NUMBER or -t LIST, -NUMBER or -LIST may be used.\n\
-");
+"));
}
exit (status);
}