aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-langs.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-06-12 07:14:38 +0800
committerChristian Persch <chpe@src.gnome.org>2003-06-12 07:14:38 +0800
commit5c496db6c7ccd1c451cb49b4529724630a64895f (patch)
treeff0faf4b396dbae4646c4ef4cbdcb82d89417b90 /lib/ephy-langs.c
parentd25a4baf3c20a184803537334e656a5c4538211f (diff)
downloadgsoc2013-epiphany-5c496db6c7ccd1c451cb49b4529724630a64895f.tar
gsoc2013-epiphany-5c496db6c7ccd1c451cb49b4529724630a64895f.tar.gz
gsoc2013-epiphany-5c496db6c7ccd1c451cb49b4529724630a64895f.tar.bz2
gsoc2013-epiphany-5c496db6c7ccd1c451cb49b4529724630a64895f.tar.lz
gsoc2013-epiphany-5c496db6c7ccd1c451cb49b4529724630a64895f.tar.xz
gsoc2013-epiphany-5c496db6c7ccd1c451cb49b4529724630a64895f.tar.zst
gsoc2013-epiphany-5c496db6c7ccd1c451cb49b4529724630a64895f.zip
Use functions instead of declaring static vars in .h file, (hopefully)
2003-06-12 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-langs.h: * lib/ephy-langs.c: (ephy_langs_get_n_font_languages), (ephy_langs_get_font_languages): Use functions instead of declaring static vars in .h file, (hopefully) fixing # 114906 .
Diffstat (limited to 'lib/ephy-langs.c')
-rw-r--r--lib/ephy-langs.c36
1 files changed, 34 insertions, 2 deletions
diff --git a/lib/ephy-langs.c b/lib/ephy-langs.c
index 583aeb4dc..31914e7bc 100644
--- a/lib/ephy-langs.c
+++ b/lib/ephy-langs.c
@@ -16,8 +16,28 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
- #include "ephy-langs.h"
-
+#include "ephy-langs.h"
+#include <bonobo/bonobo-i18n.h>
+
+static const FontsLanguageInfo font_languages[] =
+{
+ { 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_font_languages = G_N_ELEMENTS (font_languages);
+
void
language_group_info_free (LanguageGroupInfo *info)
{
@@ -40,3 +60,15 @@ encoding_info_free (EncodingInfo *info)
g_free (info);
}
+
+guint
+ephy_langs_get_n_font_languages (void)
+{
+ return n_font_languages;
+}
+
+const FontsLanguageInfo *
+ephy_langs_get_font_languages (void)
+{
+ return font_languages;
+}