Permalink
Browse files

Make keys names translatable in pop-up

  • Loading branch information...
vnctdj committed Aug 14, 2017
1 parent 945f57a commit 2c8b0e706995f26c899b10bec369caca7582a09d
Showing with 2 additions and 1 deletion.
  1. +2 −1 UI/ControlMappingScreen.cpp
@@ -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) {

0 comments on commit 2c8b0e7

Please sign in to comment.