psppire-button-editable: Don't mark spec parameter text as translatable.
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 15 Jan 2016 15:47:45 +0000 (07:47 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 15 Jan 2016 15:47:45 +0000 (07:47 -0800)
The P_ prefix seems to be used by other GTK+ code, so use it here too.

Reported by Elias Estatistics <estatisticseu@gmail.com>.

src/ui/gui/psppire-button-editable.c

index 05cc0057dd736459eb73d04c4e37b4d6be279237..f77e3ce21711263f8eff489e28dd756b6bae2986 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPPIRE - a graphical user interface for PSPP.
-   Copyright (C) 2011, 2012 Free Software Foundation, Inc.
+   Copyright (C) 2011, 2012, 2016 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -21,6 +21,7 @@
 #include <gettext.h>
 #define _(msgid) gettext (msgid)
 #define N_(msgid) msgid
+#define P_(STRING) STRING
 
 /* GtkCellEditable interface. */
 static void gtk_cell_editable_interface_init (GtkCellEditableIface *iface);
@@ -132,8 +133,8 @@ psppire_button_editable_class_init (PsppireButtonEditableClass *class)
   g_object_class_install_property (gobject_class,
                                    PROP_PATH,
                                    g_param_spec_string ("path",
-                                                       _("TreeView path"),
-                                                       _("The path to the row in the GtkTreeView, as a string"),
+                                                       P_("TreeView path"),
+                                                       P_("The path to the row in the GtkTreeView, as a string"),
                                                        "",
                                                        G_PARAM_READWRITE));