diff options
author | Pierre Amadio <pierre.amadio@libertysurf.fr> | 2016-09-30 17:40:21 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-10-03 19:21:35 +0200 |
commit | 907706dcabca1cb690ce0ed3b1d527fb79cc4e94 (patch) | |
tree | c81729c104475958fd8906e131d033abd27bccf6 | |
parent | 47194f7a11984c47dc168ae9bd8696861f21d445 (diff) | |
download | network-manager-applet-907706dcabca1cb690ce0ed3b1d527fb79cc4e94.tar.gz |
libnm-gtk: wrap gtk_label in $_() sentence to assure localisation
Some string related to wifi password management are now wrapped within a
_() sentence to assure they get localised properly.
https://bugzilla.gnome.org/show_bug.cgi?id=772069
-rw-r--r-- | src/libnm-gtk/nm-ui-utils.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libnm-gtk/nm-ui-utils.c b/src/libnm-gtk/nm-ui-utils.c index 451de53c..b7d30469 100644 --- a/src/libnm-gtk/nm-ui-utils.c +++ b/src/libnm-gtk/nm-ui-utils.c @@ -836,12 +836,12 @@ nma_utils_setup_password_storage (GtkWidget *passwd_entry, g_object_set_data (G_OBJECT (popup_menu), PASSWORD_STORAGE_MENU_TAG, GUINT_TO_POINTER (TRUE)); g_object_set_data (G_OBJECT (popup_menu), MENU_WITH_NOT_REQUIRED_TAG, GUINT_TO_POINTER (with_not_required)); group = NULL; - item[0] = gtk_radio_menu_item_new_with_label (group, icon_desc_table[0]); + item[0] = gtk_radio_menu_item_new_with_label (group, _(icon_desc_table[0])); group = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (item[0])); - item[1] = gtk_radio_menu_item_new_with_label (group, icon_desc_table[1]); - item[2] = gtk_radio_menu_item_new_with_label (group, icon_desc_table[2]); + item[1] = gtk_radio_menu_item_new_with_label (group, _(icon_desc_table[1])); + item[2] = gtk_radio_menu_item_new_with_label (group, _(icon_desc_table[2])); if (with_not_required) - item[3] = gtk_radio_menu_item_new_with_label (group, icon_desc_table[3]); + item[3] = gtk_radio_menu_item_new_with_label (group, _(icon_desc_table[3])); gtk_menu_shell_append (GTK_MENU_SHELL (popup_menu), item[0]); gtk_menu_shell_append (GTK_MENU_SHELL (popup_menu), item[1]); |