SF.net SVN: geany-plugins:[539] trunk/shiftcolumn

andrew_janke at users.sourceforge.net andrew_janke at xxxxx
Mon Mar 9 22:39:45 UTC 2009


Revision: 539
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=539&view=rev
Author:   andrew_janke
Date:     2009-03-09 22:39:45 +0000 (Mon, 09 Mar 2009)

Log Message:
-----------
 * shiftcolumn/src/shiftcolumn: added i18n headers (and code)

Modified Paths:
--------------
    trunk/shiftcolumn/ChangeLog
    trunk/shiftcolumn/src/shiftcolumn.c

Modified: trunk/shiftcolumn/ChangeLog
===================================================================
--- trunk/shiftcolumn/ChangeLog	2009-03-09 22:20:21 UTC (rev 538)
+++ trunk/shiftcolumn/ChangeLog	2009-03-09 22:39:45 UTC (rev 539)
@@ -1,5 +1,11 @@
+
 2009-03-10  Andrew L Janke  <a.janke at gmail.com>
 
+ * Added i18n headers to shiftcolumn.c
+ * Added ru and de translations
+
+2009-03-10  Andrew L Janke  <a.janke at gmail.com>
+
  * Added GPL license and a few patches from Frank
  * added a few translations in the process of learning pot
 

Modified: trunk/shiftcolumn/src/shiftcolumn.c
===================================================================
--- trunk/shiftcolumn/src/shiftcolumn.c	2009-03-09 22:20:21 UTC (rev 538)
+++ trunk/shiftcolumn/src/shiftcolumn.c	2009-03-09 22:39:45 UTC (rev 539)
@@ -20,6 +20,12 @@
 
 
 #include "geany.h"
+#include "support.h"
+
+#ifdef HAVE_LOCALE_H
+# include <locale.h>
+#endif
+
 #include "ui_utils.h"
 
 #include "sciwrappers.h"
@@ -350,6 +356,10 @@
    }
 
 void plugin_init(G_GNUC_UNUSED GeanyData *data){
+
+   /* init gettext and friends */
+   main_locale_init(LOCALEDIR, GETTEXT_PACKAGE);
+   
    menu_item_shift_left = gtk_menu_item_new_with_mnemonic(_("Shift Left"));
    gtk_widget_show(menu_item_shift_left);
    gtk_container_add(GTK_CONTAINER(geany->main_widgets->tools_menu),


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