summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-01-02 18:28:59 +0100
committerJim Meyering <meyering@redhat.com>2008-01-14 17:57:50 +0100
commit938c68aff4782e86856379002485b33ff09c212f (patch)
treef058adce2559cc8547abe5da084484c3d7fd6a1a
parent098b69c42296d9251add734dab054f02d89e3bda (diff)
downloadidutils-938c68aff4782e86856379002485b33ff09c212f.tar.gz
idutils-938c68aff4782e86856379002485b33ff09c212f.tar.bz2
idutils-938c68aff4782e86856379002485b33ff09c212f.zip
Mark diagnostics for translation.
* src/mkid.c (main): Mark with _(...). * libidu/walker.c (exclude_languages, include_languages): Likewise. * src/lid.c (report_grep): Likewise. Signed-off-by: Jim Meyering <meyering@redhat.com>
-rw-r--r--libidu/walker.c4
-rw-r--r--src/lid.c5
-rw-r--r--src/mkid.c2
3 files changed, 6 insertions, 5 deletions
diff --git a/libidu/walker.c b/libidu/walker.c
index 4bd7a88..7111733 100644
--- a/libidu/walker.c
+++ b/libidu/walker.c
@@ -491,7 +491,7 @@ void
include_languages (char *lang_names)
{
if (langs_excluded)
- error (1, 0, "can't mix --include and --exclude options");
+ error (1, 0, _("can't mix --include and --exclude options"));
langs_included = append_strings_to_vector (langs_included, lang_names, white_space);
}
@@ -499,7 +499,7 @@ void
exclude_languages (char *lang_names)
{
if (langs_excluded)
- error (1, 0, "can't mix --include and --exclude options");
+ error (1, 0, _("can't mix --include and --exclude options"));
langs_excluded = append_strings_to_vector (langs_excluded, lang_names, white_space);
}
diff --git a/src/lid.c b/src/lid.c
index 729fc9d..0a62c63 100644
--- a/src/lid.c
+++ b/src/lid.c
@@ -570,7 +570,7 @@ report_grep (char const *name, struct file_link **flinkv)
source_FILE = fopen (file_name, "r");
if (source_FILE == 0)
{
- error (0, errno, "can't open `%s'", file_name);
+ error (0, errno, _("can't open `%s'"), file_name);
continue;
}
@@ -581,7 +581,8 @@ report_grep (char const *name, struct file_link **flinkv)
{
int regexec_errno = regexec (&compiled, line, 0, 0, 0);
if (regexec_errno == REG_ESPACE)
- error (1, 0, "can't match regular-expression: memory exhausted");
+ error (1, 0,
+ _("can't match regular-expression: memory exhausted"));
else if (regexec_errno)
continue;
}
diff --git a/src/mkid.c b/src/mkid.c
index 8f7edd3..39888c1 100644
--- a/src/mkid.c
+++ b/src/mkid.c
@@ -333,7 +333,7 @@ main (int argc, char **argv)
report_statistics ();
}
else
- error (0, 0, "nothing to do");
+ error (0, 0, _("nothing to do"));
exit (0);
}