diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ephy-langs.c | 36 | ||||
-rw-r--r-- | lib/ephy-langs.h | 24 |
2 files changed, 38 insertions, 22 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; +} diff --git a/lib/ephy-langs.h b/lib/ephy-langs.h index dfe5ec2ee..30cb3a6d2 100644 --- a/lib/ephy-langs.h +++ b/lib/ephy-langs.h @@ -24,7 +24,6 @@ #endif #include <glib.h> -#include <bonobo/bonobo-i18n.h> G_BEGIN_DECLS @@ -71,29 +70,14 @@ typedef struct gchar* code; } FontsLanguageInfo; -static const FontsLanguageInfo fonts_language[] = -{ - { 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_fonts_languages = G_N_ELEMENTS (fonts_language); - void language_group_info_free (LanguageGroupInfo *info); void encoding_info_free (EncodingInfo *info); +guint ephy_langs_get_n_font_languages (void); + +const FontsLanguageInfo * ephy_langs_get_font_languages (void); + G_END_DECLS #endif |