From ba7536d5cef904781e27822fe861b2f6e634c25f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 29 Nov 2013 11:36:47 +0100 Subject: [PATCH] Allow translations of post processing shaders (new section PostShaders). Minor tweaks. --- UI/GameSettingsScreen.cpp | 7 ++++--- UI/MainScreen.cpp | 2 +- UI/MiscScreens.cpp | 3 ++- UI/NativeApp.cpp | 1 + lang | 2 +- native | 2 +- 6 files changed, 10 insertions(+), 7 deletions(-) diff --git a/UI/GameSettingsScreen.cpp b/UI/GameSettingsScreen.cpp index 9d57987d0e..c1805b67ef 100644 --- a/UI/GameSettingsScreen.cpp +++ b/UI/GameSettingsScreen.cpp @@ -183,11 +183,12 @@ void GameSettingsScreen::CreateViews() { prescale->SetEnabled(false); graphicsSettings->Add(new ItemHeader(gs->T("Overlay Information"))); - static const char *fpsChoices[] = {"None", "Speed", "FPS", "Both" + static const char *fpsChoices[] = { + "None", "Speed", "FPS", "Both" #ifdef BLACKBERRY - , "Statistics" + , "Statistics" #endif - }; + }; graphicsSettings->Add(new PopupMultiChoice(&g_Config.iShowFPSCounter, gs->T("Show FPS Counter"), fpsChoices, 0, ARRAY_SIZE(fpsChoices), gs, screenManager())); graphicsSettings->Add(new CheckBox(&showDebugStats_, gs->T("Show Debug Statistics"))); diff --git a/UI/MainScreen.cpp b/UI/MainScreen.cpp index b90d0a66d9..f413c9f6b3 100644 --- a/UI/MainScreen.cpp +++ b/UI/MainScreen.cpp @@ -445,7 +445,7 @@ void MainScreen::CreateViews() { m->T("How to get games"), "http://www.ppsspp.org/getgames.html", new LinearLayoutParams(FILL_PARENT, FILL_PARENT)); GameBrowser *tabHomebrew = new GameBrowser(GetSysDirectory(DIRECTORY_GAME), false, &g_Config.bGridView3, - m->T("How to get homebrew & demos"), "http://www.ppsspp.org/gethomebrew.html", + m->T("How to get homebrew & demos", "How to get homebrew && demos"), "http://www.ppsspp.org/gethomebrew.html", new LinearLayoutParams(FILL_PARENT, FILL_PARENT)); diff --git a/UI/MiscScreens.cpp b/UI/MiscScreens.cpp index 050800659f..69ed22f173 100644 --- a/UI/MiscScreens.cpp +++ b/UI/MiscScreens.cpp @@ -192,13 +192,14 @@ UI::EventReturn PromptScreen::OnNo(UI::EventParams &e) { } PostProcScreen::PostProcScreen(const std::string &title) : ListPopupScreen(title) { + I18NCategory *ps = GetI18NCategory("PostShaders"); shaders_ = GetAllPostShaderInfo(); std::vector items; int selected = -1; for (int i = 0; i < (int)shaders_.size(); i++) { if (shaders_[i].section == g_Config.sPostShaderName) selected = i; - items.push_back(shaders_[i].name); + items.push_back(ps->T(shaders_[i].name.c_str())); } adaptor_ = UI::StringVectorListAdaptor(items, selected); } diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index f1b31ee9c5..ed9a615047 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -245,6 +245,7 @@ void NativeInit(int argc, const char *argv[], // It's common to be in a build-xyz/ directory. else VFSRegister("", new DirectoryAssetReader((File::GetExeDirectory() + "../assets/").c_str())); + VFSRegister("", new DirectoryAssetReader((File::GetExeDirectory()).c_str())); #endif // We want this to be FIRST. diff --git a/lang b/lang index 2c2a88d0ef..056b48b356 160000 --- a/lang +++ b/lang @@ -1 +1 @@ -Subproject commit 2c2a88d0ef2a9d71b073248cd7a6a57355cfe1b3 +Subproject commit 056b48b3568ba3d6cddcde04830dec84a9fdeaea diff --git a/native b/native index 26eaba2157..0e34574bd7 160000 --- a/native +++ b/native @@ -1 +1 @@ -Subproject commit 26eaba2157a44338e6c085065ca0471b2b4dea7d +Subproject commit 0e34574bd7de9fb21b4d403c28a515964909e4c1