Merge pull request #2336 from lioncash/tl

FrameTools: Simplify some wx string translation marking
This commit is contained in:
skidau 2015-04-30 14:03:21 +10:00
commit d46598e51a

View File

@ -289,19 +289,19 @@ wxMenuBar* CFrame::CreateMenu()
{ {
viewMenu->Check(IDM_LOG_WINDOW, g_pCodeWindow->bShowOnStart[0]); viewMenu->Check(IDM_LOG_WINDOW, g_pCodeWindow->bShowOnStart[0]);
const wxString MenuText[] = { static const wxString menu_text[] = {
wxTRANSLATE("&Registers"), _("&Registers"),
wxTRANSLATE("&Watch"), _("&Watch"),
wxTRANSLATE("&Breakpoints"), _("&Breakpoints"),
wxTRANSLATE("&Memory"), _("&Memory"),
wxTRANSLATE("&JIT"), _("&JIT"),
wxTRANSLATE("&Sound"), _("&Sound"),
wxTRANSLATE("&Video") _("&Video")
}; };
for (int i = IDM_REGISTER_WINDOW; i <= IDM_VIDEO_WINDOW; i++) for (int i = IDM_REGISTER_WINDOW; i <= IDM_VIDEO_WINDOW; i++)
{ {
viewMenu->AppendCheckItem(i, wxGetTranslation(MenuText[i - IDM_REGISTER_WINDOW])); viewMenu->AppendCheckItem(i, menu_text[i - IDM_REGISTER_WINDOW]);
viewMenu->Check(i, g_pCodeWindow->bShowOnStart[i - IDM_LOG_WINDOW]); viewMenu->Check(i, g_pCodeWindow->bShowOnStart[i - IDM_LOG_WINDOW]);
} }