mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
UI: Translate API on start screen.
Some languages translate the "Direct" in Direct3D, for example.
This commit is contained in:
parent
c76f2ba310
commit
753001bb91
1 changed files with 3 additions and 1 deletions
|
@ -480,6 +480,7 @@ void LogoScreen::render() {
|
|||
::DrawBackground(dc, alpha);
|
||||
|
||||
I18NCategory *cr = GetI18NCategory("PSPCredits");
|
||||
I18NCategory *gr = GetI18NCategory("Graphics");
|
||||
char temp[256];
|
||||
// Manually formatting UTF-8 is fun. \xXX doesn't work everywhere.
|
||||
snprintf(temp, sizeof(temp), "%s Henrik Rydg%c%crd", cr->T("created", "Created by"), 0xC3, 0xA5);
|
||||
|
@ -500,7 +501,8 @@ void LogoScreen::render() {
|
|||
|
||||
#if (defined(_WIN32) && !PPSSPP_PLATFORM(UWP)) || PPSSPP_PLATFORM(ANDROID)
|
||||
// Draw the graphics API, except on UWP where it's always D3D11
|
||||
dc.DrawText(screenManager()->getDrawContext()->GetInfoString(InfoField::APINAME).c_str(), bounds.centerX(), ppsspp_org_y + 50, textColor, ALIGN_CENTER);
|
||||
const char *apiName = gr->T(screenManager()->getDrawContext()->GetInfoString(InfoField::APINAME));
|
||||
dc.DrawText(apiName, bounds.centerX(), ppsspp_org_y + 50, textColor, ALIGN_CENTER);
|
||||
#endif
|
||||
|
||||
dc.End();
|
||||
|
|
Loading…
Add table
Reference in a new issue