aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-06-22 06:30:32 +0800
committerChristian Persch <chpe@src.gnome.org>2003-06-22 06:30:32 +0800
commit5a2c9060ea07649e9e07cb221d7588b9524e3ea6 (patch)
tree640ca6b755adf7ca97bcafc903639a3feafc4cf4 /embed
parentc10acaa288a83d0a0d34a643cfee94199764ebef (diff)
downloadgsoc2013-epiphany-5a2c9060ea07649e9e07cb221d7588b9524e3ea6.tar
gsoc2013-epiphany-5a2c9060ea07649e9e07cb221d7588b9524e3ea6.tar.gz
gsoc2013-epiphany-5a2c9060ea07649e9e07cb221d7588b9524e3ea6.tar.bz2
gsoc2013-epiphany-5a2c9060ea07649e9e07cb221d7588b9524e3ea6.tar.lz
gsoc2013-epiphany-5a2c9060ea07649e9e07cb221d7588b9524e3ea6.tar.xz
gsoc2013-epiphany-5a2c9060ea07649e9e07cb221d7588b9524e3ea6.tar.zst
gsoc2013-epiphany-5a2c9060ea07649e9e07cb221d7588b9524e3ea6.zip
Misc i18n fixes: mark default encoding and encoding autodetector in the
2003-06-22 Christian Persch <chpe@cvs.gnome.org> * data/epiphany.schemas.in: * src/prefs-dialog.c: * embed/mozilla/mozilla-notifiers.cpp: (get_system_language): Misc i18n fixes: mark default encoding and encoding autodetector in the schema as translatable, and instroduce a translatable string for the locale-dependent http-accept-language list. Add simplified and traditional chinese to the available languages list, and add the universal encoding detector to the autodetectors list.
Diffstat (limited to 'embed')
-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)