Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

Commit

Permalink
[Feature] Ru Translate (#2)
Browse files Browse the repository at this point in the history
* [Feature] Ru Translate

* guidebook_actualization

* translate_actualization

* remove autotranslate

* dubs_clean_1

* dubs_clean_2
  • Loading branch information
PuroSlavKing committed Aug 31, 2024
1 parent 322af06 commit 4680df6
Show file tree
Hide file tree
Showing 2,064 changed files with 39,296 additions and 2,253 deletions.
22 changes: 21 additions & 1 deletion Content.Shared/Localizations/ContentLocalizationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ public sealed class ContentLocalizationManager
[Dependency] private readonly ILocalizationManager _loc = default!;

// If you want to change your codebase's language, do it here.
private const string Culture = "en-US";
// Ataraxia-EDIT START
private const string Culture = "ru-RU";

private const string FallbackCulture = "en-US";
// Ataraxia-EDIT END

/// <summary>
/// Custom format strings used for parsing and displaying minutes:seconds timespans.
Expand All @@ -27,7 +31,14 @@ public void Initialize()
{
var culture = new CultureInfo(Culture);

// Ataraxia-EDIT START
var fallbackCulture = new CultureInfo(FallbackCulture);

_loc.LoadCulture(culture);

_loc.LoadCulture(fallbackCulture);
_loc.SetFallbackCluture(fallbackCulture);

_loc.AddFunction(culture, "PRESSURE", FormatPressure);
_loc.AddFunction(culture, "POWERWATTS", FormatPowerWatts);
_loc.AddFunction(culture, "POWERJOULES", FormatPowerJoules);
Expand All @@ -37,6 +48,15 @@ public void Initialize()
_loc.AddFunction(culture, "NATURALFIXED", FormatNaturalFixed);
_loc.AddFunction(culture, "NATURALPERCENT", FormatNaturalPercent);

_loc.AddFunction(fallbackCulture, "PRESSURE", FormatPressure);
_loc.AddFunction(fallbackCulture, "POWERWATTS", FormatPowerWatts);
_loc.AddFunction(fallbackCulture, "POWERJOULES", FormatPowerJoules);
_loc.AddFunction(fallbackCulture, "UNITS", FormatUnits);
_loc.AddFunction(fallbackCulture, "TOSTRING", args => FormatToString(culture, args));
_loc.AddFunction(fallbackCulture, "LOC", FormatLoc);
_loc.AddFunction(fallbackCulture, "NATURALFIXED", FormatNaturalFixed);
_loc.AddFunction(fallbackCulture, "NATURALPERCENT", FormatNaturalPercent);
// Ataraxia-EDIT END

/*
* The following language functions are specific to the english localization. When working on your own
Expand Down
18 changes: 18 additions & 0 deletions Content.Shared/_Ataraxia/CCVar/AtaraxiaCCVars.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using Robust.Shared;
using Robust.Shared.Configuration;

namespace Content.Shared._Ataraxia
{
[CVarDefs]
public sealed class AtaraxiaCCVars : CVars
{

/*
* Build language
*/

public static readonly CVarDef<string>
ServerCulture = CVarDef.Create("ataraxia.culture", "ru-RU", CVar.REPLICATED | CVar.SERVER);

}
}
1 change: 1 addition & 0 deletions Resources/Locale/ru-RU/GPS/handheld-gps.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
handheld-gps-coordinates-title = Координаты: { $coordinates }
9 changes: 9 additions & 0 deletions Resources/Locale/ru-RU/HUD/game-hud.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
game-hud-open-escape-menu-button-tooltip = Открыть меню паузы.
game-hud-open-guide-menu-button-tooltip = Открыть меню руководства.
game-hud-open-character-menu-button-tooltip = Открыть меню персонажа.
game-hud-open-emotes-menu-button-tooltip = Открыть меню эмоций.
game-hud-open-inventory-menu-button-tooltip = Открыть меню инвентаря.
game-hud-open-crafting-menu-button-tooltip = Открыть меню создания.
game-hud-open-actions-menu-button-tooltip = Открыть меню действий.
game-hud-open-admin-menu-button-tooltip = Открыть меню администратора.
game-hud-open-sandbox-menu-button-tooltip = Открыть меню песочницы.
8 changes: 8 additions & 0 deletions Resources/Locale/ru-RU/_directions.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
zzzz-fmt-direction-North = Север
zzzz-fmt-direction-South = Юг
zzzz-fmt-direction-East = Восток
zzzz-fmt-direction-West = Запад
zzzz-fmt-direction-NorthEast = Северо-восток
zzzz-fmt-direction-SouthEast = Юго-восток
zzzz-fmt-direction-NorthWest = Северо-запад
zzzz-fmt-direction-SouthWest = Юго-запад
34 changes: 34 additions & 0 deletions Resources/Locale/ru-RU/_lib.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
### Special messages used by internal localizer stuff.

