aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--lib/ephy-langs.c39
-rwxr-xr-xsrc/pdm-dialog.c2
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 <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"
};