]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
xgettext: Improve error reporting when ITS is used
authorDaiki Ueno <ueno@gnu.org>
Thu, 10 Dec 2015 02:21:36 +0000 (11:21 +0900)
committerDaiki Ueno <ueno@gnu.org>
Thu, 10 Dec 2015 02:21:36 +0000 (11:21 +0900)
* gettext-tools/src/xgettext.c (main): Print error when an ITS file is
designated through a locating rule, but the file does not exist.

gettext-tools/src/xgettext.c

index 871a6f4f5039d046ab4212473f4a6a40da7e8b88..08cb179cd0629c2f183965d11ff04f067751c83d 100644 (file)
@@ -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;
                     }