Revision: 1731 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=1731&view=re... Author: colombanw Date: 2010-11-07 19:26:36 +0000 (Sun, 07 Nov 2010)
Log Message: ----------- WebHelper: Mark strings as translatable, plus some small string fixes
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 2010-11-07 17:19:21 UTC (rev 1730) +++ trunk/geany-plugins/po/POTFILES.in 2010-11-07 19:26:36 UTC (rev 1731) @@ -127,4 +127,5 @@ updatechecker/src/updatechecker.c
# WebHelper +webhelper/src/gwh-browser.c webhelper/src/gwh-plugin.c
Modified: trunk/geany-plugins/webhelper/src/gwh-browser.c =================================================================== --- trunk/geany-plugins/webhelper/src/gwh-browser.c 2010-11-07 17:19:21 UTC (rev 1730) +++ trunk/geany-plugins/webhelper/src/gwh-browser.c 2010-11-07 19:26:36 UTC (rev 1731) @@ -19,8 +19,11 @@
#include "gwh-browser.h"
+#include "config.h" + #include <stdio.h> #include <glib.h> +#include <glib/gi18n-lib.h> #include <gtk/gtk.h> #include <webkit/webkit.h>
@@ -457,7 +460,7 @@
/* Zoom menu */ submenu = gtk_menu_new (); - item = gtk_menu_item_new_with_mnemonic ("_Zoom"); + item = gtk_menu_item_new_with_mnemonic (_("_Zoom")); gtk_widget_show (item); gtk_menu_item_set_submenu (GTK_MENU_ITEM (item), submenu); gtk_menu_append (menu, item); @@ -479,7 +482,7 @@ gtk_menu_append (GTK_MENU (submenu), item); /* full content zoom */ ADD_SEPARATOR (submenu); - item = gtk_check_menu_item_new_with_mnemonic ("Full-_content zoom"); + item = gtk_check_menu_item_new_with_mnemonic (_("Full-_content zoom")); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item), webkit_web_view_get_full_content_zoom (view)); g_signal_connect (item, "activate", @@ -490,7 +493,7 @@
ADD_SEPARATOR (menu);
- item = gtk_menu_item_new_with_label ("Flip panes orientation"); + item = gtk_menu_item_new_with_label (_("Flip panes orientation")); g_signal_connect (item, "activate", G_CALLBACK (on_item_flip_orientation_activate), self); gtk_widget_show (item); @@ -729,19 +732,19 @@ NULL);
self->priv->item_prev = gtk_tool_button_new_from_stock (GTK_STOCK_GO_BACK); - gtk_tool_item_set_tooltip_text (self->priv->item_prev, "Back"); + gtk_tool_item_set_tooltip_text (self->priv->item_prev, _("Back")); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), self->priv->item_prev, -1); gtk_widget_show (GTK_WIDGET (self->priv->item_prev)); self->priv->item_next = gtk_tool_button_new_from_stock (GTK_STOCK_GO_FORWARD); - gtk_tool_item_set_tooltip_text (self->priv->item_next, "Forward"); + gtk_tool_item_set_tooltip_text (self->priv->item_next, _("Forward")); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), self->priv->item_next, -1); gtk_widget_show (GTK_WIDGET (self->priv->item_next)); self->priv->item_cancel = gtk_tool_button_new_from_stock (GTK_STOCK_CANCEL); - gtk_tool_item_set_tooltip_text (self->priv->item_cancel, "Cancel loading"); + gtk_tool_item_set_tooltip_text (self->priv->item_cancel, _("Cancel loading")); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), self->priv->item_cancel, -1); /* don't show cancel */ self->priv->item_reload = gtk_tool_button_new_from_stock (GTK_STOCK_REFRESH); - gtk_tool_item_set_tooltip_text (self->priv->item_reload, "Reload current page"); + gtk_tool_item_set_tooltip_text (self->priv->item_reload, _("Reload current page")); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), self->priv->item_reload, -1); gtk_widget_show (GTK_WIDGET (self->priv->item_reload));
@@ -754,8 +757,8 @@ gtk_widget_show_all (GTK_WIDGET (item));
self->priv->item_inspector = gtk_toggle_tool_button_new_from_stock (GTK_STOCK_INFO); - gtk_tool_button_set_label (GTK_TOOL_BUTTON (self->priv->item_inspector), "Web inspector"); - gtk_tool_item_set_tooltip_text (self->priv->item_inspector, "Toggle web inspector"); + gtk_tool_button_set_label (GTK_TOOL_BUTTON (self->priv->item_inspector), _("Web inspector")); + gtk_tool_item_set_tooltip_text (self->priv->item_inspector, _("Toggle web inspector")); gtk_toolbar_insert (GTK_TOOLBAR (toolbar), self->priv->item_inspector, -1); gtk_widget_show (GTK_WIDGET (self->priv->item_inspector));
@@ -827,7 +830,7 @@ self->priv->inspector_window = g_object_new (GTK_TYPE_WINDOW, "type", GTK_WINDOW_TOPLEVEL, "skip-taskbar-hint", TRUE, - "title", "Web inspector", + "title", _("Web inspector"), NULL); g_signal_connect (self->priv->inspector_window, "delete-event", G_CALLBACK (on_inspector_window_delete_event), self);
Modified: trunk/geany-plugins/webhelper/src/gwh-plugin.c =================================================================== --- trunk/geany-plugins/webhelper/src/gwh-plugin.c 2010-11-07 17:19:21 UTC (rev 1730) +++ trunk/geany-plugins/webhelper/src/gwh-plugin.c 2010-11-07 19:26:36 UTC (rev 1731) @@ -17,16 +17,18 @@ * */
+#include "config.h" + #include <stdlib.h> #include <stdio.h> #include <glib.h> +#include <glib/gi18n-lib.h> #include <gtk/gtk.h>
#include <geanyplugin.h> #include <geany.h> #include <document.h>
-#include "config.h" #include "gwh-browser.h" #include "gwh-settings.h"
@@ -95,7 +97,7 @@
g_object_get (G_OBJECT (G_settings), "browser-auto-reload", &auto_reload, NULL); - item = gtk_check_menu_item_new_with_mnemonic ("Reload upon document saving"); + item = gtk_check_menu_item_new_with_mnemonic (_("Reload upon document saving")); gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (item), auto_reload); gtk_widget_show (item); gtk_menu_append (menu, item);
Modified: trunk/geany-plugins/webhelper/src/gwh-settings.c =================================================================== --- trunk/geany-plugins/webhelper/src/gwh-settings.c 2010-11-07 17:19:21 UTC (rev 1730) +++ trunk/geany-plugins/webhelper/src/gwh-settings.c 2010-11-07 19:26:36 UTC (rev 1731) @@ -176,7 +176,7 @@ g_object_class_install_property (object_class, PROP_BROWSER_LAST_URI, g_param_spec_string ("browser-last-uri", "Browser last URI", - "Last URI visited with the browser", + "Last URI visited by the browser", "about:blank", G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_BROWSER_ORIENTATION, @@ -188,8 +188,8 @@ G_PARAM_READWRITE)); g_object_class_install_property (object_class, PROP_BROWSER_POSITION, g_param_spec_enum ("browser-position", - "browser position", - "Position of the browser widget in the Geany's UI", + "Browser position", + "Position of the browser widget in Geany's UI", GWH_TYPE_BROWSER_POSITION, GWH_BROWSER_POSITION_BOTTOM, G_PARAM_READWRITE)); @@ -266,7 +266,8 @@ enum_value = g_enum_get_value (enum_class, val); if (! enum_value) { g_set_error (error, G_KEY_FILE_ERROR, G_KEY_FILE_ERROR_INVALID_VALUE, - "Value %d is not valid for key %s::%s", val, group, key); + "Value "%d" is not valid for key "%s::%s"", + val, group, key); } else { g_key_file_set_string (kf, group, key, enum_value->value_nick); } @@ -284,7 +285,7 @@
default: g_set_error (error, G_KEY_FILE_ERROR, G_KEY_FILE_ERROR_INVALID_VALUE, - "Unsupported setting type %s for setting %s::%s", + "Unsupported setting type "%s" for setting "%s::%s"", G_VALUE_TYPE_NAME (value), group, key); success = FALSE; } @@ -370,7 +371,7 @@ enum_value = g_enum_get_value_by_nick (enum_class, str); if (! enum_value) { g_set_error (&err, G_KEY_FILE_ERROR, G_KEY_FILE_ERROR_INVALID_VALUE, - "Value "%s" is not valid for key %s::%s", + "Value "%s" is not valid for key "%s::%s"", str, group, key); } else { g_value_set_enum (value, enum_value->value); @@ -403,7 +404,7 @@
default: g_set_error (&err, G_KEY_FILE_ERROR, G_KEY_FILE_ERROR_INVALID_VALUE, - "Unsupported setting type %s for setting %s::%s", + "Unsupported setting type "%s" for setting "%s::%s"", G_VALUE_TYPE_NAME (value), group, key); } if (err) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.