SF.net SVN: geany-plugins:[2256] trunk/geany-plugins/pretty-printer/src/ PluginEntry.c
frlan at users.sourceforge.net
frlan at xxxxx
Sat Oct 8 21:37:44 UTC 2011
Revision: 2256
http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2256&view=rev
Author: frlan
Date: 2011-10-08 21:37:44 +0000 (Sat, 08 Oct 2011)
Log Message:
-----------
PrettyPrinter: Marking some strings as translatable
Modified Paths:
--------------
trunk/geany-plugins/pretty-printer/src/PluginEntry.c
Modified: trunk/geany-plugins/pretty-printer/src/PluginEntry.c
===================================================================
--- trunk/geany-plugins/pretty-printer/src/PluginEntry.c 2011-10-08 16:57:40 UTC (rev 2255)
+++ trunk/geany-plugins/pretty-printer/src/PluginEntry.c 2011-10-08 21:37:44 UTC (rev 2256)
@@ -58,7 +58,7 @@
main_locale_init(LOCALEDIR, GETTEXT_PACKAGE);
//put the menu into the Tools
- main_menu_item = gtk_menu_item_new_with_mnemonic("PrettyPrint XML");
+ main_menu_item = gtk_menu_item_new_with_mnemonic(_("PrettyPrint XML"));
ui_add_document_sensitive(main_menu_item);
gtk_widget_show(main_menu_item);
@@ -66,7 +66,7 @@
//init keybindings
keybindings_set_item(plugin_key_group, 0, kb_run_xml_pretty_print,
- 0, 0, "run_pretty_printer_xml", "Run the PrettyPrinter XML",
+ 0, 0, "run_pretty_printer_xml", _("Run the PrettyPrinter XML"),
main_menu_item);
//add activation callback
@@ -92,7 +92,7 @@
void config_closed(GtkWidget* configWidget, gint response, gpointer gdata)
{
//if the user clicked OK or APPLY, then save the settings
- if (response == GTK_RESPONSE_OK ||
+ if (response == GTK_RESPONSE_OK ||
response == GTK_RESPONSE_APPLY)
{
saveSettings();
@@ -109,7 +109,7 @@
//retrieves the current document
GeanyDocument* doc = document_get_current();
g_return_if_fail(doc != NULL);
-
+
GeanyEditor* editor = doc->editor;
ScintillaObject* sco = editor->sci;
@@ -129,9 +129,9 @@
xmlDoc* parsedDocument = xmlParseDoc((unsigned char*)buffer);
//this is not a valid xml => exit with an error message
- if(parsedDocument == NULL)
+ if(parsedDocument == NULL)
{
- dialogs_show_msgbox(GTK_MESSAGE_ERROR, "Unable to parse the content as XML.");
+ dialogs_show_msgbox(GTK_MESSAGE_ERROR, _("Unable to parse the content as XML."));
return;
}
@@ -142,7 +142,7 @@
int result = processXMLPrettyPrinting(&buffer, &length, prettyPrintingOptions);
if (result != PRETTY_PRINTING_SUCCESS)
{
- dialogs_show_msgbox(GTK_MESSAGE_ERROR, "Unable to process PrettyPrinting on the specified XML because some features are not supported.\n\nSee Help > Debug messages for more details...");
+ dialogs_show_msgbox(GTK_MESSAGE_ERROR, _("Unable to process PrettyPrinting on the specified XML because some features are not supported.\n\nSee Help > Debug messages for more details..."));
return;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Plugins-Commits
mailing list