Reuse translation for combo button as well

This commit is contained in:
iota97 committed 2021-08-30 13:17:24 +02:00
1 parent f417bb93d4
commit 8f9610d2a0
2 files changed
+34 -35

No files matched your search

+2 -2
View File
@@ -178,7 +178,7 @@ void ComboKeyScreen::CreateViews() {
gridsettings.fillCells = true;
GridLayout *grid = vertLayout->Add(new GridLayout(gridsettings, new LayoutParams(FILL_PARENT, WRAP_CONTENT)));
// Button name, image and action are defined in GamepadEmu.h
// Button image and action are defined in GamepadEmu.h
for (int i = 0; i < ARRAY_SIZE(comboKeyList); ++i) {
LinearLayout *row = new LinearLayout(ORIENT_HORIZONTAL, new LinearLayoutParams(FILL_PARENT, WRAP_CONTENT));
row->SetSpacing(0);
@@ -190,7 +190,7 @@ void ComboKeyScreen::CreateViews() {
if (comboKeyList[i].i.isValid()) {
choice = new Choice(comboKeyList[i].i, new LinearLayoutParams(1.0f));
} else {
choice = new Choice(mc->T(comboKeyList[i].n), new LinearLayoutParams(1.0f));
choice = new Choice(mc->T(KeyMap::GetPspButtonNameCharPointer(comboKeyList[i].c)), new LinearLayoutParams(1.0f));
}
ChoiceEventHandler *choiceEventHandler = new ChoiceEventHandler(checkbox);