#include <config.h>
#include <stdlib.h>
+#include <gettext.h>
+#define _(msgid) gettext (msgid)
+#define N_(msgid) msgid
+
#include <data/file-handle-def.h>
#include <data/sys-file-reader.h>
#include "psppire-var-store.h"
#include "psppire-data-store.h"
-#define _(A) A
-#define N_(A) A
extern GladeXML *xml;
static const gchar handle_name[] = "psppire_handle";
-static const gchar untitled[] = _("Untitled");
+static const gchar untitled[] = N_("Untitled");
-static const gchar window_title[]=_("PSPP Data Editor");
+static const gchar window_title[] = N_("PSPP Data Editor");
static void
{
GtkWidget *data_editor = get_widget_assert(xml, "data_editor");
- gchar *title = g_strdup_printf("%s --- %s", text, window_title);
+ gchar *title = g_strdup_printf("%s --- %s", text, gettext(window_title));
gtk_window_set_title(GTK_WINDOW(data_editor), title);
psppire_dict_clear(the_dictionary);
psppire_case_array_clear(the_cases);
- psppire_set_window_title(untitled);
+ psppire_set_window_title(gettext(untitled));
if (psppire_handle)
fh_free(psppire_handle);
gboolean
callbacks_on_init(gpointer data)
{
- psppire_set_window_title(untitled);
+ psppire_set_window_title(gettext(untitled));
var_data_selection_init();