Skip to content

Commit

Permalink
Фикс всей локализации (#496)
Browse files Browse the repository at this point in the history
* cargo product loc

* first cargo product translate

* second cargoproduct translate

* roadmap has optional localization

* upd

* 2024 roadmap translate

* full ru roadmap goals translate moved to russian loc

* translate some roadmap 2025

* roadmap fully translate

* holidays translate

* donation plinks rework

* translate categories

* translate planet prison objective

* translate evil twin objectives

* translate fugitive objectives

* fix planet prisoner dir

* upd

* no more planet prison dir

* partial toys translate

* fully translate toys

* lockbox loc fix

* fix Suntick loc

* fix tape loc

* borg modules translate

* translate borg tools and nanopaste

* upd

* boombox translate

* translate pda's and hand_teleporter

* reinforcement radio translate

* donation plinks translate

* barber items translate

* tape player translate

* ID cards translate

* computers translate

* translate corporate laws

* pepper spray translate

* flippo lighter translate

* magistrat's rubber stamp translate

* translate some ammunition

* clear no need desc

* translate SMGS

* fix

* Finaly guns translating

* translate clocks

* translate misc

* some cloaks translate

* fully cloaks translate

* belts translate

* translate all masks

* translate boots

* all backpacks translate

* glasses translate

* gloves translate

* bras translate

* fix rsi validator

* translate jumpskirt's

* jumpsuits translate

* security pilot's jumpsuit translate

* translate hardsuit helmets

* translate hood

* hats translate

* helmets translate

* men's underpants translate

* translate women's pants

* hardsuits translate

* fix pant desc

* translate armor

* translate coats

* translate captain's overcoat

* socks translate

* big boxes translate

* translate lockers

* power translate

* translate barber pole

* poster translate

* translate chairs

* translate vending_machines

* translate pacificator

* translate computers

* clowns ghost role translate

* translate eviltwin ghost role

* translate predator name

* another player species translate

* translate foliant

* translate borg chassis

* shuttle markers translate

* translate job spawners

* ghost roles spawners translate

* actions translate

* stacks translate

* some fixes

* uplink catalog fully translate

* return hypo on uplink

* sponsor uplink catalog translate start

* new sponsor uplink translation

* fully translate sponsor uplink catalog

* translate lockers

* translate kits

* translate syndicate boombox bundle

* predator organs translate

* body prototypes translate

* humanoid xeno organs translate

* predator body parts translate

* xenomorph body parts translate

* tajaran body parts translate

* translate disease

* species translate

* translate speech emotes

* upd

* translate frontier rules

* translate lust rules

* translate default rules

* crafting translate

* holy shit, last fixes

* no checks if you not changes prototypes

* fix

* fix linter

* fix sponsor uplink catalog

* second fix

* fix socks

* last fix

* xd

* fix

* upd locale, ALL En-US prototypes translated

* upd

* upd locale validator, checks for non lokalized strings in ru-RU

* some translations

* clear

* gaaaaaaaaaay pin

* upd

* upd

* fix

* fix linter

* translate toys

* translate

* upd

* fix

* upd

* fix

* fix linter

* upd

* fix

* better construction graph translation

* start reworking construction menu translation

* some new translations

* fix

* upd translations

* пу-пу-пу

* fix

* upd

* upd, sunrise strings in en-us

* upd

* translate voice-mask

* translate guns

* energy gun translate

* server info translate

* bar signs translate

* translate ui tabs

* translate reagent effect

* translate revenant-catalog

* translate categories

* general translate

* friends translate

* Sponsor uplink fixes|Translate

* some fixes

* translate Security, Hos, QM sponsor uplink
  • Loading branch information
Rinary1 authored Oct 30, 2024
1 parent c6cc07d commit 612f8ca
Show file tree
Hide file tree
Showing 479 changed files with 8,617 additions and 3,254 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/validate-locale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ on:
push:
branches: [ staging, trying ]
pull_request:
types: [ opened, reopened, synchronize, ready_for_review ]
paths:
- '**.yml'
- '**.ftl'

jobs:
validate_ymls:
Expand All @@ -21,4 +23,4 @@ jobs:
pip install --no-cache-dir PyYAML
- name: Validate Locales
run: |
python3 Tools/_sunrise/Schemas/validate_yml.py Resources/Prototypes/
python3 Tools/_sunrise/Schemas/validate_yml.py Resources/Locale/ Resources/Prototypes/ --ignore Tools/_sunrise/Schemas/ignore_list.yml
4 changes: 4 additions & 0 deletions .github/workflows/validate-rsis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install Python dependencies
run: |
pip3 install --ignore-installed --user pillow jsonschema
Expand Down
4 changes: 2 additions & 2 deletions Content.Client/_Sunrise/Roadmap/Roadmap.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ private void PopulateRoadmap(RoadmapVersionsPrototype roadmapVersions)
{
var roadmapItem = new RoadmapItem()
{
HeaderText = goal.Value.Name,
Text = goal.Value.Desc,
HeaderText = Loc.TryGetString($"{goal.Value.Id}-name", out var name) ? name : goal.Value.Name,
Text = Loc.TryGetString($"{goal.Value.Id}-desc", out var desc) ? desc : goal.Value.Desc,
ItemState = goal.Value.State,
};

Expand Down
4 changes: 2 additions & 2 deletions Content.Shared/Cargo/Prototypes/CargoProductPrototype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public string Name

if (IoCManager.Resolve<IPrototypeManager>().TryIndex(Product, out EntityPrototype? prototype))
{
_name = prototype.Name;
_name = Loc.TryGetString($"{prototype.ID}-name", out var name) ? name : prototype.Name; //Sunrise-edit: Localization
}

return _name;
Expand All @@ -58,7 +58,7 @@ public string Description

if (IoCManager.Resolve<IPrototypeManager>().TryIndex(Product, out EntityPrototype? prototype))
{
_description = prototype.Description;
_description = Loc.TryGetString($"{prototype.ID}-desc", out var desc) ? desc : prototype.Description; //Sunrise-edit: Localization
}

return _description;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,35 +39,15 @@ public override ConstructionGuideEntry GenerateGuideEntry()
{
if (item.TryGetComponent<TagComponent>(out var entityTag) && entityManager.System<TagSystem>().HasTag(entityTag, Tag))
{
//Sunrise-start
if(item.Name == "левая рука киборга-официанта")
{
nameLocale = "левая рука киборга";
}
else if(item.Name == "голова киборга-уборщика")
{
nameLocale = "голова киборга";
}
else
{
nameLocale = item.Name;
}
//Sunrise-End
nameLocale = item.Name;
break;
}
}
}

if (nameLocale == null)
{
var formattedName = Name.Replace(" ", "-").ToLower();
nameLocale = Loc.GetString($"material-{formattedName}-name");
}

return new ConstructionGuideEntry
{
Localization = "construction-presenter-arbitrary-step",
Arguments = new (string, object)[] { ("name", nameLocale ?? Name) },
Arguments = new (string, object)[] { ("name", Loc.TryGetString($"{Name}", out var translatedname) ? translatedname : nameLocale ?? Name) },
Icon = Icon,
};
}
Expand Down
3 changes: 3 additions & 0 deletions Content.Shared/_Sunrise/Roadmap/RoadmapVersionsPrototype.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public sealed partial class RoadmapGroup
[Serializable, NetSerializable]
public sealed partial class RoadmapGoal
{
[DataField]
public string Id { get; set; } = string.Empty; //Хуйня нужная для локализации, не трогать

[DataField]
public string Name { get; set; } = string.Empty;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ent-SmileAffection = Обнимашки
.desc = Смайл обнимается с целью, восстанавливая ей некоторое количество здоровья.
ent-SmileAffection = Hugs
.desc = Smile hugs the target, restoring a certain amount of health to it.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ent-ActionTakeAim = Включить прицеливание
ent-ActionTakeAim = Activate aiming
.desc = { "" }
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@ ent-BaseHumanoidXenoOrganUnGibbable = { ent-BaseItem }
.desc = { ent-BaseItem.desc }
ent-BaseHumanoidXenoOrgan = { ent-BaseHumanoidXenoOrganUnGibbable }
.desc = { ent-BaseHumanoidXenoOrganUnGibbable.desc }
ent-OrganHumanoidXenoBrain = мозг
.desc = Нексус чужеродного разума. Мысли, которых вы не хотите знать.
ent-OrganHumanoidXenoTongue = язык
.desc = Длинный и гибкий.
ent-OrganHumanoidXenoAppendix = аппендикс
.desc = Эволюционный привет из прошлого.
ent-OrganHumanoidXenoEars = уши
.desc = Сверхчувствительные локаторы. Слышат ваши страхи.
ent-OrganHumanoidXenoLungs = легкие
.desc = Фильтруют кислород из атмосферы и направляют его в кровь, где он используется как переносчик электронов.
ent-OrganHumanoidXenoHeart = сердце ксеноморфа
.desc = Мощный орган, перекачивающий кислую кровь сквозь жесткие ткани и обеспечивающий невероятную выносливость и силу каждому ксеноморфу.
ent-OrganHumanoidXenoStomach = желудок
.desc = Прожорливая яма.
ent-OrganHumanoidXenoLiver = печень
.desc = Мощный детоксикатор, с легкостью нейтрализующий опасные вещества.
ent-OrganHumanoidXenoKidneys = почки
.desc = Парные фильтры, безжалостно выводящие всё лишнее.
ent-OrganHumanoidXenoBrain = brain
.desc = The nexus of the alien mind. Thoughts you don't want to know.
ent-OrganHumanoidXenoTongue = tongue
.desc = Long and flexible.
ent-OrganHumanoidXenoAppendix = appendix
.desc = An evolutionary greeting from the past.
ent-OrganHumanoidXenoEars = ears
.desc = Ultra-sensitive locators. Hear your fears.
ent-OrganHumanoidXenoLungs = lungs
.desc = They filter oxygen from the atmosphere and channel it into the bloodstream, where it is used as an electron carrier.
ent-OrganHumanoidXenoHeart = xenomorph heart
.desc = A powerful organ that pumps acidic blood through tough tissues and provides incredible stamina and strength to every xenomorph.
ent-OrganHumanoidXenoStomach = stomach
.desc = A voracious pit.
ent-OrganHumanoidXenoLiver = liver
.desc = A powerful detoxifier that neutralizes dangerous substances with ease.
ent-OrganHumanoidXenoKidneys = kidneys
.desc = Paired filters, ruthlessly taking out anything superfluous.
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ ent-BasePredatorOrganUnGibbable = { ent-BaseItem }
.desc = { ent-BaseItem.desc }
ent-BasePredatorOrgan = { ent-BasePredatorOrganUnGibbable }
.desc = { ent-BasePredatorOrganUnGibbable.desc }
ent-OrganPredatorBrain = мозг
.desc = Нексус чужеродного разума. Мысли, которых вы не хотите знать.
ent-OrganPredatorTongue = язык
.desc = Длинный и гибкий.
ent-OrganPredatorAppendix = аппендикс
.desc = Эволюционный привет из прошлого.
ent-OrganPredatorEars = уши
.desc = Сверхчувствительные локаторы. Слышат ваши страхи.
ent-OrganPredatorLungs = легкие
.desc = Фильтруют кислород из атмосферы и направляют его в кровь, где он используется как переносчик электронов.
ent-OrganPredatorHeart = сердце яутжи
.desc = Мощный орган, перекачивающий кислую кровь сквозь жесткие ткани и обеспечивающий невероятную выносливость и силу каждому яутже.
ent-OrganPredatorStomach = желудок
.desc = Прожорливая яма.
ent-OrganPredatorLiver = печень
.desc = Мощный детоксикатор, с легкостью нейтрализующий опасные вещества.
ent-OrganPredatorKidneys = почки
.desc = Парные фильтры, безжалостно выводящие всё лишнее.
ent-OrganPredatorEyes = глаза
.desc = Я тебя вижу!
ent-OrganPredatorBrain = brain
.desc = The nexus of the alien mind. Thoughts you don't want to know.
ent-OrganPredatorTongue = tongue
.desc = Long and flexible.
ent-OrganPredatorAppendix = appendix
.desc = An evolutionary greeting from the past.
ent-OrganPredatorEars = ears
.desc = Ultra-sensitive locators. Hear your fears.
ent-OrganPredatorLungs = lungs
.desc = They filter oxygen from the atmosphere and channel it into the bloodstream, where it is used as an electron carrier.
ent-OrganPredatorHeart = predator heart
.desc = A powerful organ that pumps acidic blood through tough tissues and provides incredible stamina and strength to every predator.
ent-OrganPredatorStomach = stomach
.desc = A voracious pit.
ent-OrganPredatorLiver = liver
.desc = A powerful detoxifier that neutralizes dangerous substances with ease.
ent-OrganPredatorKidneys = kidneys
.desc = Paired filters, ruthlessly taking out anything superfluous.
ent-OrganPredatorEyes = eyes
.desc = I see YOU!
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
ent-PartHumanoidXeno = правая рука ксеноморфа
ent-PartHumanoidXeno = xenomorph body part
.desc = { ent-BaseItem.desc }
ent-TorsoHumanoidXeno = торс ксеноморфа
ent-TorsoHumanoidXeno = xenomorph torso
.desc = { ent-PartHumanoidXeno.desc }
ent-HeadHumanoidXeno = голова ксеноморфа
ent-HeadHumanoidXeno = xenomorph head
.desc = { ent-PartHumanoidXeno.desc }
ent-LeftArmHumanoidXeno = левая рука ксеноморфа
ent-LeftArmHumanoidXeno = left xenomorph arm
.desc = { ent-PartHumanoidXeno.desc }
ent-RightArmHumanoidXeno = правая рука ксеноморфа
ent-RightArmHumanoidXeno = right xenomorph arm
.desc = { ent-PartHumanoidXeno.desc }
ent-LeftHandHumanoidXeno = левая кисть ксеноморфа
ent-LeftHandHumanoidXeno = left xenomorph hand
.desc = { ent-PartHumanoidXeno.desc }
ent-RightHandHumanoidXeno = правая кисть ксеноморфа
ent-RightHandHumanoidXeno = right xenomorph hand
.desc = { ent-PartHumanoidXeno.desc }
ent-LeftLegHumanoidXeno = левая нога ксеноморфа
ent-LeftLegHumanoidXeno = left xenomorph leg
.desc = { ent-PartHumanoidXeno.desc }
ent-RightLegHumanoidXeno = правая нога ксеноморфа
ent-RightLegHumanoidXeno = right xenomorph leg
.desc = { ent-PartHumanoidXeno.desc }
ent-LeftFootHumanoidXeno = левая стопа ксеноморфа
ent-LeftFootHumanoidXeno = left xenomorph foot
.desc = { ent-PartHumanoidXeno.desc }
ent-RightFootHumanoidXeno = правая стопа ксеноморфа
ent-RightFootHumanoidXeno = right xenomorph foot
.desc = { ent-PartHumanoidXeno.desc }
22 changes: 11 additions & 11 deletions Resources/Locale/en-US/_prototypes/_sunrise/body/parts/predator.ftl
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
ent-PartPredator = голова яутжи
ent-PartPredator = predator body part
.desc = { ent-BaseItem.desc }
ent-TorsoPredator = торс яутжи
ent-TorsoPredator = predator torso
.desc = { ent-PartPredator.desc }
ent-HeadPredator = голова яутжи
ent-HeadPredator = predator head
.desc = { ent-PartPredator.desc }
ent-LeftArmPredator = левая рука яутжи
ent-LeftArmPredator = left predator arm
.desc = { ent-PartPredator.desc }
ent-RightArmPredator = правая рука яутжи
ent-RightArmPredator = right predator arm
.desc = { ent-PartPredator.desc }
ent-LeftHandPredator = левая кисть яутжи
ent-LeftHandPredator = left predator hand
.desc = { ent-PartPredator.desc }
ent-RightHandPredator = правая кисть яутжи
ent-RightHandPredator = right predator hand
.desc = { ent-PartPredator.desc }
ent-LeftLegPredator = левая нога яутжи
ent-LeftLegPredator = left predator leg
.desc = { ent-PartPredator.desc }
ent-RightLegPredator = правая нога нога уятжи
ent-RightLegPredator = right predator leg
.desc = { ent-PartPredator.desc }
ent-LeftFootPredator = левая стопа яутжи
ent-LeftFootPredator = left predator foot
.desc = { ent-PartPredator.desc }
ent-RightFootPredator = правая стопа яутжи
ent-RightFootPredator = right predator foot
.desc = { ent-PartPredator.desc }
22 changes: 11 additions & 11 deletions Resources/Locale/en-US/_prototypes/_sunrise/body/parts/tajaran.ftl
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
ent-PartTajaran = tajaran body part
.desc = { ent-BaseItem.desc }
ent-TorsoTajaran = тело таяра
ent-TorsoTajaran = tajaran torso
.desc = { ent-PartTajaran.desc }
ent-HeadTajaran = голова таяра
ent-HeadTajaran = tajaran head
.desc = { ent-PartTajaran.desc }
ent-LeftArmTajaran = левая рука таяра
ent-LeftArmTajaran = left tajaran arm
.desc = { ent-PartTajaran.desc }
ent-RightArmTajaran = правая рука таяра
ent-RightArmTajaran = right tajaran arm
.desc = { ent-PartTajaran.desc }
ent-LeftHandTajaran = левая кисть таяра
ent-LeftHandTajaran = left tajaran hand
.desc = { ent-PartTajaran.desc }
ent-RightHandTajaran = правая кисть таяра
ent-RightHandTajaran = right tajaran hand
.desc = { ent-PartTajaran.desc }
ent-TailTajaran = хвост таяра
ent-TailTajaran = tajaran tail
.desc = { ent-PartTajaran.desc }
ent-LeftLegTajaran = левая нога таяра
ent-LeftLegTajaran = left tajaran leg
.desc = { ent-PartTajaran.desc }
ent-RightLegTajaran = правая нога таяра
ent-RightLegTajaran = right tajaran leg
.desc = { ent-PartTajaran.desc }
ent-LeftFootTajaran = левая ступня таяра
ent-LeftFootTajaran = left tajaran foot
.desc = { ent-PartTajaran.desc }
ent-RightFootTajaran = правая ступня таяра
ent-RightFootTajaran = right tajaran foot
.desc = { ent-PartTajaran.desc }
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ent-ClothingBackpackSyndieAJ100Filled = набор AJ-10
.desc = Включает в себя пистолет-пулемёт AJ-100 и два магазина патрон.
ent-ClothingBackpackSyndieDL6902Filled = набор DL-6902
.desc = Включает в себя пулемёт DL6902 и один магазин патрон.
ent-ClothingBackpackSyndieSIAR52Filled = набор SIAR-52
.desc = Включает в себя пулемёт SIAR-52 и два магазина патрон.
ent-ClothingBackpackSyndieAJ100Filled = AJ-100 kit
.desc = Includes an AJ-100 submachine gun and two magazines of ammunition.
ent-ClothingBackpackSyndieDL6902Filled = DL-6902 kit
.desc = Includes a DL6902 machine gun and one magazine of ammunition.
ent-ClothingBackpackSyndieSIAR52Filled = SIAR-52 kit
.desc = Includes a SIAR-52 machine gun and two magazines of ammunition.
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ent-ClothingBackpackDuffelBoomboxBundle = syndicate boombox bundle
.desc = Убивайте со стилем
.desc = Kills with style.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ent-LockerHeadOfPrisonFilled = head of prison's locker
.suffix = Filled
.desc = { ent-LockerHeadOfSecurity.desc }
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
ent-GunSafeEnergyGunMini = сейф миниатюрных энергетических пушек
ent-GunSafeEnergyGunMini = mini energy cannons safe
.suffix = SUNRISE
.desc = { ent-GunSafe.desc }
ent-GunSafePistolG22 = Сейф Глок-22
.suffix = SUNRISE
ent-GunSafePistolG22 = safe
.suffix = Glock-22
.desc = { ent-GunSafe.desc }
ent-GunSafeRifleM16A4 = Сейф M16A4
.suffix = SUNRISE
ent-GunSafeRifleM16A4 = safe
.suffix = M16A4
.desc = { ent-GunSafe.desc }
ent-GunSafeSubMachineGunVector = Сейф векторов
.suffix = SUNRISE
ent-GunSafeSubMachineGunVector = safe
.suffix = Vector
.desc = { ent-GunSafe.desc }
ent-GunSafeShotgunPaladin = Сейф Паладинов 12
.suffix = SUNRISE
ent-GunSafeShotgunPaladin = safe
.suffix = Paladin 12
.desc = { ent-GunSafe.desc }
ent-GunSafeShotgunTrenchgun4034 = Сейф Тренчганов 4034
.suffix = SUNRISE
ent-GunSafeShotgunTrenchgun4034 = safe
.suffix = Trenchgun 4034
.desc = { ent-GunSafe.desc }
ent-GunSafeSubMachineGunMP38 = Сейф MP-38
.suffix = SUNRISE
ent-GunSafeSubMachineGunMP38 = safe
.suffix = MP-38
.desc = { ent-GunSafe.desc }
ent-GunSafeEnergyGun = сейф энергетических пушек
.suffix = SUNRISE
ent-GunSafeEnergyGun = safe
.suffix = Energy guns
.desc = { ent-GunSafe.desc }
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ent-ClothingBackpackSyndie = Рюкзак Синдиката
.desc = Рюкзак оперативника с повышенной вместительностью.
ent-ClothingBackpackSyndie = syndie backpack
.desc = An operative's backpack with increased capacity.
ent-ClothingMilitaryBackpack = army backpack
.desc = A spacious backpack with lots of pockets, worn by military structures.
ent-ClothingDeathSquadronBackpack = death squadron backpack
Expand All @@ -8,7 +8,7 @@ ent-ClothingBackpackCE = chief engineer backpack
.desc = Technicially progressive backpack.
ent-ClothingBackpackBlueShield = blue shield's backpack
.desc = Superior.
ent-ClothingBackpackPrisonGuard = рюкзак сотрудника кт
.desc = На стиле.
ent-ClothingBackpackPrisonGuard = prison guard's backpack
.desc = On style.
ent-ClothingBackpackAdjutant = adjutant backpack
.desc = Predominantly composed of multiforaments tied together with threads.
Loading

0 comments on commit 612f8ca

Please sign in to comment.