mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 09:39:43 +01:00
added translation category support to ending credits also
This commit is contained in:
parent
5f9e326b67
commit
69684994be
2 changed files with 7 additions and 2 deletions
|
@ -6,7 +6,7 @@
|
|||
<nativename>português (br)</nativename>
|
||||
|
||||
<!-- English translation by X -->
|
||||
<credit>Versão brasileira por|Lucas Araujo e Thiago Araujo</credit>
|
||||
<credit>Lucas Araujo e Thiago Araujo|Ivan Lopes e Lucas Nunes</credit>
|
||||
|
||||
<!-- On the language screen, hard limit 40 8x8 characters. Space/Z/V sets this as the language -->
|
||||
<action_hint>Pressione Espaço, Z ou V para selecionar</action_hint>
|
||||
|
|
|
@ -2052,7 +2052,12 @@ void gamecompleterender(void)
|
|||
{
|
||||
if (graphics.onscreen(creditOffset + position))
|
||||
{
|
||||
if (Credits::translators[i][0] != ' ')
|
||||
if (Credits::translators[i][0] == '>')
|
||||
{
|
||||
// Category heading, remove the > character and translate the rest
|
||||
font::print(0, 76, creditOffset + position, loc::gettext(&Credits::translators[i][1]), tr, tg, tb);
|
||||
}
|
||||
else if (Credits::translators[i][0] != ' ')
|
||||
{
|
||||
// Not prefixed with a space, so this line is the name of a language, display its localised string
|
||||
font::print(0, 60, creditOffset + position, loc::gettext(Credits::translators[i]), tr, tg, tb);
|
||||
|
|
Loading…
Reference in a new issue