Revision: 317 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=317&view=rev Author: frlan Date: 2008-11-26 21:14:02 +0000 (Wed, 26 Nov 2008)
Log Message: ----------- geanylipsum: Activating i18n for plugin
Modified Paths: -------------- trunk/geanylipsum/src/geanylipsum.c
Modified: trunk/geanylipsum/src/geanylipsum.c =================================================================== --- trunk/geanylipsum/src/geanylipsum.c 2008-11-25 22:23:45 UTC (rev 316) +++ trunk/geanylipsum/src/geanylipsum.c 2008-11-26 21:14:02 UTC (rev 317) @@ -30,7 +30,11 @@ #include "keybindings.h" #include "pluginmacros.h"
+#ifdef HAVE_LOCALE_H +# include <locale.h> +#endif
+ /* For your templates you can use: * {{TITLE_S}}: Start for title e.g <H1> * {{TITLE_E}}: End of title e.g. </H1> @@ -145,6 +149,8 @@ GtkTooltips *tooltips = NULL; tooltips = gtk_tooltips_new();
+ p_main->locale_init(LOCALEDIR, GETTEXT_PACKAGE); + menu_lipsum = gtk_image_menu_item_new_with_mnemonic(_("_Lipsum")); gtk_tooltips_set_tip(tooltips, menu_lipsum, _("Include Pseudotext to your code"), NULL);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.