[nautilus-actions] NactMainWindow: make property labels translatable
- From: Pierre Wieser <pwieser src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-actions] NactMainWindow: make property labels translatable
- Date: Thu, 12 Jan 2012 23:22:49 +0000 (UTC)
commit a0a04ff76a00cf0245b2de398afd909a1910b413
Author: Pierre Wieser <pwieser trychlos org>
Date: Thu Jan 12 17:38:08 2012 +0100
NactMainWindow: make property labels translatable
ChangeLog | 5 +++++
src/nact/nact-main-window.c | 22 ++++++++++++----------
2 files changed, 17 insertions(+), 10 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8920872..c44fdf2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-01-12 Pierre Wieser <pwieser trychlos org>
+
+ * src/nact/nact-main-window.c (class_init):
+ Make property labels translatable.
+
2012-01-11 Pierre Wieser <pwieser trychlos org>
* src/nact/nact-main-window.c (on_base_initialize_base_window):
diff --git a/src/nact/nact-main-window.c b/src/nact/nact-main-window.c
index e5c8388..5c7e823 100644
--- a/src/nact/nact-main-window.c
+++ b/src/nact/nact-main-window.c
@@ -341,36 +341,38 @@ class_init( NactMainWindowClass *klass )
g_object_class_install_property( object_class, MAIN_PROP_ITEM_ID,
g_param_spec_pointer(
MAIN_PROP_ITEM,
- "Current NAObjectItem",
- "A pointer to the currently edited NAObjectItem, an action or a menu",
+ _( "Current NAObjectItem" ),
+ _( "A pointer to the currently edited NAObjectItem, an action or a menu" ),
G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE ));
g_object_class_install_property( object_class, MAIN_PROP_PROFILE_ID,
g_param_spec_pointer(
MAIN_PROP_PROFILE,
- "Current NAObjectProfile",
- "A pointer to the currently edited NAObjectProfile",
+ _( "Current NAObjectProfile" ),
+ _( "A pointer to the currently edited NAObjectProfile" ),
G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE ));
g_object_class_install_property( object_class, MAIN_PROP_CONTEXT_ID,
g_param_spec_pointer(
MAIN_PROP_CONTEXT,
- "Current NAIContext",
- "A pointer to the currently edited NAIContext",
+ _( "Current NAIContext" ),
+ _( "A pointer to the currently edited NAIContext" ),
G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE ));
g_object_class_install_property( object_class, MAIN_PROP_EDITABLE_ID,
g_param_spec_boolean(
MAIN_PROP_EDITABLE,
- "Editable item ?",
- "Whether the item will be able to be updated against its I/O provider", FALSE,
+ _( "Editable item ?" ),
+ _( "Whether the item will be able to be updated against its I/O provider" ),
+ FALSE,
G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE ));
g_object_class_install_property( object_class, MAIN_PROP_REASON_ID,
g_param_spec_int(
MAIN_PROP_REASON,
- "No edition reason",
- "Why is this item not editable", 0, 255, 0,
+ _( "No edition reason" ),
+ _( "Why is this item not editable" ),
+ 0, 255, 0,
G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE ));
klass->private = g_new0( NactMainWindowClassPrivate, 1 );
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]