From 9423bf85374787697133a69b0a8039771ee177f5 Mon Sep 17 00:00:00 2001 From: Juliano do Amaral Chaves Date: Sat, 29 Jun 2013 18:21:23 -0300 Subject: [PATCH] Creates location for the credits --- UI/MenuScreens.cpp | 162 +++++++++++++++++++++++---------------------- 1 file changed, 84 insertions(+), 78 deletions(-) diff --git a/UI/MenuScreens.cpp b/UI/MenuScreens.cpp index 45b1e3a8fc..5751964ff7 100644 --- a/UI/MenuScreens.cpp +++ b/UI/MenuScreens.cpp @@ -1502,86 +1502,92 @@ void CreditsScreen::update(InputState &input_state) { frames_++; } -static const char * credits[] = { - "PPSSPP", - "", - "", - "A fast and portable PSP emulator", - "", - "Created by Henrik Rydgård", - "(aka hrydgard, ector)" - "", - "", - "Contributors:", - "unknownbrackets", - "oioitff", - "xsacha", - "raven02", - "tpunix", - "orphis", - "sum2012", - "mikusp", - "aquanull", - "The Dax", - "tmaul", - "artart78", - "ced2911", - "soywiz", - "kovensky", - "xele", - "chaserhjk", - "evilcorn", - "daniel dressler", - "makotech222", - "CPkmn", - "mgaver", - "jeid3", - "cinaera/BeaR", - "jtraynham", - "Kingcom", - "aquanull", - "arnastia", - "lioncash", - "Written in C++ for speed and portability", - "", - "", - "Free tools used:", -#ifdef ANDROID - "Android SDK + NDK", -#elif defined(BLACKBERRY) - "Blackberry NDK", -#endif -#if defined(USING_QT_UI) - "Qt", -#else - "SDL", -#endif - "CMake", - "freetype2", - "zlib", - "PSP SDK", - "", - "", - "Check out the website:", - "www.ppsspp.org", - "compatibility lists, forums, and development info", - "", - "", - "Also check out Dolphin, the best Wii/GC emu around:", - "http://www.dolphin-emu.org", - "", - "", - "PPSSPP is intended for educational purposes only.", - "", - "Please make sure that you own the rights to any games", - "you play by owning the UMD or by buying the digital", - "download from the PSN store on your real PSP.", - "", - "", - "PSP is a trademark by Sony, Inc.", -}; void CreditsScreen::render() { + + I18NCategory *c = GetI18NCategory("PSPCredits"); + + const char * credits[] = { + "PPSSPP", + "", + "", + c->T("title", "A fast and portable PSP emulator"), + "", + c->T("created", "Created by"), + "Henrik Rydgård", + "(aka hrydgard, ector)", + "", + "", + c->T("contributors", "Contributors:"), + "unknownbrackets", + "oioitff", + "xsacha", + "raven02", + "tpunix", + "orphis", + "sum2012", + "mikusp", + "aquanull", + "The Dax", + "tmaul", + "artart78", + "ced2911", + "soywiz", + "kovensky", + "xele", + "chaserhjk", + "evilcorn", + "daniel dressler", + "makotech222", + "CPkmn", + "mgaver", + "jeid3", + "cinaera/BeaR", + "jtraynham", + "Kingcom", + "aquanull", + "arnastia", + "lioncash", + "", + c->T("written", "Written in C++ for speed and portability"), + "", + "", + c->T("tools", "Free tools used:"), + #ifdef ANDROID + "Android SDK + NDK", + #elif defined(BLACKBERRY) + "Blackberry NDK", + #endif + #if defined(USING_QT_UI) + "Qt", + #else + "SDL", + #endif + "CMake", + "freetype2", + "zlib", + "PSP SDK", + "", + "", + c->T("website", "Check out the website:"), + "www.ppsspp.org", + c->T("list", "compatibility lists, forums, and development info"), + "", + "", + c->T("check", "Also check out Dolphin, the best Wii/GC emu around:"), + "http://www.dolphin-emu.org", + "", + "", + c->T("info1", "PPSSPP is intended for educational purposes only."), + "", + c->T("info2", "Please make sure that you own the rights to any games"), + c->T("info3", "you play by owning the UMD or by buying the digital"), + c->T("info4", "download from the PSN store on your real PSP."), + "", + "", + c->T("info5", "PSP is a trademark by Sony, Inc."), + }; + // TODO: This is kinda ugly, done on every frame... char temp[256]; sprintf(temp, "PPSSPP %s", PPSSPP_GIT_VERSION);