scan: New library for high-level PSPP syntax lexical analysis.
[pspp-builds.git] / src / ui / gui / val-labs-dialog.c
index 14eacabfadddb5842e81f444855233b0e903ec03..efeb548e29d61060c5a781c1057716cff103fdab 100644 (file)
 #include "psppire-var-store.h"
 #include <libpspp/i18n.h>
 
+#include <gettext.h>
+#define _(msgid) gettext (msgid)
+#define N_(msgid) msgid
+
 struct val_labs_dialog
 {
   GtkWidget *window;
@@ -324,7 +328,7 @@ on_remove (GtkWidget *w, gpointer data)
   struct val_labs_dialog *dialog = data;
 
   union value value;
-  const struct val_lab *vl;
+  struct val_lab *vl;
 
   get_selected_tuple (dialog, &value, NULL);
   vl = val_labs_lookup (dialog->labs, &value);
@@ -508,7 +512,7 @@ repopulate_dialog (struct val_labs_dialog *dialog)
        value_to_text (vl->value, dialog->dict,
                      *var_get_write_format (dialog->pv));
 
-      gchar *const text = g_strdup_printf ("%s = \"%s\"",
+      gchar *const text = g_strdup_printf (_("%s = `%s'"),
                                           vstr, val_lab_get_label (vl));
 
       gtk_list_store_append (list_store, &iter);