Skip to content

Commit

Permalink
GeanySendMail: Use N_() for translations in arrays
Browse files Browse the repository at this point in the history
_() is a function and it then can't be used to initialize an array
element in C89, so use N_() that only marks the string for extracting
without actually translating it.  This is not an issue here since the
translation will be done automatically later by GTK (using the
GETTEXT_PATKAGE registered in the same array).
  • Loading branch information
b4n committed Jul 8, 2012
1 parent 0f23c89 commit f61a90c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geanysendmail/src/geanysendmail.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ static void add_stock_item(void)
GtkIconSet *icon_set;
GtkIconFactory *factory = gtk_icon_factory_new();
GtkIconTheme *theme = gtk_icon_theme_get_default();
GtkStockItem item = { GEANYSENDMAIL_STOCK_MAIL, _("Mail"), 0, 0, GETTEXT_PACKAGE };
GtkStockItem item = { GEANYSENDMAIL_STOCK_MAIL, N_("Mail"), 0, 0, GETTEXT_PACKAGE };

if (gtk_icon_theme_has_icon(theme, "mail-message-new"))
{
Expand Down

0 comments on commit f61a90c

Please sign in to comment.