From a49936fc251bbe8082ab7b4a098e339a3a50be68 Mon Sep 17 00:00:00 2001 From: James Youngman Date: Sun, 8 Nov 2009 22:26:30 +0000 Subject: [PATCH] Localise some previously non-localised strings. To: address@hidden * find/find.c (init_mounted_dev_list): Pass translatable string gettext. (safely_chdir_lstat): Likewise. * find/fstype.c (must_read_fs_list): Likewise. * find/parser.c (safe_atoi): Likewise. --- ChangeLog | 7 +++++++ find/find.c | 4 ++-- find/fstype.c | 2 +- find/parser.c | 6 +++--- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index f67c3fa..126e32a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2009-11-08 James Youngman + Localise some previously non-localised strings. + * find/find.c (init_mounted_dev_list): Pass translatable string + gettext. + (safely_chdir_lstat): Likewise. + * find/fstype.c (must_read_fs_list): Likewise. + * find/parser.c (safe_atoi): Likewise. + Updated a number of translation messages. * po/it.po: Updated Italian translation. * po/fi.po: Updated Finnish translation. diff --git a/find/find.c b/find/find.c index 908ed1f..a271f3f 100644 --- a/find/find.c +++ b/find/find.c @@ -299,7 +299,7 @@ init_mounted_dev_list(int mandatory) mounted_devices = get_mounted_devices(&num_mounted_devices); if (mandatory && (NULL == mounted_devices)) { - error(1, 0, "Cannot read list of mounted devices."); + error(1, 0, _("Cannot read list of mounted devices.")); } } @@ -696,7 +696,7 @@ safely_chdir_lstat(const char *dest, * is fatal. */ error(1, errno, - "failed to return to parent directory"); + _("failed to return to parent directory")); } } else diff --git a/find/fstype.c b/find/fstype.c index 8d0161b..001e009 100644 --- a/find/fstype.c +++ b/find/fstype.c @@ -200,7 +200,7 @@ must_read_fs_list(bool need_fs_type) * use because gnulib has abstracted all that stuff away. * Hence we cannot issue a specific error message here. */ - error(1, 0, "Cannot read mounted file system list"); + error(1, 0, _("Cannot read mounted file system list")); } return entries; } diff --git a/find/parser.c b/find/parser.c index 76b1297..1016b41 100644 --- a/find/parser.c +++ b/find/parser.c @@ -1032,7 +1032,7 @@ safe_atoi (const char *s) } else if (*end) { - error(1, errno, "Unexpected suffix %s on %s", + error(1, errno, _("Unexpected suffix %s on %s"), quotearg_n_style(0, options.err_quoting_style, end), quotearg_n_style(1, options.err_quoting_style, s)); } @@ -3390,8 +3390,8 @@ parse_time (const struct parser_table* entry, char *argv[], int *arg_ptr) struct time_val tval; enum comparison_type comp; const char *timearg, *orig_timearg; - const char *errmsg = "arithmetic overflow while converting %s " - "days to a number of seconds"; + const char *errmsg = _("arithmetic overflow while converting %s " + "days to a number of seconds"); struct timespec origin; if (!collect_arg(argv, arg_ptr, &timearg)) -- 1.5.6.5