mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
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:
parent
3a495637e0
commit
3858044f99
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
@ -64,7 +64,7 @@ private:
|
||||
|
||||
class NewLanguageScreen : public ListPopupScreen {
|
||||
public:
|
||||
NewLanguageScreen();
|
||||
NewLanguageScreen(const std::string &title);
|
||||
|
||||
private:
|
||||
virtual void OnCompleted(DialogResult result);
|
||||
|
Loading…
Reference in New Issue
Block a user