simplify commit c2598f8: Add a missing gettext in plugin page owner tree

http://lists.gnucash.org/pipermail/gnucash-devel/2016-January/039302.html
This commit is contained in:
fell 2016-01-09 04:51:42 +01:00
parent 7a975e0ecd
commit 9df89b7c58

View File

@ -605,19 +605,19 @@ gnc_plugin_page_owner_tree_create_widget (GncPluginPage *plugin_page)
case GNC_OWNER_UNDEFINED :
break;
case GNC_OWNER_CUSTOMER :
label = N_("Customers");
label = _("Customers");
state_section = "Customers Overview";
break;
case GNC_OWNER_JOB :
label = N_("Jobs");
label = _("Jobs");
state_section = "Jobs Overview";
break;
case GNC_OWNER_VENDOR :
label = N_("Vendors");
label = _("Vendors");
state_section = "Vendors Overview";
break;
case GNC_OWNER_EMPLOYEE :
label = N_("Employees");
label = _("Employees");
state_section = "Employees Overview";
break;
}
@ -626,7 +626,7 @@ gnc_plugin_page_owner_tree_create_widget (GncPluginPage *plugin_page)
"show-column-menu", TRUE,
NULL);
g_object_set(G_OBJECT(plugin_page), "page-name", _(label), NULL);
g_object_set(G_OBJECT(plugin_page), "page-name", label, NULL);
priv->tree_view = tree_view;
selection = gtk_tree_view_get_selection(tree_view);