From 5aa95682485eebaa5288510764de0576d3d3e779 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 1 May 2005 19:50:36 +0000 Subject: A src/languages.h: 2005-05-01 Christian Persch * data/default-prefs-common.js: * data/epiphany.schemas.in: * lib/ephy-langs.c: A src/languages.h: * src/prefs-dialog.c: (prefs_dialog_show_help), (create_language_section), (get_download_button_label), (prefs_dialog_init): Add more font languages, and generate the language list from the unicode supplemental data. * lib/ephy-dialog.c: * lib/ephy-dialog.h: * src/prefs-dialog.c: * src/pdm-dialog.c: Constification. --- ChangeLog | 1 + lib/ephy-langs.c | 39 +++++++++++++++++++++++++++++++++++---- src/pdm-dialog.c | 2 +- 3 files changed, 37 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index c0596f169..bb19b73f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,7 @@ * lib/ephy-dialog.c: * lib/ephy-dialog.h: * src/prefs-dialog.c: + * src/pdm-dialog.c: Constification. diff --git a/lib/ephy-langs.c b/lib/ephy-langs.c index 09858e1a9..ff0ecb981 100644 --- a/lib/ephy-langs.c +++ b/lib/ephy-langs.c @@ -30,6 +30,9 @@ #include +/* If you add more language codes here, remember also to add them in the default font size + * section in data/default-prefs-common.js. + */ static const EphyFontsLanguageInfo font_languages [] = { /* Translators: The text before the "|" is context to help you decide on @@ -77,14 +80,42 @@ static const EphyFontsLanguageInfo font_languages [] = /* Translators: The text before the "|" is context to help you decide on * the correct translation. You MUST OMIT it in the translated string. */ { N_("select fonts for|Turkish"), "tr" }, +#ifdef HAVE_GECKO_1_8 + /* Translators: The text before the "|" is context to help you decide on + * the correct translation. You MUST OMIT it in the translated string. */ + { N_("select fonts for|Armenian"), "x-armn" }, + /* Translators: The text before the "|" is context to help you decide on + * the correct translation. You MUST OMIT it in the translated string. */ + { N_("select fonts for|Bengali"), "x-beng" }, + /* Translators: The text before the "|" is context to help you decide on + * the correct translation. You MUST OMIT it in the translated string. */ + { N_("select fonts for|Unified Canadian Syllabics"), "x-cans" }, + /* Translators: The text before the "|" is context to help you decide on + * the correct translation. You MUST OMIT it in the translated string. */ + { N_("select fonts for|Ethiopic"), "x-ethi" }, + /* Translators: The text before the "|" is context to help you decide on + * the correct translation. You MUST OMIT it in the translated string. */ + { N_("select fonts for|Georgian"), "x-geor" }, + /* Translators: The text before the "|" is context to help you decide on + * the correct translation. You MUST OMIT it in the translated string. */ + { N_("select fonts for|Gujarati"), "x-gujr" }, + /* Translators: The text before the "|" is context to help you decide on + * the correct translation. You MUST OMIT it in the translated string. */ + { N_("select fonts for|Gurmukhi"), "x-guru" }, + /* Translators: The text before the "|" is context to help you decide on + * the correct translation. You MUST OMIT it in the translated string. */ + { N_("select fonts for|Khmer"), "x-khmr" }, + /* Translators: The text before the "|" is context to help you decide on + * the correct translation. You MUST OMIT it in the translated string. */ + { N_("select fonts for|Malayalam"), "x-mlym" }, +#endif /* HAVE_GECKO_1_8 */ /* Translators: The text before the "|" is context to help you decide on * the correct translation. You MUST OMIT it in the translated string. */ - { N_("select fonts for|Unicode"), "x-unicode" }, + { N_("select fonts for|Western"), "x-western" }, /* Translators: The text before the "|" is context to help you decide on * the correct translation. You MUST OMIT it in the translated string. */ - { N_("select fonts for|Western"), "x-western" } + { N_("select fonts for|Other Scripts"), "x-unicode" } }; -static const guint n_font_languages = G_N_ELEMENTS (font_languages); const EphyFontsLanguageInfo * ephy_font_languages (void) @@ -95,7 +126,7 @@ ephy_font_languages (void) guint ephy_font_n_languages (void) { - return n_font_languages; + return G_N_ELEMENTS (font_languages); } /* sanitise the languages list according to the rules for HTTP accept-language diff --git a/src/pdm-dialog.c b/src/pdm-dialog.c index 199414d22..c7b3efc56 100755 --- a/src/pdm-dialog.c +++ b/src/pdm-dialog.c @@ -184,7 +184,7 @@ pdm_dialog_show_help (PdmDialog *pd) GtkWidget *notebook, *window; int id; - char *help_preferences[] = { + static char * const help_preferences[] = { "managing-cookies", "managing-passwords" }; -- cgit v1.2.3