# Used internally by the PRESSURE() function.
zzzz-fmt-pressure =
{ TOSTRING($divided, "F1") } { $places ->
[0] кПа
[1] МПа
[2] ГПа
[3] ТПа
[4] ППа
*[5] ???
}
# Used internally by the POWERWATTS() function.
zzzz-fmt-power-watts =
{ TOSTRING($divided, "F1") } { $places ->
[0] Вт
[1] кВт
[2] МВт
[3] ГВт
[4] ТВт
*[5] ???
}
# Used internally by the POWERJOULES() function.
# Reminder: 1 joule = 1 watt for 1 second (multiply watts by seconds to get joules).
# Therefore 1 kilowatt-hour is equal to 3,600,000 joules (3.6MJ)
zzzz-fmt-power-joules =
{ TOSTRING($divided, "F1") } { $places ->
[0] Дж
[1] кДж
[2] МДж
[3] ГДж
[4] ТДж
*[5] ???
}
97 changes: 97 additions & 0 deletions Resources/Locale/ru-RU/_units.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
## Standard SI prefixes

units-si--y = и
units-si--z = з
units-si--a = а
units-si--f = ф
units-si--p = п
units-si--n = н
units-si--u = мк
units-si--m = м
units-si = { "" }
units-si-k = к
units-si-m = М
units-si-g = Г
units-si-t = Т
units-si-p = П
units-si-e = Э
units-si-z = З
units-si-y = И
### Long form

units-si--y-long = иокто
units-si--z-long = зепто
units-si--a-long = атто
units-si--f-long = фемто
units-si--p-long = пико
units-si--n-long = нано
units-si--u-long = микро
units-si--m-long = милли
units-si-long = { "" }
units-si-k-long = кило
units-si-m-long = мега
units-si-g-long = гига
units-si-t-long = тера
units-si-p-long = пета
units-si-e-long = экса
units-si-z-long = зетта
units-si-y-long = иотта
## Pascals (Pressure)

units-u--pascal = мкПа
units-m--pascal = мПа
units-pascal = Па
units-k-pascal = кПа
units-m-pascal = МПа
units-g-pascal = ГПа
units-u--pascal-long = микропаскаль
units-m--pascal-long = миллипаскаль
units-pascal-long = паскаль
units-k-pascal-long = килопаскаль
units-m-pascal-long = мегапаскаль
units-g-pascal-long = гигапаскаль
## Watts (Power)

units-u--watt = мкВт
units-m--watt = мВт
units-watt = Вт
units-k-watt = кВт
units-m-watt = МВт
units-g-watt = ГВт
units-u--watt-long = микроватт
units-m--watt-long = милливатт
units-watt-long = ватт
units-k-watt-long = киловатт
units-m-watt-long = мегаватт
units-g-watt-long = гигаватт
## Joule (Energy)

units-u--joule = мкДж
units-m--joule = мДж
units-joule = Дж
units-k-joule = кДж
units-m-joule = МДж
units-u--joule-long = микроджоуль
units-m--joule-long = миллиджоуль
units-joule-long = джоуль
units-k-joule-long = килоджоуль
units-m-joule-long = мегаджоуль
## Kelvin (Temperature)

