diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2005-05-02 03:50:36 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2005-05-02 03:50:36 +0800 |
commit | 5aa95682485eebaa5288510764de0576d3d3e779 (patch) | |
tree | d7d8e49d27e1c406a0404a0f983632f0dff473e0 | |
parent | e7d3de6ca1957c42c780d07473e76898a573c796 (diff) | |
download | gsoc2013-epiphany-5aa95682485eebaa5288510764de0576d3d3e779.tar gsoc2013-epiphany-5aa95682485eebaa5288510764de0576d3d3e779.tar.gz gsoc2013-epiphany-5aa95682485eebaa5288510764de0576d3d3e779.tar.bz2 gsoc2013-epiphany-5aa95682485eebaa5288510764de0576d3d3e779.tar.lz gsoc2013-epiphany-5aa95682485eebaa5288510764de0576d3d3e779.tar.xz gsoc2013-epiphany-5aa95682485eebaa5288510764de0576d3d3e779.tar.zst gsoc2013-epiphany-5aa95682485eebaa5288510764de0576d3d3e779.zip |
A src/languages.h:
2005-05-01 Christian Persch <chpe@cvs.gnome.org>
* 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.
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | lib/ephy-langs.c | 39 | ||||
-rwxr-xr-x | src/pdm-dialog.c | 2 |
3 files changed, 37 insertions, 5 deletions
@@ -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 <libxml/xmlreader.h> +/* 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" }; |