From 354e090e81428eb7d479d088014bb1f5711ee2a2 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Sun, 13 Jun 2021 07:47:54 +0300 Subject: [PATCH] base localization --- Localization/CHN/ScoreboardExt.CHN | Bin 0 -> 360 bytes Localization/CHT/ScoreboardExt.CHT | Bin 0 -> 360 bytes Localization/CZE/ScoreboardExt.CZE | Bin 0 -> 360 bytes Localization/DAN/ScoreboardExt.DAN | Bin 0 -> 360 bytes Localization/DEU/ScoreboardExt.DEU | Bin 0 -> 360 bytes Localization/DUT/ScoreboardExt.DUT | Bin 0 -> 360 bytes Localization/ESL/ScoreboardExt.ESL | Bin 0 -> 360 bytes Localization/ESN/ScoreboardExt.ESN | Bin 0 -> 360 bytes Localization/FRA/ScoreboardExt.FRA | Bin 0 -> 360 bytes Localization/FRC/ScoreboardExt.FRC | Bin 0 -> 360 bytes Localization/HUN/ScoreboardExt.HUN | Bin 0 -> 360 bytes Localization/INT/ScoreboardExt.INT | Bin 0 -> 360 bytes Localization/ITA/ScoreboardExt.ITA | Bin 0 -> 360 bytes Localization/JPN/ScoreboardExt.JPN | Bin 0 -> 360 bytes Localization/KOR/ScoreboardExt.KOR | Bin 0 -> 360 bytes Localization/POL/ScoreboardExt.POL | Bin 0 -> 360 bytes Localization/POR/ScoreboardExt.POR | Bin 0 -> 360 bytes Localization/PTB/ScoreboardExt.PTB | Bin 0 -> 360 bytes Localization/RUS/ScoreboardExt.RUS | Bin 0 -> 360 bytes Localization/TUR/ScoreboardExt.TUR | Bin 0 -> 360 bytes Localization/UKR/ScoreboardExt.UKR | Bin 0 -> 360 bytes ScoreboardExt/Build.uci | 4 +-- ScoreboardExt/Classes/KFScoreBoard.uc | 35 +++++++++++++++++--------- make.sh | 5 +++- 24 files changed, 29 insertions(+), 15 deletions(-) create mode 100644 Localization/CHN/ScoreboardExt.CHN create mode 100644 Localization/CHT/ScoreboardExt.CHT create mode 100644 Localization/CZE/ScoreboardExt.CZE create mode 100644 Localization/DAN/ScoreboardExt.DAN create mode 100644 Localization/DEU/ScoreboardExt.DEU create mode 100644 Localization/DUT/ScoreboardExt.DUT create mode 100644 Localization/ESL/ScoreboardExt.ESL create mode 100644 Localization/ESN/ScoreboardExt.ESN create mode 100644 Localization/FRA/ScoreboardExt.FRA create mode 100644 Localization/FRC/ScoreboardExt.FRC create mode 100644 Localization/HUN/ScoreboardExt.HUN create mode 100644 Localization/INT/ScoreboardExt.INT create mode 100644 Localization/ITA/ScoreboardExt.ITA create mode 100644 Localization/JPN/ScoreboardExt.JPN create mode 100644 Localization/KOR/ScoreboardExt.KOR create mode 100644 Localization/POL/ScoreboardExt.POL create mode 100644 Localization/POR/ScoreboardExt.POR create mode 100644 Localization/PTB/ScoreboardExt.PTB create mode 100644 Localization/RUS/ScoreboardExt.RUS create mode 100644 Localization/TUR/ScoreboardExt.TUR create mode 100644 Localization/UKR/ScoreboardExt.UKR diff --git a/Localization/CHN/ScoreboardExt.CHN b/Localization/CHN/ScoreboardExt.CHN new file mode 100644 index 0000000000000000000000000000000000000000..904bdb88996784973d5c7db5648167cfc15d49e8 GIT binary patch literal 360 zcmZut%L>9U5S+7LQTiVqTB;XIElE9yc&N1}rIs3y{=7Q7D_TVYNp@aL^0@D?!V(@0 zE*Q`vup@#x7n2vi15G37s8^p3g?CrxumP_TjJSVF6e zM@6o}Lb-yurM57i%+VVWcTVKMHL5$unlDMQRkx$F=8KH`OyZNIz)n+zVbKH?9U5S+7LQTiVqTB;XIElE9yc&N1}rIs3y{=7Q7D_TVYNp@aL^0@D?!V(@0 zE*Q`vup@#x7n2vi15G37s8^p3g?CrxumP_TjJSVF6e zM@6o}Lb-yurM57i%+VVWcTVKMHL5$unlDMQRkx$F=8KH`OyZNIz)n+zVbKH?9U5S+7LQTiVqTB;XIElE9yc&N1}rIs3y{=7Q7D_TVYNp@aL^0@D?!V(@0 zE*Q`vup@#x7n2vi15G37s8^p3g?CrxumP_TjJSVF6e zM@6o}Lb-yurM57i%+VVWcTVKMHL5$unlDMQR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H`OyZNIz)n+zVbKH?9U5S+7LQTiVqTB;XIElE9yc&N1}rIs3y{=7Q7D_TVYNp@aL^0@D?!V(@0 zE*Q`vup@#x7n2vi15G37s8^p3g?CrxumP_TjJSVF6e zM@6o}Lb-yurM57i%+VVWcTVKMHL5$unlDMQRkx$F=8KH`OyZNIz)n+zVbKH?9U5S+7LQTiVqTB;XIElE9yc&N1}rIs3y{=7Q7D_TVYNp@aL^0@D?!V(@0 zE*Q`vup@#x7n2vi15G37s8^p3g?CrxumP_TjJSVF6e zM@6o}Lb-yurM57i%+VVWcTVKMHL5$unlDMQRkx$F=8KH`OyZNIz)n+zVbKH?9U5S+7LQTiVqTB;XIElE9yc&N1}rIs3y{=7Q7D_TVYNp@aL^0@D?!V(@0 zE*Q`vup@#x7n2vi15G37s8^p3g?CrxumP_TjJSVF6e zM@6o}Lb-yurM57i%+VVWcTVKMHL5$unlDMQRkx$F=8KH`OyZNIz)n+zVbKH?9U5S+7LQTiVqTB;XIElE9yc&N1}rIs3y{=7Q7D_TVYNp@aL^0@D?!V(@0 zE*Q`vup@#x7n2vi15G37s8^p3g?CrxumP_TjJSVF6e zM@6o}Lb-yurM57i%+VVWcTVKMHL5$unlDMQRkx$F=8KH`OyZNIz)n+zVbKH?9U5S+7LQTiVqTB;XIElE9yc&N1}rIs3y{=7Q7D_TVYNp@aL^0@D?!V(@0 zE*Q`vup@#x7n2vi15G37s8^p3g?CrxumP_TjJSVF6e zM@6o}Lb-yurM57i%+VVWcTVKMHL5$unlDMQRkx$F=8KH`OyZNIz)n+zVbKH? RankRelations; var SCESettings Settings; +// Localization +var localized string Players; +var localized string Spectators; +var localized string Rank; +var localized string State; +var localized string NoPerk; +var localized string Ready; +var localized string NotReady; +var localized string Unknown; +var localized string Dead; + function InitMenu() { Super.InitMenu(); @@ -219,7 +230,7 @@ function DrawMenu() Owner.CurrentStyle.DrawRectBox(BoxX, YPos, BoxW, BoxH, Edge, 4); SetDrawColor(Canvas, Settings.Style.PlayerCountTextColor); - S = "Players: " $ NumPlayer $ " / " $ KFGRI.MaxHumanCount $ " " $ "Spectators: " $ NumSpec; + S = Players$": " $ NumPlayer $ " / " $ KFGRI.MaxHumanCount $ " " $ Spectators $ ": " $ NumSpec; Canvas.TextSize(S, XL, YL, FontScalar, FontScalar); DrawTextShadowHLeftVCenter(S, BoxX + Edge, YPos, FontScalar); @@ -269,13 +280,13 @@ function DrawMenu() // Header texts SetDrawColor(Canvas, Settings.Style.ListHeaderTextColor); - DrawTextShadowHLeftVCenter("RANK", XPos + RankXPos, YPos, FontScalar); + DrawTextShadowHLeftVCenter(Rank, XPos + RankXPos, YPos, FontScalar); DrawTextShadowHLeftVCenter(class'KFGFxHUD_ScoreboardWidget'.default.PlayerString, XPos + PlayerXPos, YPos, FontScalar); DrawTextShadowHLeftVCenter(class'KFGFxMenu_Inventory'.default.PerkFilterString, XPos + PerkXPos, YPos, FontScalar); DrawTextShadowHVCenter(class'KFGFxHUD_ScoreboardWidget'.default.KillsString, XPos + KillsXPos, YPos, KillsWBox, FontScalar); DrawTextShadowHVCenter(class'KFGFxHUD_ScoreboardWidget'.default.AssistsString, XPos + AssistXPos, YPos, AssistWBox, FontScalar); DrawTextShadowHVCenter(class'KFGFxHUD_ScoreboardWidget'.default.DoshString, XPos + CashXPos, YPos, CashWBox, FontScalar); - DrawTextShadowHVCenter("STATE", XPos + HealthXPos, YPos, HealthWBox, FontScalar); + DrawTextShadowHVCenter(State, XPos + HealthXPos, YPos, HealthWBox, FontScalar); DrawTextShadowHVCenter(class'KFGFxHUD_ScoreboardWidget'.default.PingString, XPos + PingXPos, YPos, PingWBox, FontScalar); PlayersList.XPosition = ((Canvas.ClipX - Width) * 0.5) / InputPos[2]; @@ -453,7 +464,7 @@ function DrawPlayerEntry(Canvas C, int Index, float YOffset, float Height, float C.SetPos (PerkXPos, YOffset - ((Height-5) * 0.5f)); C.DrawRect (Height-5, Height-5, Texture2D'UI_Widgets.MenuBarWidget_SWF_IF'); - S = "ZED"; + S = class'KFCommon_LocalizedStrings'.default.ZedString; DrawTextShadowHLeftVCenter(S, PerkXPos + Height, TextYOffset, FontScalar); } else @@ -516,7 +527,7 @@ function DrawPlayerEntry(Canvas C, int Index, float YOffset, float Height, float SetDrawColor(C, CurrentRank.TextColor); else SetDrawColor(C, Settings.Style.PerkTextColor); - S = "No Perk"; + S = NoPerk; DrawTextShadowHLeftVCenter(S, PerkXPos, TextYOffset, FontScalar); } } @@ -561,7 +572,7 @@ function DrawPlayerEntry(Canvas C, int Index, float YOffset, float Height, float if (bIsZED) { SetDrawColor(C, Settings.Style.ZedTextColor); - StrValue = "Brains!"; + StrValue = "-"; } else { @@ -577,37 +588,37 @@ function DrawPlayerEntry(Canvas C, int Index, float YOffset, float Height, float if (!KFPRI.bReadyToPlay && KFGRI.bMatchHasBegun) { SetDrawColor(C, Settings.Style.StateTextColorLobby); - S = "LOBBY"; + S = class'KFGFxMenu_ServerBrowser'.default.InLobbyString;; } else if (!KFGRI.bMatchHasBegun) { if (KFPRI.bReadyToPlay) { SetDrawColor(C, Settings.Style.StateTextColorReady); - S = "Ready"; + S = Ready; } else { SetDrawColor(C, Settings.Style.StateTextColorNotReady); - S = "Not Ready"; + S = NotReady; } } else if (bIsZED && KFTeamInfo_Zeds(GetPlayer().PlayerReplicationInfo.Team) == None) { SetDrawColor(C, Settings.Style.StateTextColor); - S = "Unknown"; + S = Unknown; } else if (KFPRI.PlayerHealth <= 0 || KFPRI.PlayerHealthPercent <= 0) { if (KFPRI.bOnlySpectator) { SetDrawColor(C, Settings.Style.StateTextColorSpectator); - S = "Spectator"; + S = class'KFCommon_LocalizedStrings'.default.SpectatorString; } else { SetDrawColor(C, Settings.Style.StateTextColorDead); - S = "DEAD"; + S = Dead; } } else diff --git a/make.sh b/make.sh index a245a3b..9eb0346 100644 --- a/make.sh +++ b/make.sh @@ -92,7 +92,10 @@ function compile () rm -rf "$MutUnpublish" mkdir -p \ "$MutUnpublish" \ - "$MutStructScript" + "$MutStructScript" \ + "$MutStructLocalization" + + cp -rf "$MutSource/Localization"/* "$MutStructLocalization" CMD //C "$(unixpath2win "$KFEditor")" make -useunpublished & local PID="$!"