units-u--kelvin = мкК
units-m--kelvin = мК
units-kelvin = К
units-k-kelvin = кК
units-m-kelvin = MK
units-g-kelvin = ГК
units-u--kelvin-long = микрокельвин
units-m--kelvin-long = милликельвин
units-kelvin-long = кельвин
units-k-kelvin-long = килокельвин
units-m-kelvin-long = мегакельвин
units-g-kelvin-long = гигакельвин
1 change: 1 addition & 0 deletions Resources/Locale/ru-RU/abilities/goliath.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tentacle-ability-use-popup = { CAPITALIZE($entity) } погружает свои щупальца под землю!
5 changes: 5 additions & 0 deletions Resources/Locale/ru-RU/abilities/mime.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mime-cant-speak = Данный вами обет молчания не позволяет вам говорить.
mime-invisible-wall-popup = { CAPITALIZE($mime) } упирается в невидимую стену!
mime-invisible-wall-failed = Вы не можете создать здесь невидимую стену.
mime-not-ready-repent = Вы ещё не готовы покаяться за нарушенный обет.
mime-ready-to-repent = Вы чувствуете, что готовы снова дать обет молчания.
109 changes: 109 additions & 0 deletions Resources/Locale/ru-RU/accent/accents.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# Cat accent
accent-words-cat-1 = Мяу!
accent-words-cat-2 = Mиау.
accent-words-cat-3 = Мурррр!
accent-words-cat-4 = Ххссс!
accent-words-cat-5 = Мррау.
accent-words-cat-6 = Мяу?
accent-words-cat-7 = Mяф.
# Dog accent
accent-words-dog-1 = Гав!
accent-words-dog-2 = Тяв!
accent-words-dog-3 = Вуф!
accent-words-dog-4 = Гаф.
accent-words-dog-5 = Гррр.
# Mouse
accent-words-mouse-1 = Скуик!
accent-words-mouse-2 = Пиип!
accent-words-mouse-3 = Чууу!
accent-words-mouse-4 = Ииии!
accent-words-mouse-5 = Пип!
accent-words-mouse-6 = Уиип!
accent-words-mouse-7 = Иип!
# Mumble
accent-words-mumble-1 = Ммпмв!
accent-words-mumble-2 = Мммв-мррввв!
accent-words-mumble-3 = Мммв-мпвф!
# Silicon
accent-words-silicon-1 = Бип.
accent-words-silicon-2 = Буп.
accent-words-silicon-3 = Жжжж.
accent-words-silicon-4 = Биб-буп.
# Xeno
accent-words-xeno-1 = Хиссс.
accent-words-xeno-2 = Хиссссс!
accent-words-xeno-3 = Хисссшу...
accent-words-xeno-4 = Хисс...!
# Zombie
accent-words-zombie-1 = Грруааа...
accent-words-zombie-2 = Ммуааа...
accent-words-zombie-3 = Маазгиии...
accent-words-zombie-4 = Гррррр...
accent-words-zombie-5 = Ууаагххххх...
accent-words-zombie-6 = Граааааоооууллл...
accent-words-zombie-7 = Мазгии... Ммааазгиии..
accent-words-zombie-8 = Мазгххх...
accent-words-zombie-9 = Маазгг...
accent-words-zombie-10 = Граааааа...
# Moth Zombie
accent-words-zombie-moth-1 = Одееежда...
accent-words-zombie-moth-2 = Ооообувь...
accent-words-zombie-moth-3 = Свеееет...
accent-words-zombie-moth-4 = Лаааампы...
accent-words-zombie-moth-5 = Шааапк... Шаааапки...
accent-words-zombie-moth-6 = Шааарфы...
# Generic Aggressive
accent-words-generic-aggressive-1 = Грр!
accent-words-generic-aggressive-2 = Рррр!
accent-words-generic-aggressive-3 = Грр...
accent-words-generic-aggressive-4 = Гррав!!
# Duck
accent-words-duck-1 = Ква!
accent-words-duck-2 = Ква.
accent-words-duck-3 = Ква?
accent-words-duck-4 = Ква-ква!
# Chicken
accent-words-chicken-1 = Кудах!
accent-words-chicken-2 = Кудах.
accent-words-chicken-3 = Кудах?
accent-words-chicken-4 = Кудах тах-тах!
# Pig
accent-words-pig-1 = Хрю.
accent-words-pig-2 = Хрю?
accent-words-pig-3 = Хрю!
accent-words-pig-4 = Хрю-хрю!
# Kangaroo
accent-words-kangaroo-1 = Грр!
accent-words-kangaroo-2 = Ххссс!
accent-words-kangaroo-3 = Шррр!
accent-words-kangaroo-4 = Чууу!
# Slimes
accent-words-slimes-1 = Блюмп.
accent-words-slimes-2 = Блимпаф?
accent-words-slimes-3 = Бламп!
accent-words-slimes-4 = Блааамп...
accent-words-slimes-5 = Блабл-бламп!
# Mothroach
accent-words-mothroach-1 = Чирик!
# Crab
accent-words-crab-1 = Чик.
accent-words-crab-2 = Чик-клац!
accent-words-crab-3 = Клац?
accent-words-crab-4 = Типи-тап!
accent-words-crab-5 = Чик-тап.
accent-words-crab-6 = Чикичик.
# Kobold
accent-words-kobold-1 = Йип!
accent-words-kobold-2 = Гррар.
accent-words-kobold-3 = Йап!
accent-words-kobold-4 = Бип.
accent-words-kobold-5 = Скрит?
accent-words-kobold-6 = Гронк!
accent-words-kobold-7 = Хисс!
accent-words-kobold-8 = Йии!
accent-words-kobold-9 = Йип.
# Nymph
accent-words-nymph-1 = Чирик!
accent-words-nymph-2 = Чурр...
accent-words-nymph-3 = Чипи?
accent-words-nymph-4 = Шрруп!
Loading

0 comments on commit 4680df6

Please sign in to comment.