Use wxGetStockLabel() in internat sample

This allows to reuse "&File" translation already available in wxstd
catalog rather than translating it again in the sample catalogs for all
languages, so remove the now unnecessary translations from them.
This commit is contained in:
Vadim Zeitlin
2021-02-02 17:34:08 +01:00
parent 8293dcedef
commit aafed05b12
12 changed files with 2 additions and 45 deletions

View File

@@ -328,7 +328,8 @@ MyFrame::MyFrame(wxLocale& locale)
macro_menu->Append(INTERNAT_MACRO_9, wxGETTEXT_IN_CONTEXT_PLURAL("context_2", "sing", "plur", 2));
wxMenuBar *menu_bar = new wxMenuBar;
menu_bar->Append(file_menu, _("&File"));
// Using stock label here means that it will be automatically translated.
menu_bar->Append(file_menu, wxGetStockLabel(wxID_FILE));
menu_bar->Append(test_menu, _("&Test"));
menu_bar->Append(macro_menu, _("&Macro"));
SetMenuBar(menu_bar);