projects
/
tilda-gobject.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Window] Mark strings for translation
[tilda-gobject.git]
/
tilda-window.c
diff --git
a/tilda-window.c
b/tilda-window.c
index
3bddd2d
..
579ee1f
100644
(file)
--- a/
tilda-window.c
+++ b/
tilda-window.c
@@
-287,7
+287,7
@@
tilda_window_try_to_bind_key (TildaWindow *self, const gchar *new_key)
return TRUE;
}
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)
/* 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)
/* 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
}
else
- g_printerr (
"No original key to revert to!\n"
);
+ g_printerr (
_("No original key to revert to!\n")
);
return FALSE;
}
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.
/* 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 */
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",
/* 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
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",
pspec);
pspec = g_param_spec_string ("key",
-
"Window's drop-down keybinding"
,
+
_("Window's drop-down keybinding")
,
NULL,
NULL,
G_PARAM_READWRITE);
NULL,
NULL,
G_PARAM_READWRITE);
@@
-719,7
+718,7
@@
tilda_window_class_init (gpointer g_class,
pspec);
pspec = g_param_spec_int ("height",
pspec);
pspec = g_param_spec_int ("height",
-
"Window's height"
,
+
_("Window's height")
,
NULL,
0,
INT_MAX,
NULL,
0,
INT_MAX,
@@
-731,7
+730,7
@@
tilda_window_class_init (gpointer g_class,
pspec);
pspec = g_param_spec_int ("width",
pspec);
pspec = g_param_spec_int ("width",
-
"Window's width"
,
+
_("Window's width")
,
NULL,
0,
INT_MAX,
NULL,
0,
INT_MAX,
@@
-743,7
+742,7
@@
tilda_window_class_init (gpointer g_class,
pspec);
pspec = g_param_spec_int ("x-position",
pspec);
pspec = g_param_spec_int ("x-position",
-
"Window's x position"
,
+
_("Window's x position")
,
NULL,
0,
INT_MAX,
NULL,
0,
INT_MAX,
@@
-755,7
+754,7
@@
tilda_window_class_init (gpointer g_class,
pspec);
pspec = g_param_spec_int ("y-position",
pspec);
pspec = g_param_spec_int ("y-position",
-
"Window's y position"
,
+
_("Window's y position")
,
NULL,
0,
INT_MAX,
NULL,
0,
INT_MAX,
@@
-767,7
+766,7
@@
tilda_window_class_init (gpointer g_class,
pspec);
pspec = g_param_spec_int ("tab-position",
pspec);
pspec = g_param_spec_int ("tab-position",
-
"Window's tab position"
,
+
_("Position of window's tab bar")
,
NULL,
0,
INT_MAX,
NULL,
0,
INT_MAX,
@@
-779,7
+778,7
@@
tilda_window_class_init (gpointer g_class,
pspec);
pspec = g_param_spec_int ("animation-orientation",
pspec);
pspec = g_param_spec_int ("animation-orientation",
-
"Window's animation orientation"
,
+
_("Window's animation orientation")
,
NULL,
0,
INT_MAX,
NULL,
0,
INT_MAX,
@@
-791,7
+790,7
@@
tilda_window_class_init (gpointer g_class,
pspec);
pspec = g_param_spec_int ("animation-delay",
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,
NULL,
0,
INT_MAX,
@@
-803,7
+802,7
@@
tilda_window_class_init (gpointer g_class,
pspec);
pspec = g_param_spec_boolean ("keep-above",
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);
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",
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);
NULL,
FALSE,
G_PARAM_READWRITE);
@@
-823,7
+822,7
@@
tilda_window_class_init (gpointer g_class,
pspec);
pspec = g_param_spec_boolean ("stick",
pspec);
pspec = g_param_spec_boolean ("stick",
-
"Display this window on all workspaces"
,
+
_("Display this window on all workspaces")
,
NULL,
FALSE,
G_PARAM_READWRITE);
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",
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);
NULL,
FALSE,
G_PARAM_READWRITE);
@@
-843,7
+842,7
@@
tilda_window_class_init (gpointer g_class,
pspec);
pspec = g_param_spec_boolean ("centered-horizontally",
pspec);
pspec = g_param_spec_boolean ("centered-horizontally",
-
"Center the window horizontally"
,
+
_("Center the window horizontally")
,
NULL,
FALSE,
G_PARAM_READWRITE);
NULL,
FALSE,
G_PARAM_READWRITE);
@@
-853,7
+852,7
@@
tilda_window_class_init (gpointer g_class,
pspec);
pspec = g_param_spec_boolean ("centered-vertically",
pspec);
pspec = g_param_spec_boolean ("centered-vertically",
-
"Center the window vertically"
,
+
_("Center the window vertically")
,
NULL,
FALSE,
G_PARAM_READWRITE);
NULL,
FALSE,
G_PARAM_READWRITE);