Permalink
Browse files

WebHelper: Mark enum nicks as translatable

Allow for translating enumerations nicks and translate them when
displayed to the user.

git-svn-id: https://geany-plugins.svn.sourceforge.net/svnroot/geany-plugins/trunk/geany-plugins@2297 e8383189-8249-0410-b506-acc975200cbd
  • Loading branch information...
1 parent 9753274 commit 957484f0e0a257f856ab42f006409614dbc1601d @b4n b4n committed Oct 19, 2011
Showing with 5 additions and 2 deletions.
  1. +1 −0 po/POTFILES.in
  2. +3 −1 webhelper/src/gwh-enum-types.c.tpl
  3. +1 −1 webhelper/src/gwh-settings.c
View
@@ -192,6 +192,7 @@ treebrowser/src/treebrowser.c
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
@@ -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 @@ GType
/*** END value-header ***/
/*** BEGIN value-production ***/
- { @VALUENAME@, "@VALUENAME@", "@valuenick@" },
+ { @VALUENAME@, "@VALUENAME@", N_("@valuenick@") },
/*** END value-production ***/
/*** BEGIN value-tail ***/
@@ -561,7 +561,7 @@ gwh_settings_widget_enum_new (GwhSettings *self,
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;

0 comments on commit 957484f

Please sign in to comment.