FrontendCommon: Attempt two at hotkey translation

This commit is contained in:
Connor McLaughlin 2020-10-04 17:37:39 +10:00
parent d595d6b595
commit 7278f055cb
2 changed files with 40 additions and 41 deletions

View File

@ -184,6 +184,5 @@ protected:
};
#define TRANSLATABLE(context, str) str
#define TRANSLATABLE_NOOP(context, str)
extern HostInterface* g_host_interface;

View File

@ -1540,46 +1540,46 @@ void CommonHostInterface::RegisterSaveStateHotkeys()
}
// Dummy strings for translation because we construct them in a loop.
TRANSLATABLE_NOOP("Hotkeys", "Load Game State 1");
TRANSLATABLE_NOOP("Hotkeys", "Load Game State 2");
TRANSLATABLE_NOOP("Hotkeys", "Load Game State 3");
TRANSLATABLE_NOOP("Hotkeys", "Load Game State 4");
TRANSLATABLE_NOOP("Hotkeys", "Load Game State 5");
TRANSLATABLE_NOOP("Hotkeys", "Load Game State 6");
TRANSLATABLE_NOOP("Hotkeys", "Load Game State 7");
TRANSLATABLE_NOOP("Hotkeys", "Load Game State 8");
TRANSLATABLE_NOOP("Hotkeys", "Load Game State 9");
TRANSLATABLE_NOOP("Hotkeys", "Load Game State 10");
TRANSLATABLE_NOOP("Hotkeys", "Save Game State 1");
TRANSLATABLE_NOOP("Hotkeys", "Save Game State 2");
TRANSLATABLE_NOOP("Hotkeys", "Save Game State 3");
TRANSLATABLE_NOOP("Hotkeys", "Save Game State 4");
TRANSLATABLE_NOOP("Hotkeys", "Save Game State 5");
TRANSLATABLE_NOOP("Hotkeys", "Save Game State 6");
TRANSLATABLE_NOOP("Hotkeys", "Save Game State 7");
TRANSLATABLE_NOOP("Hotkeys", "Save Game State 8");
TRANSLATABLE_NOOP("Hotkeys", "Save Game State 9");
TRANSLATABLE_NOOP("Hotkeys", "Save Game State 10");
TRANSLATABLE_NOOP("Hotkeys", "Load Global State 1");
TRANSLATABLE_NOOP("Hotkeys", "Load Global State 2");
TRANSLATABLE_NOOP("Hotkeys", "Load Global State 3");
TRANSLATABLE_NOOP("Hotkeys", "Load Global State 4");
TRANSLATABLE_NOOP("Hotkeys", "Load Global State 5");
TRANSLATABLE_NOOP("Hotkeys", "Load Global State 6");
TRANSLATABLE_NOOP("Hotkeys", "Load Global State 7");
TRANSLATABLE_NOOP("Hotkeys", "Load Global State 8");
TRANSLATABLE_NOOP("Hotkeys", "Load Global State 9");
TRANSLATABLE_NOOP("Hotkeys", "Load Global State 10");
TRANSLATABLE_NOOP("Hotkeys", "Save Global State 1");
TRANSLATABLE_NOOP("Hotkeys", "Save Global State 2");
TRANSLATABLE_NOOP("Hotkeys", "Save Global State 3");
TRANSLATABLE_NOOP("Hotkeys", "Save Global State 4");
TRANSLATABLE_NOOP("Hotkeys", "Save Global State 5");
TRANSLATABLE_NOOP("Hotkeys", "Save Global State 6");
TRANSLATABLE_NOOP("Hotkeys", "Save Global State 7");
TRANSLATABLE_NOOP("Hotkeys", "Save Global State 8");
TRANSLATABLE_NOOP("Hotkeys", "Save Global State 9");
TRANSLATABLE_NOOP("Hotkeys", "Save Global State 10");
(void)TRANSLATABLE("Hotkeys", "Load Game State 1");
(void)TRANSLATABLE("Hotkeys", "Load Game State 2");
(void)TRANSLATABLE("Hotkeys", "Load Game State 3");
(void)TRANSLATABLE("Hotkeys", "Load Game State 4");
(void)TRANSLATABLE("Hotkeys", "Load Game State 5");
(void)TRANSLATABLE("Hotkeys", "Load Game State 6");
(void)TRANSLATABLE("Hotkeys", "Load Game State 7");
(void)TRANSLATABLE("Hotkeys", "Load Game State 8");
(void)TRANSLATABLE("Hotkeys", "Load Game State 9");
(void)TRANSLATABLE("Hotkeys", "Load Game State 10");
(void)TRANSLATABLE("Hotkeys", "Save Game State 1");
(void)TRANSLATABLE("Hotkeys", "Save Game State 2");
(void)TRANSLATABLE("Hotkeys", "Save Game State 3");
(void)TRANSLATABLE("Hotkeys", "Save Game State 4");
(void)TRANSLATABLE("Hotkeys", "Save Game State 5");
(void)TRANSLATABLE("Hotkeys", "Save Game State 6");
(void)TRANSLATABLE("Hotkeys", "Save Game State 7");
(void)TRANSLATABLE("Hotkeys", "Save Game State 8");
(void)TRANSLATABLE("Hotkeys", "Save Game State 9");
(void)TRANSLATABLE("Hotkeys", "Save Game State 10");
(void)TRANSLATABLE("Hotkeys", "Load Global State 1");
(void)TRANSLATABLE("Hotkeys", "Load Global State 2");
(void)TRANSLATABLE("Hotkeys", "Load Global State 3");
(void)TRANSLATABLE("Hotkeys", "Load Global State 4");
(void)TRANSLATABLE("Hotkeys", "Load Global State 5");
(void)TRANSLATABLE("Hotkeys", "Load Global State 6");
(void)TRANSLATABLE("Hotkeys", "Load Global State 7");
(void)TRANSLATABLE("Hotkeys", "Load Global State 8");
(void)TRANSLATABLE("Hotkeys", "Load Global State 9");
(void)TRANSLATABLE("Hotkeys", "Load Global State 10");
(void)TRANSLATABLE("Hotkeys", "Save Global State 1");
(void)TRANSLATABLE("Hotkeys", "Save Global State 2");
(void)TRANSLATABLE("Hotkeys", "Save Global State 3");
(void)TRANSLATABLE("Hotkeys", "Save Global State 4");
(void)TRANSLATABLE("Hotkeys", "Save Global State 5");
(void)TRANSLATABLE("Hotkeys", "Save Global State 6");
(void)TRANSLATABLE("Hotkeys", "Save Global State 7");
(void)TRANSLATABLE("Hotkeys", "Save Global State 8");
(void)TRANSLATABLE("Hotkeys", "Save Global State 9");
(void)TRANSLATABLE("Hotkeys", "Save Global State 10");
}
void CommonHostInterface::RegisterAudioHotkeys()