FrameTools: Simplify some wx string translation marking

This commit is contained in:
Lioncash 2015-04-28 00:02:35 -04:00
parent c58e94cf95
commit be3bd52bb5
1 changed files with 9 additions and 9 deletions

View File

@ -289,19 +289,19 @@ wxMenuBar* CFrame::CreateMenu()
{
viewMenu->Check(IDM_LOG_WINDOW, g_pCodeWindow->bShowOnStart[0]);
const wxString MenuText[] = {
wxTRANSLATE("&Registers"),
wxTRANSLATE("&Watch"),
wxTRANSLATE("&Breakpoints"),
wxTRANSLATE("&Memory"),
wxTRANSLATE("&JIT"),
wxTRANSLATE("&Sound"),
wxTRANSLATE("&Video")
static const wxString menu_text[] = {
_("&Registers"),
_("&Watch"),
_("&Breakpoints"),
_("&Memory"),
_("&JIT"),
_("&Sound"),
_("&Video")
};
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]);
}