Localization of encryption keys (#30172)
* Localization of encryption keys * Localization of encryption keys update
This commit is contained in:
@@ -239,14 +239,14 @@ public sealed partial class EncryptionKeySystem : EntitySystem
|
|||||||
{
|
{
|
||||||
var msg = Loc.GetString("examine-headset-default-channel",
|
var msg = Loc.GetString("examine-headset-default-channel",
|
||||||
("prefix", SharedChatSystem.DefaultChannelPrefix),
|
("prefix", SharedChatSystem.DefaultChannelPrefix),
|
||||||
("channel", defaultChannel),
|
("channel", proto.LocalizedName),
|
||||||
("color", proto.Color));
|
("color", proto.Color));
|
||||||
examineEvent.PushMarkup(msg);
|
examineEvent.PushMarkup(msg);
|
||||||
}
|
}
|
||||||
if (HasComp<EncryptionKeyComponent>(examineEvent.Examined))
|
if (HasComp<EncryptionKeyComponent>(examineEvent.Examined))
|
||||||
{
|
{
|
||||||
var msg = Loc.GetString("examine-encryption-default-channel",
|
var msg = Loc.GetString("examine-encryption-default-channel",
|
||||||
("channel", defaultChannel),
|
("channel", proto.LocalizedName),
|
||||||
("color", proto.Color));
|
("color", proto.Color));
|
||||||
examineEvent.PushMarkup(msg);
|
examineEvent.PushMarkup(msg);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ public sealed partial class RadioChannelPrototype : IPrototype
|
|||||||
/// Human-readable name for the channel.
|
/// Human-readable name for the channel.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("name")]
|
[DataField("name")]
|
||||||
public string Name { get; private set; } = string.Empty;
|
public LocId Name { get; private set; } = string.Empty;
|
||||||
|
|
||||||
[ViewVariables(VVAccess.ReadOnly)]
|
[ViewVariables(VVAccess.ReadOnly)]
|
||||||
public string LocalizedName => Loc.GetString(Name);
|
public string LocalizedName => Loc.GetString(Name);
|
||||||
|
|||||||
Reference in New Issue
Block a user