From 2765d8489fd6be9ca2da2ddd9cbda840c2a1e52a Mon Sep 17 00:00:00 2001 From: vnctdj Date: Sun, 4 Jan 2015 02:01:05 +0100 Subject: [PATCH] Make "Back" button translatable on the analogs testing screen --- UI/ControlMappingScreen.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UI/ControlMappingScreen.cpp b/UI/ControlMappingScreen.cpp index 63434be900..952c70d364 100644 --- a/UI/ControlMappingScreen.cpp +++ b/UI/ControlMappingScreen.cpp @@ -435,6 +435,8 @@ bool AnalogTestScreen::key(const KeyInput &key) { void AnalogTestScreen::CreateViews() { using namespace UI; + I18NCategory *d = GetI18NCategory("Dialog"); + root_ = new LinearLayout(ORIENT_VERTICAL); LinearLayout *theTwo = new LinearLayout(ORIENT_HORIZONTAL, new LinearLayoutParams(1.0f)); @@ -456,5 +458,5 @@ void AnalogTestScreen::CreateViews() { lastKeyEvent_ = root_->Add(new TextView("", new LayoutParams(FILL_PARENT, WRAP_CONTENT))); - root_->Add(new Button("Back"))->OnClick.Handle(this, &UIScreen::OnBack); + root_->Add(new Button(d->T("Back")))->OnClick.Handle(this, &UIScreen::OnBack); }