Skip to content

Commit

Permalink
Rework splash.text in Russian i18n
Browse files Browse the repository at this point in the history
Closes #92
  • Loading branch information
NotMyWing committed Jun 12, 2021
1 parent 57a10c3 commit 3357ce9
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions src/gamemodes/amongus/gamemode/lang/au_default_ru.moon
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,18 @@ with GM.Lang\Get "ru"
["splash.text"] = (isPlaying, imposterCount) ->
amongSubtext = isPlaying and "нас" or "них"

return string.format (switch remaining % 10
when 1
"%s Предатель среди #{amongSubtext}"
when 2, 3, 4
"%s Предателя среди #{amongSubtext}"
else
"%s Предателей среди #{amongSubtext}"
), imposterCount
imposterWord = "Предателей"

imposterCountMod = imposterCount % 100
if imposterCountMod <= 10 or imposterCountMod >= 20
imposterCountMod %= 10

imposterWord = if imposterCountMod > 1 and imposterCountMod < 5
"Предателя"
elseif imposterCountMod == 1
"Предатель"

string.format "%s %s среди %s", imposterCount, imposterWord, amongSubtext

["hud.sabotageAndKill"] = "Устраивай саботажи и убивай всех."
["hud.countdown"] = "Начало через %d"
Expand Down

0 comments on commit 3357ce9

Please sign in to comment.