summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2015-12-10 11:21:36 +0900
committerDaiki Ueno <ueno@gnu.org>2015-12-10 11:21:36 +0900
commitfe3fee6f1fd6a196b3dcc6937fc41a295a287319 (patch)
treead7f9dbafc1bc2a8485b276dfd310dd7851610be
parent618752075eed27741c2b00d38351ddab6eb29148 (diff)
downloadexternal_gettext-fe3fee6f1fd6a196b3dcc6937fc41a295a287319.zip
external_gettext-fe3fee6f1fd6a196b3dcc6937fc41a295a287319.tar.gz
external_gettext-fe3fee6f1fd6a196b3dcc6937fc41a295a287319.tar.bz2
xgettext: Improve error reporting when ITS is used
* gettext-tools/src/xgettext.c (main): Print error when an ITS file is designated through a locating rule, but the file does not exist.
-rw-r--r--gettext-tools/src/xgettext.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gettext-tools/src/xgettext.c b/gettext-tools/src/xgettext.c
index 871a6f4..08cb179 100644
--- a/gettext-tools/src/xgettext.c
+++ b/gettext-tools/src/xgettext.c
@@ -892,8 +892,8 @@ This version was built without iconv()."),
const char *its_basename;
its_basename = locating_rule_list_locate (its_locating_rules,
- filename,
- language);
+ filename,
+ language);
if (its_basename != NULL)
{
@@ -924,6 +924,9 @@ This version was built without iconv()."),
}
if (j == SIZEOF (its_dirs))
{
+ error (0, 0, _("\
+warning: ITS rule file '%s' does not exist; check your gettext installation"),
+ its_basename);
its_rule_list_free (its_rules);
its_rules = NULL;
}