diff --git a/Localization/CHN/ScoreboardExt.CHN b/Localization/CHN/ScoreboardExt.CHN new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/CHN/ScoreboardExt.CHN differ diff --git a/Localization/CHT/ScoreboardExt.CHT b/Localization/CHT/ScoreboardExt.CHT new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/CHT/ScoreboardExt.CHT differ diff --git a/Localization/CZE/ScoreboardExt.CZE b/Localization/CZE/ScoreboardExt.CZE new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/CZE/ScoreboardExt.CZE differ diff --git a/Localization/DAN/ScoreboardExt.DAN b/Localization/DAN/ScoreboardExt.DAN new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/DAN/ScoreboardExt.DAN differ diff --git a/Localization/DEU/ScoreboardExt.DEU b/Localization/DEU/ScoreboardExt.DEU new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/DEU/ScoreboardExt.DEU differ diff --git a/Localization/DUT/ScoreboardExt.DUT b/Localization/DUT/ScoreboardExt.DUT new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/DUT/ScoreboardExt.DUT differ diff --git a/Localization/ESL/ScoreboardExt.ESL b/Localization/ESL/ScoreboardExt.ESL new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/ESL/ScoreboardExt.ESL differ diff --git a/Localization/ESN/ScoreboardExt.ESN b/Localization/ESN/ScoreboardExt.ESN new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/ESN/ScoreboardExt.ESN differ diff --git a/Localization/FRA/ScoreboardExt.FRA b/Localization/FRA/ScoreboardExt.FRA new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/FRA/ScoreboardExt.FRA differ diff --git a/Localization/FRC/ScoreboardExt.FRC b/Localization/FRC/ScoreboardExt.FRC new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/FRC/ScoreboardExt.FRC differ diff --git a/Localization/HUN/ScoreboardExt.HUN b/Localization/HUN/ScoreboardExt.HUN new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/HUN/ScoreboardExt.HUN differ diff --git a/Localization/INT/ScoreboardExt.INT b/Localization/INT/ScoreboardExt.INT new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/INT/ScoreboardExt.INT differ diff --git a/Localization/ITA/ScoreboardExt.ITA b/Localization/ITA/ScoreboardExt.ITA new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/ITA/ScoreboardExt.ITA differ diff --git a/Localization/JPN/ScoreboardExt.JPN b/Localization/JPN/ScoreboardExt.JPN new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/JPN/ScoreboardExt.JPN differ diff --git a/Localization/KOR/ScoreboardExt.KOR b/Localization/KOR/ScoreboardExt.KOR new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/KOR/ScoreboardExt.KOR differ diff --git a/Localization/POL/ScoreboardExt.POL b/Localization/POL/ScoreboardExt.POL new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/POL/ScoreboardExt.POL differ diff --git a/Localization/POR/ScoreboardExt.POR b/Localization/POR/ScoreboardExt.POR new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/POR/ScoreboardExt.POR differ diff --git a/Localization/PTB/ScoreboardExt.PTB b/Localization/PTB/ScoreboardExt.PTB new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/PTB/ScoreboardExt.PTB differ diff --git a/Localization/RUS/ScoreboardExt.RUS b/Localization/RUS/ScoreboardExt.RUS new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/RUS/ScoreboardExt.RUS differ diff --git a/Localization/TUR/ScoreboardExt.TUR b/Localization/TUR/ScoreboardExt.TUR new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/TUR/ScoreboardExt.TUR differ diff --git a/Localization/UKR/ScoreboardExt.UKR b/Localization/UKR/ScoreboardExt.UKR new file mode 100644 index 0000000..904bdb8 Binary files /dev/null and b/Localization/UKR/ScoreboardExt.UKR differ diff --git a/ScoreboardExt/Build.uci b/ScoreboardExt/Build.uci index 5e0bb32..1d385b7 100644 --- a/ScoreboardExt/Build.uci +++ b/ScoreboardExt/Build.uci @@ -1,2 +1,2 @@ -`define bEnableCallstack true -`define bEnableDebug true \ No newline at end of file +`define bEnableCallstack false +`define bEnableDebug false \ No newline at end of file diff --git a/ScoreboardExt/Classes/KFScoreBoard.uc b/ScoreboardExt/Classes/KFScoreBoard.uc index e003287..50ba5cf 100644 --- a/ScoreboardExt/Classes/KFScoreBoard.uc +++ b/ScoreboardExt/Classes/KFScoreBoard.uc @@ -26,6 +26,17 @@ var array 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="$!"