Enable translation of the about dialog.

This commit is contained in:
Glenn Rice 2013-09-06 21:02:11 -05:00
parent 67c65831bc
commit f1c6357750

View File

@ -18,39 +18,40 @@ AboutDolphin::AboutDolphin(wxWindow *parent, wxWindowID id,
wxStaticBitmap* const sbDolphinLogo = new wxStaticBitmap(this, wxID_ANY, wxStaticBitmap* const sbDolphinLogo = new wxStaticBitmap(this, wxID_ANY,
wxBitmap(iDolphinLogo)); wxBitmap(iDolphinLogo));
std::string Text = "Dolphin " SCM_DESC_STR "\n" const wxString Text = wxString::Format(_("Dolphin %s\n"
"Copyright (c) 2003-2013+ Dolphin Team\n" "Copyright (c) 2003-2013+ Dolphin Team\n"
"\n" "\n"
"Branch: " SCM_BRANCH_STR "\n" "Branch: %s\n"
"Revision: " SCM_REV_STR "\n" "Revision: %s\n"
"Compiled: " __DATE__ " @ " __TIME__ "\n" "Compiled: %s @ %s\n"
"\n" "\n"
"Dolphin is a Gamecube/Wii emulator, which was\n" "Dolphin is a Gamecube/Wii emulator, which was\n"
"originally written by F|RES and ector.\n" "originally written by F|RES and ector.\n"
"Today Dolphin is an open source project with many\n" "Today Dolphin is an open source project with many\n"
"contributors, too many to list.\n" "contributors, too many to list.\n"
"If interested, just go check out the project page at\n" "If interested, just go check out the project page at\n"
"http://code.google.com/p/dolphin-emu/ .\n" "http://code.google.com/p/dolphin-emu/ .\n"
"\n" "\n"
"Special thanks to Bushing, Costis, CrowTRobo,\n" "Special thanks to Bushing, Costis, CrowTRobo,\n"
"Marcan, Segher, Titanik, or9 and Hotquik for their\n" "Marcan, Segher, Titanik, or9 and Hotquik for their\n"
"reverse engineering and docs/demos.\n" "reverse engineering and docs/demos.\n"
"\n" "\n"
"Big thanks to Gilles Mouchard whose Microlib PPC\n" "Big thanks to Gilles Mouchard whose Microlib PPC\n"
"emulator gave our development a kickstart.\n" "emulator gave our development a kickstart.\n"
"\n" "\n"
"Thanks to Frank Wille for his PowerPC disassembler,\n" "Thanks to Frank Wille for his PowerPC disassembler,\n"
"which or9 and we modified to include Gekko specifics.\n" "which or9 and we modified to include Gekko specifics.\n"
"\n" "\n"
"Thanks to hcs/destop for their GC ADPCM decoder.\n" "Thanks to hcs/destop for their GC ADPCM decoder.\n"
"\n" "\n"
"We are not affiliated with Nintendo in any way.\n" "We are not affiliated with Nintendo in any way.\n"
"Gamecube and Wii are trademarks of Nintendo.\n" "Gamecube and Wii are trademarks of Nintendo.\n"
"The emulator is for educational purposes only\n" "The emulator is for educational purposes only\n"
"and should not be used to play games you do\n" "and should not be used to play games you do\n"
"not legally own."; "not legally own."),
wxStaticText* const Message = new wxStaticText(this, wxID_ANY, SCM_DESC_STR, SCM_BRANCH_STR, SCM_REV_STR, __DATE__, __TIME__);
StrToWxStr(Text));
wxStaticText* const Message = new wxStaticText(this, wxID_ANY, Text);
Message->Wrap(GetSize().GetWidth()); Message->Wrap(GetSize().GetWidth());
wxBoxSizer* const sInfo = new wxBoxSizer(wxVERTICAL); wxBoxSizer* const sInfo = new wxBoxSizer(wxVERTICAL);