From fc1c214753f9074c05ac1609d8cdecbdf1eea255 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Fri, 18 Dec 2009 19:48:44 +0100 Subject: [PATCH] Remove gettext markup from g_param_spec arguments. These strings are never seen by users, so there's little point in translating them. --- src/ui/gui/customentry.c | 5 +---- src/ui/gui/psppire-buttonbox.c | 4 ++-- src/ui/gui/psppire-dictview.c | 4 ++-- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/ui/gui/customentry.c b/src/ui/gui/customentry.c index b40c11cd..7b310469 100644 --- a/src/ui/gui/customentry.c +++ b/src/ui/gui/customentry.c @@ -54,9 +54,6 @@ */ #include -#include -#define _(msgid) gettext (msgid) - #include #include @@ -331,7 +328,7 @@ psppire_custom_entry_class_init (PsppireCustomEntryClass *klass) (widget_class, g_param_spec_enum ("shadow_type", "Shadow Type", - _("Style of bevel around the custom entry button"), + "Style of bevel around the custom entry button", GTK_TYPE_SHADOW_TYPE, GTK_SHADOW_ETCHED_IN, G_PARAM_READABLE), diff --git a/src/ui/gui/psppire-buttonbox.c b/src/ui/gui/psppire-buttonbox.c index 071751ad..28211654 100644 --- a/src/ui/gui/psppire-buttonbox.c +++ b/src/ui/gui/psppire-buttonbox.c @@ -140,8 +140,8 @@ psppire_button_box_class_init (PsppireButtonBoxClass *class) button_flags = g_param_spec_flags ("buttons", - _("Buttons"), - _("The mask that decides what buttons appear in the button box"), + "Buttons", + "The mask that decides what buttons appear in the button box", PSPPIRE_TYPE_BUTTON_MASK, PSPPIRE_BUTTON_OK_MASK | PSPPIRE_BUTTON_CANCEL_MASK | diff --git a/src/ui/gui/psppire-dictview.c b/src/ui/gui/psppire-dictview.c index 4c07d1fd..4d56eda9 100644 --- a/src/ui/gui/psppire-dictview.c +++ b/src/ui/gui/psppire-dictview.c @@ -198,14 +198,14 @@ psppire_dict_view_class_init (PsppireDictViewClass *class) GParamSpec *predicate_spec = g_param_spec_pointer ("predicate", "Predicate", - _("A predicate function"), + "A predicate function", G_PARAM_READABLE | G_PARAM_WRITABLE); GParamSpec *selection_mode_spec = g_param_spec_enum ("selection-mode", "Selection Mode", - _("How many things can be selected"), + "How many things can be selected", GTK_TYPE_SELECTION_MODE, GTK_SELECTION_MULTIPLE, G_PARAM_CONSTRUCT | G_PARAM_READABLE | G_PARAM_WRITABLE); -- 2.30.2