Localize jobs (#8968)
* Localize job supervisors * Rename supervisors file * Localize job names * Remove localization for fallback job name * Use LocalizedName for Job * Fix job names case
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Content.Shared.GameTicking
|
||||
// But this is easier, and at least it isn't hardcoded.
|
||||
//TODO: Move these, they really belong in StationJobsSystem or a cvar.
|
||||
public const string FallbackOverflowJob = "Passenger";
|
||||
public const string FallbackOverflowJobName = "passenger";
|
||||
public const string FallbackOverflowJobName = "job-name-passenger";
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
|
||||
@@ -26,6 +26,9 @@ namespace Content.Shared.Roles
|
||||
[DataField("name")]
|
||||
public string Name { get; } = string.Empty;
|
||||
|
||||
[ViewVariables(VVAccess.ReadOnly)]
|
||||
public string LocalizedName => Loc.GetString(Name);
|
||||
|
||||
[DataField("joinNotifyCrew")]
|
||||
public bool JoinNotifyCrew { get; } = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user