aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-05-29 19:25:06 +0800
committerChristian Persch <chpe@src.gnome.org>2003-05-29 19:25:06 +0800
commit3893baeacbcdc24efbd7aca4e67508ddba2a4a5c (patch)
treeefc3140c192529e7c1a77ccf26f43cbc037f136a /lib
parent4dc9c881958398daff5d76dd9749b443f75b3ab5 (diff)
downloadgsoc2013-epiphany-3893baeacbcdc24efbd7aca4e67508ddba2a4a5c.tar
gsoc2013-epiphany-3893baeacbcdc24efbd7aca4e67508ddba2a4a5c.tar.gz
gsoc2013-epiphany-3893baeacbcdc24efbd7aca4e67508ddba2a4a5c.tar.bz2
gsoc2013-epiphany-3893baeacbcdc24efbd7aca4e67508ddba2a4a5c.tar.lz
gsoc2013-epiphany-3893baeacbcdc24efbd7aca4e67508ddba2a4a5c.tar.xz
gsoc2013-epiphany-3893baeacbcdc24efbd7aca4e67508ddba2a4a5c.tar.zst
gsoc2013-epiphany-3893baeacbcdc24efbd7aca4e67508ddba2a4a5c.zip
Sort the lists of encoding autodetectors and of fonts languages.
2003-05-29 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-langs.h: * data/glade/prefs-dialog.glade: * src/prefs-dialog.c: (autodetector_info_free), (prefs_dialog_finalize), (get_current_language_code), (setup_font_menu), (setup_size_control), (fonts_language_info_cmp), (create_fonts_language_menu), (autodetect_encoding_menu_changed_cb), (autodetector_info_cmp), (find_autodetector_info), (create_encoding_autodetectors_menu), (prefs_dialog_init): Sort the lists of encoding autodetectors and of fonts languages. * data/epiphany.schemas.in: Document the possible values for the encoding autodetectors. * embed/mozilla/mozilla-notifiers.cpp: (mozilla_notifiers_init), (mozilla_default_encoding_notifier), (mozilla_autodetect_encoding_notifier): Adapted for the changes in the prefs dialog. The default encoding notifier now propagates the setting to mozilla :)
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-langs.h39
1 files changed, 23 insertions, 16 deletions
diff --git a/lib/ephy-langs.h b/lib/ephy-langs.h
index 2d2c79dd2..dfe5ec2ee 100644
--- a/lib/ephy-langs.h
+++ b/lib/ephy-langs.h
@@ -24,6 +24,7 @@
#endif
#include <glib.h>
+#include <bonobo/bonobo-i18n.h>
G_BEGIN_DECLS
@@ -64,24 +65,30 @@ typedef struct
} EncodingInfo;
/* language encoding groups */
-static const gchar *lang_encode_item[] =
+typedef struct
+{
+ gchar *title;
+ gchar* code;
+} FontsLanguageInfo;
+
+static const FontsLanguageInfo fonts_language[] =
{
- "x-western",
- "x-central-euro",
- "ja",
- "zh-TW",
- "zh-CN",
- "ko",
- "x-cyrillic",
- "x-baltic",
- "el",
- "tr",
- "x-unicode",
- "th",
- "he",
- "ar"
+ { N_("Arabic"), "ar" },
+ { N_("Baltic"), "x-baltic" },
+ { N_("Central European"), "x-central-euro" },
+ { N_("Cyrillic"), "x-cyrillic" },
+ { N_("Greek"), "el" },
+ { N_("Hebrew"), "he" },
+ { N_("Japanese"), "ja" },
+ { N_("Korean"), "ko" },
+ { N_("Simplified Chinese"), "zh-CN" },
+ { N_("Thai"), "th" },
+ { N_("Traditional Chinese"), "zh-TW" },
+ { N_("Turkish"), "tr" },
+ { N_("Unicode"), "x-unicode" },
+ { N_("Western"), "x-western" },
};
-static const guint n_lang_encode_items = G_N_ELEMENTS (lang_encode_item);
+static const guint n_fonts_languages = G_N_ELEMENTS (fonts_language);
void language_group_info_free (LanguageGroupInfo *info);