Skip to content

Commit

Permalink
Merge pull request #1227 from kipdotnet/evil
Browse files Browse the repository at this point in the history
remove the cyrillic text conversion from the russian accent
  • Loading branch information
Darkmajia authored Jan 6, 2025
2 parents 779d954 + 8df409f commit db627a9
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions Content.Server/Speech/EntitySystems/RussianAccentSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,32 +13,7 @@ public override void Initialize()

public string Accentuate(string message)
{
var accentedMessage = new StringBuilder(_replacement.ApplyReplacements(message, "russian"));

for (var i = 0; i < accentedMessage.Length; i++)
{
var c = accentedMessage[i];

accentedMessage[i] = c switch
{
'A' => 'Д',
'b' => 'в',
'N' => 'И',
'n' => 'и',
'K' => 'К',
'k' => 'к',
'm' => 'м',
'h' => 'н',
't' => 'т',
'R' => 'Я',
'r' => 'я',
'Y' => 'У',
'W' => 'Ш',
'w' => 'ш',
_ => accentedMessage[i]
};
}

var accentedMessage = _replacement.ApplyReplacements(message, "russian"); //imp change. die
return accentedMessage.ToString();
}

Expand Down

0 comments on commit db627a9

Please sign in to comment.