Localize radio channel names (#9256)

* Add localized channel names

* Full names
This commit is contained in:
Morber
2022-06-29 06:27:19 +03:00
committed by GitHub
parent 75a7d8e794
commit c3a164b906
6 changed files with 26 additions and 13 deletions

View File

@@ -44,7 +44,7 @@ namespace Content.Server.Ghost.Components
Channel = ChatChannel.Radio,
Message = message,
//Square brackets are added here to avoid issues with escaping
MessageWrap = Loc.GetString("chat-radio-message-wrap", ("color", channel.Color), ("channel", $"\\[{channel.Name}\\]"), ("name", _entMan.GetComponent<MetaDataComponent>(speaker).EntityName))
MessageWrap = Loc.GetString("chat-radio-message-wrap", ("color", channel.Color), ("channel", $"\\[{channel.LocalizedName}\\]"), ("name", _entMan.GetComponent<MetaDataComponent>(speaker).EntityName))
};
_netManager.ServerSendMessage(msg, playerChannel);