Skip to content

Commit

Permalink
fix, steal objectives translate
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinary1 committed Jul 23, 2024
1 parent 24016e0 commit d7836fd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Content.Server/Objectives/Systems/StealConditionSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ private void OnAfterAssign(Entity<StealConditionComponent> condition, ref Object
var group = _proto.Index(condition.Comp.StealGroup);

var title =condition.Comp.OwnerText == null
? Loc.GetString(condition.Comp.ObjectiveNoOwnerText, ("itemName", group.Name))
: Loc.GetString(condition.Comp.ObjectiveText, ("owner", Loc.GetString(condition.Comp.OwnerText)), ("itemName", group.Name));
? Loc.GetString(condition.Comp.ObjectiveNoOwnerText, ("itemName", Loc.GetString($"ent-{group.Name.Replace(" ", string.Empty)}")))
: Loc.GetString(condition.Comp.ObjectiveText, ("owner", Loc.GetString(condition.Comp.OwnerText)), ("itemName", Loc.GetString($"ent-{group.Name.Replace(" ", string.Empty)}")));

var description = condition.Comp.CollectionSize > 1
? Loc.GetString(condition.Comp.DescriptionMultiplyText, ("itemName", group.Name), ("count", condition.Comp.CollectionSize))
: Loc.GetString(condition.Comp.DescriptionText, ("itemName", group.Name));
? Loc.GetString(condition.Comp.DescriptionMultiplyText, ("itemName", Loc.GetString($"ent-{group.Name.Replace(" ", string.Empty)}")), ("count", condition.Comp.CollectionSize))
: Loc.GetString(condition.Comp.DescriptionText, ("itemName", Loc.GetString($"ent-{group.Name.Replace(" ", string.Empty)}")));

_metaData.SetEntityName(condition.Owner, title, args.Meta);
_metaData.SetEntityDescription(condition.Owner, description, args.Meta);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ public override ConstructionGuideEntry GenerateGuideEntry()
{
if(item.Name == "левая рука киборга-официанта")
{
nameLocale = "левая рука киборга"
nameLocale = "левая рука киборга";
}
else if(item.Name == "голова киборга-уборщика")
{
nameLocale = "голова киборга"
nameLocale = "голова киборга";
}
else
{
Expand Down
10 changes: 10 additions & 0 deletions Resources/Locale/ru-RU/objectives/conditions/steal.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,13 @@ objective-condition-steal-Ian = корги главы персонала
objective-condition-thief-description = { CAPITALIZE($itemName) } станет отличным пополнением моей коллекции!
objective-condition-thief-animal-description = { CAPITALIZE($itemName) } станет отличным пополнением моей коллекции! Главное - живым.
objective-condition-thief-multiply-description = Мне нужно собрать { $count } { $itemName } и увезти их с собой.
ent-requisitiondigi-board = цифровой планшет заявок
ent-hyposprey = гипоспрей
ent-experimentalresearchhardsuit = скафандр научного руководителя
ent-handteleporter = ручной телепорт
ent-handheldcrewmonitor = портативный монитор экипажа
ent-emergencysecurityorders = чрезвычайные приказы по безопасности
ent-advancedmagboots = продвинутые магнитные сапоги
ent-prime-cutcorgimeat = первосортное мясо корги

0 comments on commit d7836fd

Please sign in to comment.