aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@svn.gnome.org>2007-09-09 20:45:20 +0800
committerCosimo Cecchi <cosimoc@src.gnome.org>2007-09-09 20:45:20 +0800
commit56a321d56e13c6ba2b635e2b2066d4337a5046ad (patch)
tree9e221baad526295f7c8a6470678496537550b19f
parent97d914c35732490d84fa6228d565efa0a9d2a99b (diff)
downloadgsoc2013-epiphany-56a321d56e13c6ba2b635e2b2066d4337a5046ad.tar.gz
gsoc2013-epiphany-56a321d56e13c6ba2b635e2b2066d4337a5046ad.tar.zst
gsoc2013-epiphany-56a321d56e13c6ba2b635e2b2066d4337a5046ad.zip
Marks as translatable some toolbar editor strings and removes references
2007-09-09 Cosimo Cecchi <cosimoc@svn.gnome.org> * src/ephy-toolbar-editor.c: (ephy_toolbar_editor_constructor): Marks as translatable some toolbar editor strings and removes references to old Control Center gettext domain. Fixes bug #474429. Patch by Cyril Brulebois. svn path=/trunk/; revision=7357
-rw-r--r--ChangeLog8
-rw-r--r--src/ephy-toolbar-editor.c21
2 files changed, 13 insertions, 16 deletions
diff --git a/ChangeLog b/ChangeLog
index 51fbefb7d..756a332dd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2007-09-09 Cosimo Cecchi <cosimoc@svn.gnome.org>
+ * src/ephy-toolbar-editor.c: (ephy_toolbar_editor_constructor):
+
+ Marks as translatable some toolbar editor strings and removes
+ references to old Control Center gettext domain. Fixes bug #474429.
+ Patch by Cyril Brulebois.
+
+2007-09-09 Cosimo Cecchi <cosimoc@svn.gnome.org>
+
* lib/widgets/ephy-zoom-action.c: (connect_proxy):
Fixes bad state syncing when adding zoom controls to the toolbar.
diff --git a/src/ephy-toolbar-editor.c b/src/ephy-toolbar-editor.c
index d694be21d..ed1c900f0 100644
--- a/src/ephy-toolbar-editor.c
+++ b/src/ephy-toolbar-editor.c
@@ -48,7 +48,6 @@
#include <string.h>
#define DATA_KEY "EphyToolbarEditor"
-#define CONTROL_CENTRE_DOMAIN "control-center-2.0"
#define EPHY_TOOLBAR_EDITOR_GET_PRIVATE(object)(G_TYPE_INSTANCE_GET_PRIVATE ((object), EPHY_TYPE_TOOLBAR_EDITOR, EphyToolbarEditorPrivate))
@@ -82,10 +81,10 @@ toolbar_styles [] =
* the correct translation. You MUST OMIT it in the translated string. */
N_("toolbar style|Default"), 0, FALSE },
{ NULL /* separator row */, 0, FALSE },
- { "Text below icons", EGG_TB_MODEL_BOTH, TRUE },
- { "Text beside icons", EGG_TB_MODEL_BOTH_HORIZ, TRUE },
- { "Icons only", EGG_TB_MODEL_ICONS, TRUE },
- { "Text only", EGG_TB_MODEL_TEXT, TRUE }
+ { N_("Text below icons"), EGG_TB_MODEL_BOTH, TRUE },
+ { N_("Text beside icons"), EGG_TB_MODEL_BOTH_HORIZ, TRUE },
+ { N_("Icons only"), EGG_TB_MODEL_ICONS, TRUE },
+ { N_("Text only"), EGG_TB_MODEL_TEXT, TRUE }
};
enum
@@ -184,12 +183,6 @@ ephy_toolbar_editor_constructor (GType type,
object = parent_class->constructor (type, n_construct_properties,
construct_params);
-#ifdef ENABLE_NLS
- /* Initialize the control centre domain */
- bindtextdomain (CONTROL_CENTRE_DOMAIN, GNOMELOCALEDIR);
- bind_textdomain_codeset(CONTROL_CENTRE_DOMAIN, "UTF-8");
-#endif
-
dialog = GTK_WIDGET (object);
priv = EPHY_TOOLBAR_EDITOR (object)->priv;
@@ -229,11 +222,7 @@ ephy_toolbar_editor_constructor (GType type,
const char *text = toolbar_styles[i].text;
const char *tr_text = NULL;
- if (toolbar_styles[i].cc_domain)
- {
- tr_text = dgettext (CONTROL_CENTRE_DOMAIN, text);
- }
- else if (text != NULL)
+ if (text != NULL)
{
tr_text= Q_(text);
}