From 3893baeacbcdc24efbd7aca4e67508ddba2a4a5c Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Thu, 29 May 2003 11:25:06 +0000 Subject: Sort the lists of encoding autodetectors and of fonts languages. 2003-05-29 Christian Persch * 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 :) --- lib/ephy-langs.h | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) (limited to 'lib') 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 +#include 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); -- cgit v1.2.3