Revision: 2297 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2297&view=re... Author: colombanw Date: 2011-10-19 22:31:27 +0000 (Wed, 19 Oct 2011) Log Message: ----------- WebHelper: Mark enum nicks as translatable
Allow for translating enumerations nicks and translate them when displayed to the user.
Modified Paths: -------------- trunk/geany-plugins/po/POTFILES.in trunk/geany-plugins/webhelper/src/gwh-enum-types.c.tpl trunk/geany-plugins/webhelper/src/gwh-settings.c
Modified: trunk/geany-plugins/po/POTFILES.in =================================================================== --- trunk/geany-plugins/po/POTFILES.in 2011-10-19 22:31:05 UTC (rev 2296) +++ trunk/geany-plugins/po/POTFILES.in 2011-10-19 22:31:27 UTC (rev 2297) @@ -192,6 +192,7 @@ updatechecker/src/updatechecker.c
# WebHelper +webhelper/src/gwh-enum-types.c webhelper/src/gwh-keybindings.c webhelper/src/gwh-settings.c webhelper/src/gwh-utils.c
Modified: trunk/geany-plugins/webhelper/src/gwh-enum-types.c.tpl =================================================================== --- trunk/geany-plugins/webhelper/src/gwh-enum-types.c.tpl 2011-10-19 22:31:05 UTC (rev 2296) +++ trunk/geany-plugins/webhelper/src/gwh-enum-types.c.tpl 2011-10-19 22:31:27 UTC (rev 2297) @@ -1,6 +1,8 @@ /*** BEGIN file-header ***/ #include "gwh-enum-types.h"
+#include <glib/gi18n.h> + /*** END file-header ***/
/*** BEGIN file-production ***/ @@ -17,7 +19,7 @@ /*** END value-header ***/
/*** BEGIN value-production ***/ - { @VALUENAME@, "@VALUENAME@", "@valuenick@" }, + { @VALUENAME@, "@VALUENAME@", N_("@valuenick@") }, /*** END value-production ***/
/*** BEGIN value-tail ***/
Modified: trunk/geany-plugins/webhelper/src/gwh-settings.c =================================================================== --- trunk/geany-plugins/webhelper/src/gwh-settings.c 2011-10-19 22:31:05 UTC (rev 2296) +++ trunk/geany-plugins/webhelper/src/gwh-settings.c 2011-10-19 22:31:27 UTC (rev 2297) @@ -561,7 +561,7 @@ gtk_list_store_append (store, &iter); gtk_list_store_set (store, &iter, 0, enum_class->values[i].value, - 1, enum_class->values[i].value_nick, + 1, _(enum_class->values[i].value_nick), -1); if (g_value_get_enum (value) == enum_class->values[i].value) { active = i;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.