diff --git a/UI/GameScreen.cpp b/UI/GameScreen.cpp index d99051590..882c4f564 100644 --- a/UI/GameScreen.cpp +++ b/UI/GameScreen.cpp @@ -140,10 +140,12 @@ UI::EventReturn GameScreen::OnGameSettings(UI::EventParams &e) { } UI::EventReturn GameScreen::OnDeleteSaveData(UI::EventParams &e) { + I18NCategory *d = GetI18NCategory("Dialog"); + I18NCategory *g = GetI18NCategory("General"); GameInfo *info = g_gameInfoCache.GetInfo(gamePath_, true); if (info) { screenManager()->push( - new PromptScreen("Do you really want to delete all\nyour save data for this game?", "Delete Savedata", "Cancel", + new PromptScreen(d->T("DeleteConfirmAll", "Do you really want to delete all\nyour save data for this game?"), g->T("Delete Savedata"), g->T("Cancel"), std::bind(&GameScreen::CallbackDeleteSaveData, this, placeholder::_1))); } @@ -159,10 +161,12 @@ void GameScreen::CallbackDeleteSaveData(bool yes) { } UI::EventReturn GameScreen::OnDeleteGame(UI::EventParams &e) { + I18NCategory *d = GetI18NCategory("Dialog"); + I18NCategory *g = GetI18NCategory("General"); GameInfo *info = g_gameInfoCache.GetInfo(gamePath_, true); if (info) { screenManager()->push( - new PromptScreen("Do you really want to delete all\nthis game entirely? You can't undo this.", "Delete Game", "Cancel", + new PromptScreen(d->T("DeleteGame", "Do you really want to delete all\nthis game entirely? You can't undo this."), g->T("Delete Game"), g->T("Cancel"), std::bind(&GameScreen::CallbackDeleteGame, this, placeholder::_1))); } diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index 9233bba81..ee381cbcb 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -337,7 +337,7 @@ void GlobalSettingsScreen::CreateViews() { I18NCategory *gs = GetI18NCategory("Graphics"); LinearLayout *list = root_->Add(new LinearLayout(ORIENT_VERTICAL, new LinearLayoutParams(1.0f))); - list->Add(new ItemHeader("General")); + list->Add(new ItemHeader(g->T("General"))); list->Add(new CheckBox(&g_Config.bNewUI, gs->T("Enable New UI"))); list->Add(new CheckBox(&enableReports_, gs->T("Enable Compatibility Server Reports"))); list->Add(new CheckBox(&g_Config.bEnableCheats, gs->T("Enable Cheats")));