mirror of
https://https.git.savannah.gnu.org/git/gettext.git
synced 2026-01-26 15:39:11 +00:00
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.
This commit is contained in:
parent
618752075e
commit
fe3fee6f1f
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user