mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 17:49:48 -06:00
Add internationalization support. There aren't really any translations yet other than a little French thanks to DavidVag. So now the translators need to go to work. See http://wiki.wxwidgets.org/Internationalization for directions. The binary .mo files are generated at build time on linux. They are provided in Data/Languages for windows. I don't know where they need to go on OSX, but they should be able to be generated there at least. I added a target to generate them on windows, but does not build by default as it requires that msgfmt.exe from the gnu gettext tools be installed and in the path.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6747 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -9,27 +9,27 @@
|
||||
#define _connect_macro_(b, f, c, s) (b)->Connect(wxID_ANY, (c), wxCommandEventHandler( f ), (wxObject*)0, (wxEvtHandler*)s)
|
||||
|
||||
UDPConfigDiag::UDPConfigDiag(wxWindow * const parent, UDPWrapper * _wrp) :
|
||||
wxDialog(parent, -1, wxT("UDP Wiimote"), wxDefaultPosition, wxDefaultSize),
|
||||
wxDialog(parent, -1, _("UDP Wiimote"), wxDefaultPosition, wxDefaultSize),
|
||||
wrp(_wrp)
|
||||
{
|
||||
wxBoxSizer *const outer_sizer = new wxBoxSizer(wxVERTICAL);
|
||||
wxBoxSizer *const sizer1 = new wxBoxSizer(wxVERTICAL);
|
||||
wxStaticBoxSizer *const sizer2 = new wxStaticBoxSizer(wxVERTICAL, this, wxT("Update"));
|
||||
wxStaticBoxSizer *const sizer2 = new wxStaticBoxSizer(wxVERTICAL, this, _("Update"));
|
||||
|
||||
outer_sizer->Add(sizer1, 0, wxTOP | wxLEFT | wxRIGHT | wxEXPAND, 5);
|
||||
outer_sizer->Add(sizer2, 1, wxLEFT | wxRIGHT | wxEXPAND, 10);
|
||||
|
||||
enable = new wxCheckBox(this,wxID_ANY,wxT("Enable"));
|
||||
butt = new wxCheckBox(this,wxID_ANY,wxT("Buttons"));
|
||||
accel = new wxCheckBox(this,wxID_ANY,wxT("Acceleration"));
|
||||
point = new wxCheckBox(this,wxID_ANY,wxT("IR Pointer"));
|
||||
nun = new wxCheckBox(this,wxID_ANY,wxT("Nunchuk"));
|
||||
nunaccel = new wxCheckBox(this,wxID_ANY,wxT("Nunchuk Acceleration"));
|
||||
enable = new wxCheckBox(this,wxID_ANY,_("Enable"));
|
||||
butt = new wxCheckBox(this,wxID_ANY,_("Buttons"));
|
||||
accel = new wxCheckBox(this,wxID_ANY,_("Acceleration"));
|
||||
point = new wxCheckBox(this,wxID_ANY,_("IR Pointer"));
|
||||
nun = new wxCheckBox(this,wxID_ANY,_("Nunchuk"));
|
||||
nunaccel = new wxCheckBox(this,wxID_ANY,_("Nunchuk Acceleration"));
|
||||
|
||||
wxButton *const ok_butt = new wxButton(this,wxID_ANY,wxT("OK"));
|
||||
|
||||
wxBoxSizer *const port_sizer = new wxBoxSizer(wxHORIZONTAL);
|
||||
port_sizer->Add(new wxStaticText(this, wxID_ANY, wxT("UDP Port:")), 0, wxALIGN_CENTER);
|
||||
port_sizer->Add(new wxStaticText(this, wxID_ANY, _("UDP Port:")), 0, wxALIGN_CENTER);
|
||||
port_tbox = new wxTextCtrl(this, wxID_ANY, wxString::FromUTF8(wrp->port.c_str()));
|
||||
port_sizer->Add(port_tbox, 1, wxLEFT | wxEXPAND , 5);
|
||||
|
||||
|
Reference in New Issue
Block a user