Skip to content

Commit

Permalink
add translations for KIWI_Playercard.as
Browse files Browse the repository at this point in the history
  • Loading branch information
TerminalHash committed Apr 26, 2024
1 parent 4ec2f30 commit d9acc8f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Rules/CommonScripts/KIWI_Playercard.as
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "Accolades"
#include "SocialStatus"
#include "HeadCommon.as"
#include "TranslationsSystem.as"

Vec2f playerCardDims(256, 198+26);

Expand Down Expand Up @@ -121,8 +122,8 @@ void makePlayerCard(CPlayer@ player, Vec2f pos)
int accolades_start = -accoladePaneTopLeft.x;
int accolades_y = accoladePaneTopLeft.y+2+16;
GUI::DrawShadowedText(getTranslatedString("Accolades"), topLeft+accoladePaneTopLeft+Vec2f(4,charnameDims.y/4), SColor(0xffffffff));
GUI::DrawShadowedText("Medals", topLeft+accoladePaneTopLeft+Vec2f(4,charnameDims.y/4+48), SColor(0xffffffff));
GUI::DrawShadowedText("Participation", topLeft+accoladePaneTopLeft+Vec2f(4,charnameDims.y/4+96), SColor(0xffffffff));
GUI::DrawShadowedText(Names::medalsn, topLeft+accoladePaneTopLeft+Vec2f(4,charnameDims.y/4+48), SColor(0xffffffff));
GUI::DrawShadowedText(Names::partipin, topLeft+accoladePaneTopLeft+Vec2f(4,charnameDims.y/4+96), SColor(0xffffffff));

//draw support tier
int tier = player.getSupportTier();
Expand Down
4 changes: 4 additions & 0 deletions Translations/TranslationsSystem.as
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ namespace Names
// Food.as
burgerinv = Translate(en::n_burgerinv+"\\"+ru::n_burgerinv),

// KIWI_Playercard.as
medalsn = Translate(en::n_medalsn+"\\"+ru::n_medalsn),
partipin = Translate(en::n_partipin+"\\"+ru::n_partipin),

// ScoreboardCommon.as
modsettingsbutton = Translate(en::n_modsettingsbutton+"\\"+ru::n_modsettingsbutton),

Expand Down
4 changes: 4 additions & 0 deletions Translations/language_en.as
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ namespace en
// Food.as
n_burgerinv = "Pear tart",

// KIWI_Playercard.as
n_medalsn = "Medals",
n_partipin = "Participation",

// ScoreboardCommon.as
n_modsettingsbutton = " Settings",

Expand Down
4 changes: 4 additions & 0 deletions Translations/language_ru.as
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,10 @@ namespace ru
// Food.as
n_burgerinv = "Пирожок с грушами",

// KIWI_Playercard.as
n_medalsn = "Медали",
n_partipin = "Участие",

// ScoreboardCommon.as
n_modsettingsbutton = "Настройки",

Expand Down

0 comments on commit d9acc8f

Please sign in to comment.