[anjuta] class-gen: bgo #593532 - Untranslated strings
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [anjuta] class-gen: bgo #593532 - Untranslated strings
- Date: Wed, 2 Sep 2009 20:21:41 +0000 (UTC)
commit b01ff405a92d68898ff4e8235ac539267e9638bb
Author: Gabor Kelemen <kelemeng gnome hu>
Date: Wed Sep 2 22:20:51 2009 +0200
class-gen: bgo #593532 - Untranslated strings
plugins/class-gen/anjuta-class-gen-plugin.ui | 2 +-
plugins/class-gen/window.c | 46 +++++++++++++-------------
2 files changed, 24 insertions(+), 24 deletions(-)
---
diff --git a/plugins/class-gen/anjuta-class-gen-plugin.ui b/plugins/class-gen/anjuta-class-gen-plugin.ui
index 184792e..cbcf2da 100644
--- a/plugins/class-gen/anjuta-class-gen-plugin.ui
+++ b/plugins/class-gen/anjuta-class-gen-plugin.ui
@@ -39,7 +39,7 @@
</data>
</object>
<object class="GtkDialog" id="classgen_main">
- <property name="title">Class Generator</property>
+ <property name="title" translatable="yes">Class Generator</property>
<property name="default_height">582</property>
<property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
<child internal-child="vbox">
diff --git a/plugins/class-gen/window.c b/plugins/class-gen/window.c
index b85f9f0..00ebadd 100644
--- a/plugins/class-gen/window.c
+++ b/plugins/class-gen/window.c
@@ -91,7 +91,7 @@ static const gchar *GO_SCOPE_LIST[] =
static const gchar *GO_PARAMSPEC_LIST[] =
{
- "Guess from type",
+ N_("Guess from type"),
"g_param_spec_object",
"g_param_spec_pointer",
"g_param_spec_enum",
@@ -496,45 +496,45 @@ cg_window_set_builder (CgWindow *window,
GTK_BUTTON (gtk_builder_get_object (priv->bxml, "cc_elements_add")),
GTK_BUTTON (gtk_builder_get_object (priv->bxml, "cc_elements_remove")),
5,
- "Scope", CG_ELEMENT_EDITOR_COLUMN_LIST, CC_SCOPE_LIST,
- "Implementation", CG_ELEMENT_EDITOR_COLUMN_LIST, CC_IMPLEMENTATION_LIST,
- "Type", CG_ELEMENT_EDITOR_COLUMN_STRING,
- "Name", CG_ELEMENT_EDITOR_COLUMN_STRING,
- "Arguments", CG_ELEMENT_EDITOR_COLUMN_ARGUMENTS);
+ _("Scope"), CG_ELEMENT_EDITOR_COLUMN_LIST, CC_SCOPE_LIST,
+ _("Implementation"), CG_ELEMENT_EDITOR_COLUMN_LIST, CC_IMPLEMENTATION_LIST,
+ _("Type"), CG_ELEMENT_EDITOR_COLUMN_STRING,
+ _("Name"), CG_ELEMENT_EDITOR_COLUMN_STRING,
+ _("Arguments"), CG_ELEMENT_EDITOR_COLUMN_ARGUMENTS);
priv->editor_go_members = cg_element_editor_new (
GTK_TREE_VIEW (gtk_builder_get_object (priv->bxml, "go_members")),
GTK_BUTTON (gtk_builder_get_object (priv->bxml, "go_members_add")),
GTK_BUTTON (gtk_builder_get_object (priv->bxml, "go_members_remove")),
4,
- "Scope", CG_ELEMENT_EDITOR_COLUMN_LIST, GO_SCOPE_LIST,
- "Type", CG_ELEMENT_EDITOR_COLUMN_STRING,
- "Name", CG_ELEMENT_EDITOR_COLUMN_STRING,
- "Arguments", CG_ELEMENT_EDITOR_COLUMN_ARGUMENTS);
+ _("Scope"), CG_ELEMENT_EDITOR_COLUMN_LIST, GO_SCOPE_LIST,
+ _("Type"), CG_ELEMENT_EDITOR_COLUMN_STRING,
+ _("Name"), CG_ELEMENT_EDITOR_COLUMN_STRING,
+ _("Arguments"), CG_ELEMENT_EDITOR_COLUMN_ARGUMENTS);
priv->editor_go_properties = cg_element_editor_new(
GTK_TREE_VIEW (gtk_builder_get_object (priv->bxml, "go_properties")),
GTK_BUTTON (gtk_builder_get_object (priv->bxml, "go_properties_add")),
GTK_BUTTON (gtk_builder_get_object (priv->bxml, "go_properties_remove")),
7,
- "Name", CG_ELEMENT_EDITOR_COLUMN_STRING,
- "Nick", CG_ELEMENT_EDITOR_COLUMN_STRING,
- "Blurb", CG_ELEMENT_EDITOR_COLUMN_STRING,
- "GType", CG_ELEMENT_EDITOR_COLUMN_STRING,
- "ParamSpec", CG_ELEMENT_EDITOR_COLUMN_LIST, GO_PARAMSPEC_LIST,
- "Default", CG_ELEMENT_EDITOR_COLUMN_STRING,
- "Flags", CG_ELEMENT_EDITOR_COLUMN_FLAGS, GO_PROPERTY_FLAGS);
+ _("Name"), CG_ELEMENT_EDITOR_COLUMN_STRING,
+ _("Nick"), CG_ELEMENT_EDITOR_COLUMN_STRING,
+ _("Blurb"), CG_ELEMENT_EDITOR_COLUMN_STRING,
+ _("GType"), CG_ELEMENT_EDITOR_COLUMN_STRING,
+ _("ParamSpec"), CG_ELEMENT_EDITOR_COLUMN_LIST, GO_PARAMSPEC_LIST,
+ _("Default"), CG_ELEMENT_EDITOR_COLUMN_STRING,
+ _("Flags"), CG_ELEMENT_EDITOR_COLUMN_FLAGS, GO_PROPERTY_FLAGS);
priv->editor_go_signals = cg_element_editor_new(
GTK_TREE_VIEW (gtk_builder_get_object (priv->bxml, "go_signals")),
GTK_BUTTON (gtk_builder_get_object (priv->bxml, "go_signals_add")),
GTK_BUTTON (gtk_builder_get_object (priv->bxml, "go_signals_remove")),
5,
- "Type", CG_ELEMENT_EDITOR_COLUMN_STRING,
- "Name", CG_ELEMENT_EDITOR_COLUMN_STRING,
- "Arguments", CG_ELEMENT_EDITOR_COLUMN_ARGUMENTS, /* Somehow redundant with marshaller, but required for default handler */
- "Flags", CG_ELEMENT_EDITOR_COLUMN_FLAGS, GO_SIGNAL_FLAGS,
- "Marshaller", CG_ELEMENT_EDITOR_COLUMN_STRING);
+ _("Type"), CG_ELEMENT_EDITOR_COLUMN_STRING,
+ _("Name"), CG_ELEMENT_EDITOR_COLUMN_STRING,
+ _("Arguments"), CG_ELEMENT_EDITOR_COLUMN_ARGUMENTS, /* Somehow redundant with marshaller, but required for default handler */
+ _("Flags"), CG_ELEMENT_EDITOR_COLUMN_FLAGS, GO_SIGNAL_FLAGS,
+ _("Marshaller"), CG_ELEMENT_EDITOR_COLUMN_STRING);
/* Active item property in glade cannot be set because no GtkTreeModel
* is assigned. */
@@ -612,7 +612,7 @@ cg_window_go_properties_transform_func (GHashTable *table,
cg_transform_string (table, "Blurb");
cg_transform_guess_paramspec (table, "ParamSpec",
- "Type", GO_PARAMSPEC_LIST[0]);
+ "Type", _(GO_PARAMSPEC_LIST[0]));
cg_transform_flags (table, "Flags", GO_PROPERTY_FLAGS);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]