pluralize the job name in the contra description (#34559)
* pluralize the job name in the contra description * pluralization specific to contraband descriptions
This commit is contained in:
committed by
GitHub
parent
9944076227
commit
39c1737902
@@ -56,8 +56,8 @@ public sealed class ContrabandSystem : EntitySystem
|
|||||||
using (args.PushGroup(nameof(ContrabandComponent)))
|
using (args.PushGroup(nameof(ContrabandComponent)))
|
||||||
{
|
{
|
||||||
// TODO shouldn't department prototypes have a localized name instead of just using the ID for this?
|
// TODO shouldn't department prototypes have a localized name instead of just using the ID for this?
|
||||||
var localizedDepartments = ent.Comp.AllowedDepartments.Select(p => Loc.GetString($"department-{p.Id}"));
|
var localizedDepartments = ent.Comp.AllowedDepartments.Select(p => Loc.GetString("contraband-department-plural", ("department", Loc.GetString($"department-{p.Id}"))));
|
||||||
var localizedJobs = ent.Comp.AllowedJobs.Select(p => _proto.Index(p).LocalizedName);
|
var localizedJobs = ent.Comp.AllowedJobs.Select(p => Loc.GetString("contraband-job-plural", ("job", _proto.Index(p).LocalizedName)));
|
||||||
|
|
||||||
var severity = _proto.Index(ent.Comp.Severity);
|
var severity = _proto.Index(ent.Comp.Severity);
|
||||||
if (severity.ShowDepartmentsAndJobs)
|
if (severity.ShowDepartmentsAndJobs)
|
||||||
|
|||||||
@@ -7,3 +7,6 @@ contraband-examine-text-Syndicate = [color=crimson]This item is highly illegal S
|
|||||||
|
|
||||||
contraband-examine-text-avoid-carrying-around = [color=red][italic]You probably want to avoid visibly carrying this around without a good reason.[/italic][/color]
|
contraband-examine-text-avoid-carrying-around = [color=red][italic]You probably want to avoid visibly carrying this around without a good reason.[/italic][/color]
|
||||||
contraband-examine-text-in-the-clear = [color=green][italic]You should be in the clear to visibly carry this around.[/italic][/color]
|
contraband-examine-text-in-the-clear = [color=green][italic]You should be in the clear to visibly carry this around.[/italic][/color]
|
||||||
|
|
||||||
|
contraband-department-plural = {$department}
|
||||||
|
contraband-job-plural = {MAKEPLURAL($job)}
|
||||||
|
|||||||
Reference in New Issue
Block a user