]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix false and true in player-panel.ftl (#31043)
authorIgorAnt028 <118114530+IgorAnt028@users.noreply.github.com>
Thu, 15 Aug 2024 15:00:56 +0000 (18:00 +0300)
committerGitHub <noreply@github.com>
Thu, 15 Aug 2024 15:00:56 +0000 (18:00 +0300)
Fix false and true in player-panel

Add a new True string

Content.Client/Administration/UI/PlayerPanel/PlayerPanel.xaml.cs
Resources/Locale/en-US/administration/ui/player-panel.ftl

index f20e47b6a1adc2b432adc702a8cb36abf371991b..53cc8faa10c7cd2bcc2357183a666d0e3c15a8f0 100644 (file)
@@ -70,7 +70,7 @@ public sealed partial class PlayerPanel : FancyWindow
         else
         {
             Whitelisted.Text = Loc.GetString("player-panel-whitelisted");
-            WhitelistToggle.Text = whitelisted.Value.ToString();
+            WhitelistToggle.Text = whitelisted.Value ? Loc.GetString("player-panel-true") : Loc.GetString("player-panel-false");
             WhitelistToggle.Visible = true;
             _isWhitelisted = whitelisted.Value;
         }
index ed63dd6d10f2126f2a3a797c1e0d44cc87e3a00d..cfb014948d55b202c717dd7c53076ab32e71aafc 100644 (file)
@@ -20,3 +20,4 @@ player-panel-logs = Logs
 player-panel-delete = Delete
 player-panel-rejuvenate = Rejuvenate
 player-panel-false = False
+player-panel-true = True