Merge pull request #3516 from wuspring/master

Modify NewLanguageScreen class … For the title of language select dialoag in System->system language ("Language") can be translatable, Using [Developer]->"Language"
This commit is contained in:
Henrik Rydgård 2013-08-30 14:34:18 -07:00
commit b1ba172942
3 changed files with 4 additions and 3 deletions

View File

@ -498,7 +498,8 @@ UI::EventReturn GameSettingsScreen::OnFactoryReset(UI::EventParams &e) {
}
UI::EventReturn GameSettingsScreen::OnLanguage(UI::EventParams &e) {
screenManager()->push(new NewLanguageScreen());
I18NCategory *d = GetI18NCategory("Developer");
screenManager()->push(new NewLanguageScreen(d->T("Language")));
return UI::EVENT_DONE;
}

View File

@ -172,7 +172,7 @@ UI::EventReturn PromptScreen::OnNo(UI::EventParams &e) {
return UI::EVENT_DONE;
}
NewLanguageScreen::NewLanguageScreen() : ListPopupScreen("Language") {
NewLanguageScreen::NewLanguageScreen(const std::string &title) : ListPopupScreen(title) {
// Disable annoying encoding warning
#ifdef _MSC_VER
#pragma warning(disable:4566)

View File

@ -64,7 +64,7 @@ private:
class NewLanguageScreen : public ListPopupScreen {
public:
NewLanguageScreen();
NewLanguageScreen(const std::string &title);
private:
virtual void OnCompleted(DialogResult result);