Move id and health examinable to shared (#27867)

* Move id and health examinable to shared

* Make GetInfo public
This commit is contained in:
DrSmugleaf
2024-05-09 18:26:39 -07:00
committed by GitHub
parent 4e3332636a
commit 0e3a2b3ba1
8 changed files with 32 additions and 24 deletions

View File

@@ -207,9 +207,9 @@ public abstract class SharedIdCardSystem : EntitySystem
var jobSuffix = string.IsNullOrWhiteSpace(id.JobTitle) ? string.Empty : $" ({id.JobTitle})";
var val = string.IsNullOrWhiteSpace(id.FullName)
? Loc.GetString("access-id-card-component-owner-name-job-title-text",
? Loc.GetString(id.NameLocId,
("jobSuffix", jobSuffix))
: Loc.GetString("access-id-card-component-owner-full-name-job-title-text",
: Loc.GetString(id.FullNameLocId,
("fullName", id.FullName),
("jobSuffix", jobSuffix));
_metaSystem.SetEntityName(uid, val);