mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-11-04 18:29:41 +01:00
Render.cpp: make remaining strings translatable
This mainly adds loc::gettext calls. This commit is part of rewritten history of the localization branch. The original (unsquashed) commit history can be found here: https://github.com/Dav999-v/VVVVVV/tree/localization-orig
This commit is contained in:
parent
949f0fa2e2
commit
3203f99938
1 changed files with 6 additions and 6 deletions
|
@ -58,7 +58,7 @@ static inline void drawslowdowntext(const int y)
|
||||||
|
|
||||||
static void volumesliderrender(void)
|
static void volumesliderrender(void)
|
||||||
{
|
{
|
||||||
char buffer[40 + 1];
|
char buffer[SCREEN_WIDTH_CHARS + 1];
|
||||||
|
|
||||||
char slider[20 + 1];
|
char slider[20 + 1];
|
||||||
int slider_length;
|
int slider_length;
|
||||||
|
@ -106,10 +106,10 @@ static void volumesliderrender(void)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Draw selection brackets. */
|
/* Draw selection brackets. */
|
||||||
SDL_snprintf(buffer, sizeof(buffer), "[ %s ]", slider);
|
vformat_buf(buffer, sizeof(buffer), loc::get_langmeta()->menu_select.c_str(), "label:str", slider);
|
||||||
}
|
}
|
||||||
|
|
||||||
graphics.Print(-1, 85, buffer, tr, tg, tb, true);
|
graphics.Print(-1, 95, buffer, tr, tg, tb, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void inline drawglitchrunnertext(const int y)
|
static void inline drawglitchrunnertext(const int y)
|
||||||
|
@ -2877,7 +2877,7 @@ void teleporterrender(void)
|
||||||
);
|
);
|
||||||
|
|
||||||
//Instructions!
|
//Instructions!
|
||||||
graphics.Print(5, 210, "Press Left/Right to choose a Teleporter", 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), true);
|
graphics.Print(5, 210, loc::gettext("Press Left/Right to choose a Teleporter"), 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), true);
|
||||||
graphics.Print(5, 225, final_string, 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), true);
|
graphics.Print(5, 225, final_string, 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2885,11 +2885,11 @@ void teleporterrender(void)
|
||||||
|
|
||||||
if (graphics.flipmode)
|
if (graphics.flipmode)
|
||||||
{
|
{
|
||||||
if (game.advancetext) graphics.bprint(5, 228, "- Press ACTION to advance text -", 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), true);
|
if (game.advancetext) graphics.bprint(5, 228, loc::gettext("- Press ACTION to advance text -"), 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (game.advancetext) graphics.bprint(5, 5, "- Press ACTION to advance text -", 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), true);
|
if (game.advancetext) graphics.bprint(5, 5, loc::gettext("- Press ACTION to advance text -"), 220 - (help.glow), 220 - (help.glow), 255 - (help.glow / 2), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue