aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/mozilla-notifiers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'embed/mozilla/mozilla-notifiers.cpp')
-rw-r--r--embed/mozilla/mozilla-notifiers.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/embed/mozilla/mozilla-notifiers.cpp b/embed/mozilla/mozilla-notifiers.cpp
index 761742573..bf06296f8 100644
--- a/embed/mozilla/mozilla-notifiers.cpp
+++ b/embed/mozilla/mozilla-notifiers.cpp
@@ -620,7 +620,21 @@ static char *
get_system_language ()
{
const GList *sys_langs;
-
+ const char *lang;
+
+ /**
+ * translate this as the comma separated list of language ranges
+ * for your locale, as specified by RFC 2616, 14.4.
+ * for example for en_NZ locale this could be "en-nz,en-au,en-gb,en"
+ */
+ lang = _("system-language");
+
+ if (strncmp (lang, "system-language", 15) != 0)
+ {
+ /* the l10n has it */
+ return g_strdup (lang);
+ }
+
sys_langs = gnome_i18n_get_language_list ("LC_MESSAGES");
if (sys_langs)