mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
Merge pull request #2336 from lioncash/tl
FrameTools: Simplify some wx string translation marking
This commit is contained in:
commit
d46598e51a
@ -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]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user