Revision: 2064 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2064&view=re... Author: colombanw Date: 2011-05-10 02:15:23 +0000 (Tue, 10 May 2011)
Log Message: ----------- WebHelper: mark settings nicks and blurbs as translatable
Modified Paths: -------------- trunk/geany-plugins/po/POTFILES.in trunk/geany-plugins/webhelper/src/gwh-browser.c trunk/geany-plugins/webhelper/src/gwh-plugin.c trunk/geany-plugins/webhelper/src/gwh-settings.c
Modified: trunk/geany-plugins/po/POTFILES.in =================================================================== --- trunk/geany-plugins/po/POTFILES.in 2011-05-10 02:14:46 UTC (rev 2063) +++ trunk/geany-plugins/po/POTFILES.in 2011-05-10 02:15:23 UTC (rev 2064) @@ -176,6 +176,7 @@ # WebHelper webhelper/src/gwh-browser.c webhelper/src/gwh-plugin.c +webhelper/src/gwh-settings.c
# XMLSnippets xmlsnippets/src/plugin.c
Modified: trunk/geany-plugins/webhelper/src/gwh-browser.c =================================================================== --- trunk/geany-plugins/webhelper/src/gwh-browser.c 2011-05-10 02:14:46 UTC (rev 2063) +++ trunk/geany-plugins/webhelper/src/gwh-browser.c 2011-05-10 02:15:23 UTC (rev 2064) @@ -723,7 +723,7 @@ g_object_class_install_property (object_class, PROP_INSPECTOR_TRANSIENT_FOR, g_param_spec_object ("inspector-transient-for", "Inspector transient for", - "The parent window of the inspector when detached.", + "The parent window of the inspector when detached", GTK_TYPE_WINDOW, G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_URI,
Modified: trunk/geany-plugins/webhelper/src/gwh-plugin.c =================================================================== --- trunk/geany-plugins/webhelper/src/gwh-plugin.c 2011-05-10 02:14:46 UTC (rev 2063) +++ trunk/geany-plugins/webhelper/src/gwh-plugin.c 2011-05-10 02:15:23 UTC (rev 2064) @@ -302,58 +302,58 @@
gwh_settings_install_property (G_settings, g_param_spec_boolean ( "browser-auto-reload", - "Browser auto reload", - "Whether the browser reloads itself upon document saving", + _("Browser auto reload"), + _("Whether the browser reloads itself upon document saving"), TRUE, G_PARAM_READWRITE)); gwh_settings_install_property (G_settings, g_param_spec_string ( "browser-last-uri", - "Browser last URI", - "Last URI visited by the browser", + _("Browser last URI"), + _("Last URI visited by the browser"), "about:blank", G_PARAM_READWRITE)); gwh_settings_install_property (G_settings, g_param_spec_enum ( "browser-orientation", - "Browser orientation", - "Orientation of the browser widget", + _("Browser orientation"), + _("Orientation of the browser widget"), GTK_TYPE_ORIENTATION, GTK_ORIENTATION_VERTICAL, G_PARAM_READWRITE)); gwh_settings_install_property (G_settings, g_param_spec_enum ( "browser-position", - "Browser position", - "Position of the browser widget in Geany's UI", + _("Browser position"), + _("Position of the browser widget in Geany's UI"), GWH_TYPE_BROWSER_POSITION, GWH_BROWSER_POSITION_MESSAGE_WINDOW, G_PARAM_READWRITE)); gwh_settings_install_property (G_settings, g_param_spec_string ( "browser-separate-window-geometry", - "Browser separate window geometry", - "Last geometry of the separated browser's window", + _("Browser separate window geometry"), + _("Last geometry of the separated browser's window"), "400x300", G_PARAM_READWRITE)); gwh_settings_install_property (G_settings, g_param_spec_string ( "inspector-window-geometry", - "Inspector window geometry", - "Last geometry of the inspector window", + _("Inspector window geometry"), + _("Last geometry of the inspector window"), "400x300", G_PARAM_READWRITE)); gwh_settings_install_property (G_settings, g_param_spec_boolean ( "wm-secondary-windows-skip-taskbar", - "Secondary windows skip task bar", - "Whether to tell the window manager not to show the secondary windows in the task bar", + _("Secondary windows skip task bar"), + _("Whether to tell the window manager not to show the secondary windows in the task bar"), TRUE, G_PARAM_READWRITE)); gwh_settings_install_property (G_settings, g_param_spec_boolean ( "wm-secondary-windows-are-transient", - "Secondary windows are transient", - "Whether secondary windows are transient children of their parent", + _("Secondary windows are transient"), + _("Whether secondary windows are transient children of their parent"), TRUE, G_PARAM_READWRITE)); gwh_settings_install_property (G_settings, g_param_spec_enum ( "wm-secondary-windows-type", - "Secondary windows type", - "The type of the secondary windows", + _("Secondary windows type"), + _("The type of the secondary windows"), GWH_TYPE_WINDOW_TYPE, GWH_WINDOW_TYPE_NORMAL, G_PARAM_READWRITE));
Modified: trunk/geany-plugins/webhelper/src/gwh-settings.c =================================================================== --- trunk/geany-plugins/webhelper/src/gwh-settings.c 2011-05-10 02:14:46 UTC (rev 2063) +++ trunk/geany-plugins/webhelper/src/gwh-settings.c 2011-05-10 02:15:23 UTC (rev 2064) @@ -19,9 +19,12 @@
#include "gwh-settings.h"
+#include "config.h" + #include <string.h> #include <stdarg.h> #include <glib.h> +#include <glib/gi18n-lib.h> #include <glib-object.h> #include <gtk/gtk.h>
@@ -768,7 +771,7 @@ gchar *label;
box = gtk_hbox_new (FALSE, 6); - label = g_strdup_printf ("%s:", g_param_spec_get_nick (pspec)); + label = g_strdup_printf (_("%s:"), g_param_spec_get_nick (pspec)); gtk_box_pack_start (GTK_BOX (box), gtk_label_new (label), FALSE, TRUE, 0); g_free (label); gtk_box_pack_start (GTK_BOX (box), widget, TRUE, TRUE, 0);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org