From 19d25b00a392220a530637775ebf5cba40c7ec6b Mon Sep 17 00:00:00 2001 From: SashaTheRed Date: Fri, 29 Dec 2017 14:55:19 +0200 Subject: [PATCH] Localized 'Press Space...' in player setup menu https://forum.zdoom.org/viewtopic.php?t=58881 --- wadsrc/static/language.enu | 3 +++ wadsrc/static/zscript/menu/playermenu.txt | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/wadsrc/static/language.enu b/wadsrc/static/language.enu index 8b40c52da1..1cb2460478 100644 --- a/wadsrc/static/language.enu +++ b/wadsrc/static/language.enu @@ -1795,6 +1795,9 @@ PLYRMNU_PLAYERGENDER = "Gender"; PLYRMNU_AUTOAIM = "Autoaim"; PLYRMNU_SWITCHONPICKUP = "Switch on pickup"; PLYRMNU_ALWAYSRUN = "Always Run"; +PLYRMNU_PRESSSPACE = "PRESS \cjSPACE"; +PLYRMNU_SEEFRONT = "TO SEE FRONT"; +PLYRMNU_SEEBACK = "TO SEE BACK"; // Display Options DSPLYMNU_TITLE = "DISPLAY OPTIONS"; diff --git a/wadsrc/static/zscript/menu/playermenu.txt b/wadsrc/static/zscript/menu/playermenu.txt index dac376ee90..09d05b0c2c 100644 --- a/wadsrc/static/zscript/menu/playermenu.txt +++ b/wadsrc/static/zscript/menu/playermenu.txt @@ -585,11 +585,11 @@ class PlayerMenu : ListMenu override void Drawer () { Super.Drawer(); - String str = "PRESS " .. TEXTCOLOR_WHITE .. "SPACE"; + String str = Stringtable.Localize("$PLYRMNU_PRESSSPACE"); screen.DrawText (SmallFont, Font.CR_GOLD, 320 - 32 - 32 - SmallFont.StringWidth (str)/2, 50 + 48 + 70, str, DTA_Clean, true); - str = mRotation ? "TO SEE FRONT" : "TO SEE BACK"; + str = Stringtable.Localize(mRotation ? "$PLYRMNU_SEEFRONT" : "$PLYRMNU_SEEBACK"); screen.DrawText (SmallFont, Font.CR_GOLD, 320 - 32 - 32 - SmallFont.StringWidth (str)/2, 50 + 48 + 70 + SmallFont.GetHeight (), str, DTA_Clean, true); } -} \ No newline at end of file +}