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,12 +18,12 @@ 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"
@ -48,9 +48,10 @@ AboutDolphin::AboutDolphin(wxWindow *parent, wxWindowID id,
"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);