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:
wuspring 2013-08-31 05:26:59 +08:00
parent 3a495637e0
commit 3858044f99
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);