From: John Darrington Date: Fri, 18 Dec 2009 18:48:44 +0000 (+0100) Subject: Remove gettext markup from g_param_spec arguments. X-Git-Tag: fc11-i386-build60^0 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc1c214753f9074c05ac1609d8cdecbdf1eea255;p=pspp-builds.git Remove gettext markup from g_param_spec arguments. These strings are never seen by users, so there's little point in translating them. --- 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);