From 69684994beb793a12bf4e6e20d6096a76e5a3e7e Mon Sep 17 00:00:00 2001 From: TerryCavanagh Date: Fri, 2 Feb 2024 18:24:49 +0100 Subject: [PATCH] added translation category support to ending credits also --- desktop_version/lang/pt_BR/meta.xml | 2 +- desktop_version/src/Render.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/desktop_version/lang/pt_BR/meta.xml b/desktop_version/lang/pt_BR/meta.xml index bb1fe5b3..72877901 100644 --- a/desktop_version/lang/pt_BR/meta.xml +++ b/desktop_version/lang/pt_BR/meta.xml @@ -6,7 +6,7 @@ português (br) - Versão brasileira por|Lucas Araujo e Thiago Araujo + Lucas Araujo e Thiago Araujo|Ivan Lopes e Lucas Nunes Pressione Espaço, Z ou V para selecionar diff --git a/desktop_version/src/Render.cpp b/desktop_version/src/Render.cpp index 2b3648a7..41191eab 100644 --- a/desktop_version/src/Render.cpp +++ b/desktop_version/src/Render.cpp @@ -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);