]> git.ipfire.org Git - thirdparty/sarg.git/blobdiff - util.c
Improve the message helping the user to set the translation up
[thirdparty/sarg.git] / util.c
diff --git a/util.c b/util.c
index f5c749e6d65bdae1fa4cba272eba4137b1d39965..41ca417494e7b66f409391c5f459d27e80bb0e8d 100644 (file)
--- a/util.c
+++ b/util.c
@@ -2080,8 +2080,15 @@ void version(void)
        printf(_("SARG Version: %s\n"),VERSION);
 #if defined(ENABLE_NLS) && defined(HAVE_LOCALE_H)
        if (debug) {
-               printf(_("Translation file should be somewhere under \"%s\" and be named \"%s.mo\"\n"),LOCALEDIR,PACKAGE_NAME);
-               if (CurrentLocale) printf(_("The currently selected locale is \"%s\"\n"),CurrentLocale);
+               printf(_("\nFor the translation to work, a valid message file should be installed as "
+                                "\"%s/<Locale>/LC_MESSAGES/%s.mo\" where <Locale> is derived from the effective locale.\n"),LOCALEDIR,PACKAGE_NAME);
+               if (CurrentLocale) {
+                       printf(_("Currently effective locale is \"%s\".\n"),CurrentLocale);
+               } else {
+                       printf(_("Locale is not set in the environment variable.\n"));
+               }
+               // TRANSLATORS: You may change this message to tell the reader that the language is correctly supported.
+               printf(_("If this message is in English, then your language is not supported or not correctly installed.\n"));
        }
 #endif
        exit(EXIT_SUCCESS);