aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-langs.h
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-11-25 21:51:57 +0800
committerChristian Persch <chpe@src.gnome.org>2004-11-25 21:51:57 +0800
commit7ee1915ef8101e1cac5b9a2d5c858aac371d6367 (patch)
tree7b2331141eb8748f415b130375f20a8f047cd542 /lib/ephy-langs.h
parentb0521a16c246aea0742fb25e5195c817de1d2326 (diff)
downloadgsoc2013-epiphany-7ee1915ef8101e1cac5b9a2d5c858aac371d6367.tar
gsoc2013-epiphany-7ee1915ef8101e1cac5b9a2d5c858aac371d6367.tar.gz
gsoc2013-epiphany-7ee1915ef8101e1cac5b9a2d5c858aac371d6367.tar.bz2
gsoc2013-epiphany-7ee1915ef8101e1cac5b9a2d5c858aac371d6367.tar.lz
gsoc2013-epiphany-7ee1915ef8101e1cac5b9a2d5c858aac371d6367.tar.xz
gsoc2013-epiphany-7ee1915ef8101e1cac5b9a2d5c858aac371d6367.tar.zst
gsoc2013-epiphany-7ee1915ef8101e1cac5b9a2d5c858aac371d6367.zip
Check for iso-codes package.
2004-11-25 Christian Persch <chpe@cvs.gnome.org> * configure.ac: Check for iso-codes package. * data/glade/prefs-dialog.glade: * lib/ephy-langs.c: (ephy_langs_bind_iso_domains), (read_iso_639_entry), (read_iso_3166_entry), (load_iso_entries), (ephy_langs_iso_639_table), (ephy_langs_iso_3166_table): * lib/ephy-langs.h: Load language and locales list from iso-codes package, if available. * src/prefs-dialog.c: (prefs_dialog_finalize), (add_lang_dialog_selection_changed), (add_lang_dialog_response_cb), (get_name_for_lang_code), (add_system_language_entry), (setup_add_language_dialog), (create_language_section): If the iso-codes package is available, use that to translate language names and offer a wider variety of languages. Fixes bug #155498.
Diffstat (limited to 'lib/ephy-langs.h')
-rw-r--r--lib/ephy-langs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/ephy-langs.h b/lib/ephy-langs.h
index baefdd78d..758501509 100644
--- a/lib/ephy-langs.h
+++ b/lib/ephy-langs.h
@@ -26,6 +26,9 @@
G_BEGIN_DECLS
+#define ISO_639_DOMAIN "iso_639"
+#define ISO_3166_DOMAIN "iso_3166"
+
typedef struct
{
char *title;
@@ -42,6 +45,10 @@ void ephy_langs_sanitise (GArray *array);
char **ephy_langs_get_languages (void);
+GHashTable *ephy_langs_iso_639_table (void);
+
+GHashTable *ephy_langs_iso_3166_table (void);
+
G_END_DECLS
#endif