diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2003-06-22 06:30:32 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2003-06-22 06:30:32 +0800 |
commit | 5a2c9060ea07649e9e07cb221d7588b9524e3ea6 (patch) | |
tree | 640ca6b755adf7ca97bcafc903639a3feafc4cf4 /embed/mozilla | |
parent | c10acaa288a83d0a0d34a643cfee94199764ebef (diff) | |
download | gsoc2013-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/mozilla')
-rw-r--r-- | embed/mozilla/mozilla-notifiers.cpp | 16 |
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) |