From b69614bdec0a7dbbcfed899be0d69eda38264afc Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sat, 31 Aug 2013 15:02:13 +0200 Subject: [PATCH] Add back button to system information dialog. Fixes #3415 --- UI/MiscScreens.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/UI/MiscScreens.cpp b/UI/MiscScreens.cpp index 56d1bae84c..42cb973aea 100644 --- a/UI/MiscScreens.cpp +++ b/UI/MiscScreens.cpp @@ -318,6 +318,7 @@ void LogoScreen::render() { void SystemInfoScreen::CreateViews() { // NOTE: Do not translate this section. It will change a lot and will be impossible to keep up. + I18NCategory *g = GetI18NCategory("General"); using namespace UI; root_ = new ScrollView(ORIENT_VERTICAL, new LayoutParams(FILL_PARENT, FILL_PARENT)); @@ -326,10 +327,11 @@ void SystemInfoScreen::CreateViews() { root_->Add(scroll); scroll->Add(new ItemHeader("System Information")); - scroll->Add(new InfoItem("System Name :", System_GetName())); - scroll->Add(new InfoItem("GPU Vendor :", (char *)glGetString(GL_VENDOR))); - scroll->Add(new InfoItem("GPU Model :", (char *)glGetString(GL_RENDERER))); - scroll->Add(new InfoItem("OpenGL Version Supported :", (char *)glGetString(GL_VERSION))); + scroll->Add(new InfoItem("System Name", System_GetName())); + scroll->Add(new InfoItem("GPU Vendor", (char *)glGetString(GL_VENDOR))); + scroll->Add(new InfoItem("GPU Model", (char *)glGetString(GL_RENDERER))); + scroll->Add(new InfoItem("OpenGL Version Supported", (char *)glGetString(GL_VERSION))); + scroll->Add(new Choice(g->T("Back")))->OnClick.Handle(this, &UIScreen::OnBack); #ifdef _WIN32 scroll->Add(new ItemHeader("OpenGL Extensions"));