mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
ControllerEmu: Use enum instead of bool for translatability
This commit is contained in:
parent
3f13dbe087
commit
7ed28297b2
23 changed files with 123 additions and 77 deletions
|
@ -966,8 +966,9 @@ ControlGroupBox::ControlGroupBox(ControllerEmu::ControlGroup* const group, wxWin
|
|||
{
|
||||
const wxString control_ui_name = StrToWxStr(control->ui_name);
|
||||
|
||||
const bool translate = control->translate == ControllerEmu::Translate;
|
||||
wxStaticText* const label = new wxStaticText(
|
||||
parent, wxID_ANY, control->translate ? wxGetTranslation(control_ui_name) : control_ui_name);
|
||||
parent, wxID_ANY, translate ? wxGetTranslation(control_ui_name) : control_ui_name);
|
||||
|
||||
ControlButton* const control_button =
|
||||
new ControlButton(parent, control->control_ref.get(), control->ui_name, 80);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue