Fixed translation of strings at runtime.

Static strings can not be translated until wxLocale is initialised.

This reverts commit 0004b6004b.

Conflicts:
	Source/Core/DolphinWX/VideoConfigDiag.cpp
This commit is contained in:
Matthew Parlane
2015-06-07 15:32:29 +12:00
parent b0afb08170
commit 1aa829c03c
5 changed files with 128 additions and 127 deletions

View File

@ -18,13 +18,10 @@
#include "DolphinWX/Config/GeneralConfigPane.h"
#include "DolphinWX/Debugger/CodeWindow.h"
struct CPUCore
GeneralConfigPane::GeneralConfigPane(wxWindow* parent, wxWindowID id)
: wxPanel(parent, id)
{
int CPUid;
wxString name;
};
static const CPUCore cpu_cores[] = {
cpu_cores = {
{ 0, _("Interpreter (VERY slow)") },
#ifdef _M_X86_64
{ 1, _("JIT Recompiler (recommended)") },
@ -34,11 +31,8 @@ static const CPUCore cpu_cores[] = {
#elif defined(_M_ARM_64)
{ 4, _("Arm64 JIT (experimental)") },
#endif
};
};
GeneralConfigPane::GeneralConfigPane(wxWindow* parent, wxWindowID id)
: wxPanel(parent, id)
{
InitializeGUI();
LoadGUIValues();
RefreshGUI();