From aa207557a8d8546763386785d57fa668f79acbf8 Mon Sep 17 00:00:00 2001 From: Ed <96445749+TheShuEd@users.noreply.github.com> Date: Sun, 17 Dec 2023 19:41:57 +0300 Subject: [PATCH] Update BarkAccentSystem.cs --- .../Speech/EntitySystems/BarkAccentSystem.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Content.Server/Speech/EntitySystems/BarkAccentSystem.cs b/Content.Server/Speech/EntitySystems/BarkAccentSystem.cs index 61410aaa73a..e202920ce1c 100644 --- a/Content.Server/Speech/EntitySystems/BarkAccentSystem.cs +++ b/Content.Server/Speech/EntitySystems/BarkAccentSystem.cs @@ -8,7 +8,9 @@ public sealed class BarkAccentSystem : EntitySystem [Dependency] private readonly IRobustRandom _random = default!; private static readonly IReadOnlyList Barks = new List{ - " Гав!", " ГАВ", " вуф-вуф" //Corvax localization + //Corvax-localization-start + " Гав!", " ГАВ", " вуф-вуф" + //Corvax-localization-end }.AsReadOnly(); private static readonly IReadOnlyDictionary SpecialWords = new Dictionary() @@ -17,11 +19,12 @@ public sealed class BarkAccentSystem : EntitySystem { "Ah", "Arf" }, { "oh", "oof" }, { "Oh", "Oof" }, - //Corvax localization + //Corvax-localization-start { "ага", "агаф" }, { "Ага", "Агаф" }, { "угу", "вуф" }, { "Угу", "Вуф" }, + //Corvax-localization-end }; public override void Initialize() @@ -38,8 +41,9 @@ public string Accentuate(string message) return message.Replace("!", _random.Pick(Barks)) .Replace("l", "r").Replace("L", "R") - //Corvax localisation + //Corvax-localisation-start .Replace("л", "р").Replace("Л", "Р"); + //Corvax-localization-end } private void OnAccent(EntityUid uid, BarkAccentComponent component, AccentGetEvent args)