More localize (#7869)

* Localize replacement accents

* Localize bar signs

* Holidays

* Localize species
This commit is contained in:
Alex Evgrashin
2022-05-03 11:32:06 +03:00
committed by GitHub
parent 15312d93c7
commit 89fda5ec83
13 changed files with 401 additions and 164 deletions

View File

@@ -77,8 +77,9 @@ namespace Content.Server.BarSign.Systems
var newPrototype = _random.Pick(prototypes);
var meta = Comp<MetaDataComponent>(owner);
meta.EntityName = newPrototype.Name != string.Empty ? newPrototype.Name : Loc.GetString("barsign-component-name");
meta.EntityDescription = newPrototype.Description;
var name = newPrototype.Name != string.Empty ? newPrototype.Name : "barsign-component-name";
meta.EntityName = Loc.GetString(name);
meta.EntityDescription = Loc.GetString(newPrototype.Description);
component.CurrentSign = newPrototype.ID;
return newPrototype;