From c742f5287ac3c40742091c4f37d368f6206e3d3f Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 28 Aug 2010 13:24:12 +0200 Subject: [PATCH] Allow translation of default filenames in GUI --- src/ui/gui/psppire-data-window.c | 2 ++ src/ui/gui/psppire-output-window.c | 3 ++- src/ui/gui/psppire-syntax-window.c | 3 ++- src/ui/gui/psppire-window.c | 3 ++- 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/ui/gui/psppire-data-window.c b/src/ui/gui/psppire-data-window.c index e6d905e0b5..dd87f53f7b 100644 --- a/src/ui/gui/psppire-data-window.c +++ b/src/ui/gui/psppire-data-window.c @@ -1267,6 +1267,8 @@ GtkWidget* psppire_data_window_new (void) { return GTK_WIDGET (g_object_new (psppire_data_window_get_type (), + /* TRANSLATORS: This will form a filename. Please avoid whitespace. */ + "filename", _("PSPP-data"), "description", _("Data Editor"), NULL)); } diff --git a/src/ui/gui/psppire-output-window.c b/src/ui/gui/psppire-output-window.c index 19744c9301..9886810f11 100644 --- a/src/ui/gui/psppire-output-window.c +++ b/src/ui/gui/psppire-output-window.c @@ -1043,7 +1043,8 @@ GtkWidget* psppire_output_window_new (void) { return GTK_WIDGET (g_object_new (psppire_output_window_get_type (), - "filename", "Output", + /* TRANSLATORS: This will form a filename. Please avoid whitespace. */ + "filename", _("Output"), "description", _("Output Viewer"), NULL)); } diff --git a/src/ui/gui/psppire-syntax-window.c b/src/ui/gui/psppire-syntax-window.c index 058e27c505..d3d5e563d5 100644 --- a/src/ui/gui/psppire-syntax-window.c +++ b/src/ui/gui/psppire-syntax-window.c @@ -703,7 +703,8 @@ GtkWidget* psppire_syntax_window_new (void) { return GTK_WIDGET (g_object_new (psppire_syntax_window_get_type (), - "filename", "Syntax", + /* TRANSLATORS: This will form a filename. Please avoid whitespace. */ + "filename", _("Syntax"), "description", _("Syntax Editor"), NULL)); } diff --git a/src/ui/gui/psppire-window.c b/src/ui/gui/psppire-window.c index d3137ff223..2ae6b02fd9 100644 --- a/src/ui/gui/psppire-window.c +++ b/src/ui/gui/psppire-window.c @@ -243,7 +243,8 @@ psppire_window_class_init (PsppireWindowClass *class) g_param_spec_string ("filename", "File name", "The name of the file associated with this window, if any", - "Untitled", + /* TRANSLATORS: This will form a filename. Please avoid whitespace. */ + _("Untitled"), G_PARAM_CONSTRUCT | G_PARAM_READWRITE); g_unichar_to_utf8 (0x2014, mdash); -- 2.30.2