mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Make keys names translatable in pop-up
This commit is contained in:
parent
945f57af39
commit
2c8b0e7069
1 changed files with 2 additions and 1 deletions
|
@ -308,10 +308,11 @@ void KeyMappingNewKeyDialog::CreatePopupContents(UI::ViewGroup *parent) {
|
|||
using namespace UI;
|
||||
|
||||
I18NCategory *km = GetI18NCategory("KeyMapping");
|
||||
I18NCategory *mc = GetI18NCategory("MappableControls");
|
||||
|
||||
std::string pspButtonName = KeyMap::GetPspButtonName(this->pspBtn_);
|
||||
|
||||
parent->Add(new TextView(std::string(km->T("Map a new key for")) + " " + pspButtonName, new LinearLayoutParams(Margins(10,0))));
|
||||
parent->Add(new TextView(std::string(km->T("Map a new key for")) + " " + mc->T(pspButtonName), new LinearLayoutParams(Margins(10,0))));
|
||||
}
|
||||
|
||||
bool KeyMappingNewKeyDialog::key(const KeyInput &key) {
|
||||
|
|
Loading…
Add table
Reference in a new issue