[Window] Mark strings for translation
authorIra W. Snyder <devel@irasnyder.com>
Sat, 19 Jan 2008 23:14:41 +0000 (15:14 -0800)
committerIra W. Snyder <devel@irasnyder.com>
Sat, 19 Jan 2008 23:14:41 +0000 (15:14 -0800)
This marks all of the eligible strings in TildaWindow for translation
with gettext.

tilda-window.c

index 3bddd2d..579ee1f 100644 (file)
@@ -287,7 +287,7 @@ tilda_window_try_to_bind_key (TildaWindow *self, const gchar *new_key)
                return TRUE;
        }
 
-       g_printerr ("Keybinding unsuccessful. Reverting to original key\n");
+       g_printerr (_("Bind key '%s' failed. Reverting to original keybinding\n"), self->key);
 
        /* Not successful, so rebind the old key, and return FALSE */
        if (self->key != NULL && strcmp("",self->key) != 0)
@@ -296,10 +296,10 @@ tilda_window_try_to_bind_key (TildaWindow *self, const gchar *new_key)
 
                /* Check that it went ok */
                if (!ret)
-                       g_printerr ("Unable to bind original key as well! Oh shit...\n");
+                       g_printerr (_("Unable to re-bind original key '%s'. Oh shit...\n"), self->key);
        }
        else
-               g_printerr ("No original key to revert to!\n");
+               g_printerr (_("No original key to revert to!\n"));
 
        return FALSE;
 }
@@ -582,8 +582,7 @@ tilda_window_constructor (GType                  type,
 
        /* Do other stuff here. The object is ready to go now, and all
         * ctor properties have been set.
-        *
-        * TODO: This is the place to do DBus-init */
+        */
        self = TILDA_WINDOW(obj);
 
        /* Register this object with DBus */
@@ -697,8 +696,8 @@ tilda_window_class_init (gpointer g_class,
 
        /* Install all of the properties */
        pspec = g_param_spec_int ("number",
-                                                         "Window number",
-                                                         "Set window's number",
+                                                         _("Window number"),
+                                                         NULL,
                                                          0,            // min value
                                                          INT_MAX,      // max value
                                                          0,            // def value
@@ -709,7 +708,7 @@ tilda_window_class_init (gpointer g_class,
                                                                         pspec);
 
        pspec = g_param_spec_string ("key",
-                                                                "Window's drop-down keybinding",
+                                                                _("Window's drop-down keybinding"),
                                                                 NULL,
                                                                 NULL,
                                                                 G_PARAM_READWRITE);
@@ -719,7 +718,7 @@ tilda_window_class_init (gpointer g_class,
                                                                         pspec);
 
        pspec = g_param_spec_int ("height",
-                                                         "Window's height",
+                                                         _("Window's height"),
                                                          NULL,
                                                          0,
                                                          INT_MAX,
@@ -731,7 +730,7 @@ tilda_window_class_init (gpointer g_class,
                                                                         pspec);
 
        pspec = g_param_spec_int ("width",
-                                                         "Window's width",
+                                                         _("Window's width"),
                                                          NULL,
                                                          0,
                                                          INT_MAX,
@@ -743,7 +742,7 @@ tilda_window_class_init (gpointer g_class,
                                                                         pspec);
 
        pspec = g_param_spec_int ("x-position",
-                                                         "Window's x position",
+                                                         _("Window's x position"),
                                                          NULL,
                                                          0,
                                                          INT_MAX,
@@ -755,7 +754,7 @@ tilda_window_class_init (gpointer g_class,
                                                                         pspec);
 
        pspec = g_param_spec_int ("y-position",
-                                                         "Window's y position",
+                                                         _("Window's y position"),
                                                          NULL,
                                                          0,
                                                          INT_MAX,
@@ -767,7 +766,7 @@ tilda_window_class_init (gpointer g_class,
                                                                         pspec);
 
        pspec = g_param_spec_int ("tab-position",
-                                                         "Window's tab position",
+                                                         _("Position of window's tab bar"),
                                                          NULL,
                                                          0,
                                                          INT_MAX,
@@ -779,7 +778,7 @@ tilda_window_class_init (gpointer g_class,
                                                                         pspec);
 
        pspec = g_param_spec_int ("animation-orientation",
-                                                         "Window's animation orientation",
+                                                         _("Window's animation orientation"),
                                                          NULL,
                                                          0,
                                                          INT_MAX,
@@ -791,7 +790,7 @@ tilda_window_class_init (gpointer g_class,
                                                                         pspec);
 
        pspec = g_param_spec_int ("animation-delay",
-                                                         "Amount of time in milliseconds between animation intervals",
+                                                         _("Amount of time in milliseconds between animation intervals"),
                                                          NULL,
                                                          0,
                                                          INT_MAX,
@@ -803,7 +802,7 @@ tilda_window_class_init (gpointer g_class,
                                                                         pspec);
 
        pspec = g_param_spec_boolean ("keep-above",
-                                                                 "Keep this window above all others",
+                                                                 _("Keep this window above all others"),
                                                                  NULL,
                                                                  FALSE,
                                                                  G_PARAM_READWRITE);
@@ -813,7 +812,7 @@ tilda_window_class_init (gpointer g_class,
                                                                         pspec);
 
        pspec = g_param_spec_boolean ("skip-taskbar-hint",
-                                                                 "Hide this window in the taskbar if TRUE",
+                                                                 _("Hide this window in the taskbar if TRUE"),
                                                                  NULL,
                                                                  FALSE,
                                                                  G_PARAM_READWRITE);
@@ -823,7 +822,7 @@ tilda_window_class_init (gpointer g_class,
                                                                         pspec);
 
        pspec = g_param_spec_boolean ("stick",
-                                                                 "Display this window on all workspaces",
+                                                                 _("Display this window on all workspaces"),
                                                                  NULL,
                                                                  FALSE,
                                                                  G_PARAM_READWRITE);
@@ -833,7 +832,7 @@ tilda_window_class_init (gpointer g_class,
                                                                         pspec);
 
        pspec = g_param_spec_boolean ("hidden-at-start",
-                                                                 "Hide the window when it is first created",
+                                                                 _("Hide the window when it is first created"),
                                                                  NULL,
                                                                  FALSE,
                                                                  G_PARAM_READWRITE);
@@ -843,7 +842,7 @@ tilda_window_class_init (gpointer g_class,
                                                                         pspec);
 
        pspec = g_param_spec_boolean ("centered-horizontally",
-                                                                 "Center the window horizontally",
+                                                                 _("Center the window horizontally"),
                                                                  NULL,
                                                                  FALSE,
                                                                  G_PARAM_READWRITE);
@@ -853,7 +852,7 @@ tilda_window_class_init (gpointer g_class,
                                                                         pspec);
 
        pspec = g_param_spec_boolean ("centered-vertically",
-                                                                 "Center the window vertically",
+                                                                 _("Center the window vertically"),
                                                                  NULL,
                                                                  FALSE,
                                                                  G_PARAM_READWRITE);