Allow translation of default filenames in GUI
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 28 Aug 2010 11:24:12 +0000 (13:24 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 28 Aug 2010 11:24:12 +0000 (13:24 +0200)
src/ui/gui/psppire-data-window.c
src/ui/gui/psppire-output-window.c
src/ui/gui/psppire-syntax-window.c
src/ui/gui/psppire-window.c

index e6d905e0b5dbfea3e534afbfa2fba9e674084ca2..dd87f53f7b92ac47bf5c7026049005d26e5419f8 100644 (file)
@@ -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));
 }
index 19744c93012058dcc425d797f4e734f4a5f6ce5e..9886810f1134f109d7cc5496ad36f5876e587090 100644 (file)
@@ -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));
 }
index 058e27c505982d1728c5076c2b5dc0f3f183163d..d3d5e563d5f5268d591076baa05736bdf712663a 100644 (file)
@@ -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));
 }
index d3137ff2234d0d036329596a0c8ad0746d72dcd7..2ae6b02fd98cad854507e63fce27b2d1bdda737e 100644 (file)
@@ -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);