Reagents localization (#7916)

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Alex Evgrashin
2022-05-12 14:06:01 +03:00
committed by GitHub
parent 4ef8bfff46
commit 860db943e1
47 changed files with 1644 additions and 804 deletions

View File

@@ -55,9 +55,9 @@ namespace Content.Server.Chemistry.EntitySystems
sprite?.LayerSetSprite(0, spriteSpec);
}
string val = proto.Name + " glass";
string val = proto.LocalizedName + " glass";
EntityManager.GetComponent<MetaDataComponent>(owner).EntityName = val;
EntityManager.GetComponent<MetaDataComponent>(owner).EntityDescription = proto.Description;
EntityManager.GetComponent<MetaDataComponent>(owner).EntityDescription = proto.LocalizedDescription;
component.CurrentReagent = proto;
component.Transformed = true;
}