]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Localization of encryption keys (#30172)
authorchavonadelal <156101927+chavonadelal@users.noreply.github.com>
Sat, 20 Jul 2024 16:14:41 +0000 (19:14 +0300)
committerGitHub <noreply@github.com>
Sat, 20 Jul 2024 16:14:41 +0000 (19:14 +0300)
* Localization of encryption keys

* Localization of encryption keys update

Content.Shared/Radio/EntitySystems/EncryptionKeySystem.cs
Content.Shared/Radio/RadioChannelPrototype.cs

index cfa553661a394f1418737a72e63226faa53ba6a7..7b050273db611d0aa3bce3cf8f19b4ce796553e5 100644 (file)
@@ -239,14 +239,14 @@ public sealed partial class EncryptionKeySystem : EntitySystem
             {
                 var msg = Loc.GetString("examine-headset-default-channel",
                 ("prefix", SharedChatSystem.DefaultChannelPrefix),
-                ("channel", defaultChannel),
+                ("channel", proto.LocalizedName),
                 ("color", proto.Color));
                 examineEvent.PushMarkup(msg);
             }
             if (HasComp<EncryptionKeyComponent>(examineEvent.Examined))
             {
                 var msg = Loc.GetString("examine-encryption-default-channel",
-                ("channel", defaultChannel),
+                ("channel", proto.LocalizedName),
                 ("color", proto.Color));
                 examineEvent.PushMarkup(msg);
             }
index cc65f885375cd19627c85b6bdc7024996ef3390e..166db0577eac954f01456fa1dbb9fca0ecfb7cb5 100644 (file)
@@ -9,7 +9,7 @@ public sealed partial class RadioChannelPrototype : IPrototype
     /// Human-readable name for the channel.
     /// </summary>
     [DataField("name")]
-    public string Name { get; private set; } = string.Empty;
+    public LocId Name { get; private set; } = string.Empty;
 
     [ViewVariables(VVAccess.ReadOnly)]
     public string LocalizedName => Loc.GetString(Name);