A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
Hebrew refusals, batch 2: workers, craftsmen, pioneers, pioneer work, budget checks (Refs #2707) (#2911)
Beri3848739d711d
diff --git a/changelog.d/2707-refusals-batch-2.md b/changelog.d/2707-refusals-batch-2.mdnew file mode 100644index 000000000..59b27c065--- /dev/null+++ b/changelog.d/2707-refusals-batch-2.md@@ -0,0 +1,5 @@+### Fixed++- In Hebrew, more refusals now read in Hebrew: the workers' role and count, returning and reassigning craftsmen and+ pioneers, pioneer work (not a halutz group, no such work or site, nothing being built), cancelling a city project or a+ training group, the budget screen's checks, and a road or railway segment that does not exist. Before, they showed in English.diff --git a/sim/Statecraft.Sim/Cities.cs b/sim/Statecraft.Sim/Cities.csindex bc9888dee..dbacce2cb 100644--- a/sim/Statecraft.Sim/Cities.cs+++ b/sim/Statecraft.Sim/Cities.cs@@ -78,6 +78,10 @@ namespace Statecraft.Simif (housing != null) s.Indicators[housing.Id] = EffectsSystem.Level(c, s, housing); // R-HOUSE-004 from the first day}+ /// <summary><see cref="Assign"/>'s refusals that name no city (#2707); the UI maps each to its own string (SimBridge.ReasonText).+ /// The English is the reason a turn's Rejected list and a save carry, so it does not change. Workshops.Staff shares RefusedNoRole.</summary>+ public const string RefusedNoRole = "There is no such role", RefusedNegativeWorkers = "The number of workers cannot be negative";+// #2530: a count of 1 names the singular, as the UI's helper does.static string Groups(int n) => n == 1 ? "1 group" : FormattableString.Invariant($"{n} groups");@@ -93,8 +97,8 @@ namespace Statecraft.Sim// R-CITY-011 (#1700): under gdd-0.3 the "build" role puts builders on the city's projects being built.if (role == Projects.BuildRole && c.Ruleset == SaveGame.Gdd03Ruleset) return Projects.AssignBuilders(c, s, city, count, why);// Craftsmen fill ordinary job slots (Q-CRAFT-2, R-CRAFT-002), so "job" stays the only role.- if (role != "job") return "There is no such role";- if (count < 0) return "The number of workers cannot be negative";+ if (role != "job") return RefusedNoRole;+ if (count < 0) return RefusedNegativeWorkers;if (count > MaxWorkers(s, x))return count > x.JobSlots? FormattableString.Invariant($"{PlayerText.Settlement(c, city)} has {x.JobSlots} jobs")diff --git a/sim/Statecraft.Sim/Corridors.cs b/sim/Statecraft.Sim/Corridors.csindex 0793d0802..cb3ace3fd 100644--- a/sim/Statecraft.Sim/Corridors.cs+++ b/sim/Statecraft.Sim/Corridors.cs@@ -50,6 +50,10 @@ namespace Statecraft.Simreturn null;}+ /// <summary>The refusal of a corridor segment that does not exist (#2707); the UI maps it to its own string (SimBridge.ReasonText).+ /// The English is what a Rejected list and a save carry, so it does not change.</summary>+ public const string RefusedNoSegment = "There is no such corridor segment";+/// <summary>R-COR-001: an idle halutz unit (Projects.Start has checked the unit) starts an unbuilt, unclaimed segment/// <paramref name="target"/> ("corridor:N", N from 1) of a corridor whose kind <paramref name="action"/> builds. The/// Treasury pays the kind's cost now and borrows what it lacks. Refused, state untouched, for an unknown corridor or@@ -60,7 +64,7 @@ namespace Statecraft.Simvar def = colon < 0 ? null : c.Corridors.FirstOrDefault(x => x.Id == target.Substring(0, colon));if (def == null || !int.TryParse(target.Substring(colon + 1), NumberStyles.None, CultureInfo.InvariantCulture, out var n)|| n < 1 || n > def.Segments.Count)- return "There is no such corridor segment";+ return RefusedNoSegment;var index = n - 1;var name = SegmentName(def, index);var refusal = CheckStart(c, s, action, def, index); // R-CTRL-020 (Q-DEP-7 (c))diff --git a/sim/Statecraft.Sim/EconomySystem.cs b/sim/Statecraft.Sim/EconomySystem.csindex 417cab0fd..52871e3e1 100644--- a/sim/Statecraft.Sim/EconomySystem.cs+++ b/sim/Statecraft.Sim/EconomySystem.cs@@ -205,18 +205,24 @@ namespace Statecraft.Sim}}+ /// <summary><see cref="Allocate"/>'s refusals (#2707); the UI maps each to its own string (SimBridge.ReasonText). The English is what a+ /// Rejected list and a save carry, so it does not change.</summary>+ public const string RefusedBudgetRequired = "Budget shares are required", RefusedBudgetMinistry = "The budget names a ministry that does not exist in this game",+ RefusedBudgetFinite = "Budget shares must be finite numbers", RefusedBudgetEveryMinistry = "The budget must give a share to every ministry, and only to them",+ RefusedBudgetSum = "Budget shares must sum to 1", RefusedBudgetNegative = "Budget shares cannot be negative";+/// <summary>Returns null on success, or the reason the allocation was rejected.</summary>public static string? Allocate(Content c, GameState s, Dictionary<string, double> shares){- if (shares == null) return "Budget shares are required";+ if (shares == null) return RefusedBudgetRequired;var unknown = shares.Keys.OrderBy(k => k, StringComparer.Ordinal).FirstOrDefault(k => c.Offices.All(o => o.Id != k) && !c.Rules.BudgetStart.ContainsKey(k)); // ordinal: play and replay name the same office- if (unknown != null) return "The budget names a ministry that does not exist in this game";- if (shares.Values.Any(v => double.IsNaN(v) || double.IsInfinity(v))) return "Budget shares must be finite numbers";+ if (unknown != null) return RefusedBudgetMinistry;+ if (shares.Values.Any(v => double.IsNaN(v) || double.IsInfinity(v))) return RefusedBudgetFinite;if (!new HashSet<string>(shares.Keys).SetEquals(c.Rules.BudgetStart.Keys))- return "The budget must give a share to every ministry, and only to them";+ return RefusedBudgetEveryMinistry;// Summed in key order, not dictionary order, so play and replay agree to the bit whatever order the caller built the map in.- if (Math.Abs(shares.OrderBy(kv => kv.Key, StringComparer.Ordinal).Sum(kv => kv.Value) - 1.0) > 1e-6) return "Budget shares must sum to 1";- if (shares.Values.Any(v => v < 0)) return "Budget shares cannot be negative";+ if (Math.Abs(shares.OrderBy(kv => kv.Key, StringComparer.Ordinal).Sum(kv => kv.Value) - 1.0) > 1e-6) return RefusedBudgetSum;+ if (shares.Values.Any(v => v < 0)) return RefusedBudgetNegative;s.Budget = new Dictionary<string, double>(shares);return null;}diff --git a/sim/Statecraft.Sim/Orders.cs b/sim/Statecraft.Sim/Orders.csindex 7bbf76756..5f35ced79 100644--- a/sim/Statecraft.Sim/Orders.cs+++ b/sim/Statecraft.Sim/Orders.cs@@ -32,6 +32,8 @@ namespace Statecraft.Sim/// operation card's go-to not carried out because the unit is the last Israeli unit on an occupied place/// (SettlementControl.LastGarrison), at the order or on a later turn of its march. Listed like <see cref="RefusedCardOrder"/>.</summary>public const string RefusedLastGarrison = "The unit stays: it is the last Israeli unit holding an occupied place";+ /// <summary>#2707: an order other than a go-to or an attack that carries a hex (Simulation.Execute); the UI maps it to its own string.</summary>+ public const string RefusedNamesNoHex = "That order names no hex";/// <summary>The player's side (units_1948.yaml's id). Only the player's military units take orders.</summary>const string PlayerSide = "israel";diff --git a/sim/Statecraft.Sim/Projects.cs b/sim/Statecraft.Sim/Projects.csindex b824d03b6..6738a528e 100644--- a/sim/Statecraft.Sim/Projects.cs+++ b/sim/Statecraft.Sim/Projects.cs@@ -123,6 +123,13 @@ namespace Statecraft.Sim/// (D-D6).</summary>public static bool IsBusy(GameState s, int unit) => s.Sites.Values.Any(w => w.BuiltOn == null && w.Unit == unit) || Corridors.WorkOf(s, unit) != null;+ /// <summary><see cref="Start"/>'s and <see cref="Stop"/>'s refusals that name nothing (#2707), and CancelCity's; the unit one is+ /// Orders.RefusedNoUnit. The UI maps each to its own string (SimBridge.ReasonText); the English is what a Rejected list and a+ /// save carry, so it does not change.</summary>+ public const string RefusedNotHalutz = "Only halutzim do pioneer work", RefusedNoWork = "There is no such pioneer work",+ RefusedNoSite = "There is no such site", RefusedNotBuilding = "That group of halutzim is not building anything",+ RefusedNoCityProject = "There is no such city project";+/// <summary>R-SITE-001: an idle halutz unit starts <paramref name="action"/> (build_yishuv) at a yishuv site that has no/// record. The Treasury pays build_yishuv_cost now and borrows what it lacks; the site gets build_yishuv_turns to go; the unit/// does not move. Refused, state untouched, for an unknown unit, a unit that is not a halutz or is busy, an unknown@@ -135,16 +142,16 @@ namespace Statecraft.Simpublic static string? Start(Content c, GameState s, int unit, string action, string site, List<Cause> why){if (!s.Units.TryGetValue(unit, out var u)) return "There is no such unit";- if (!IsPioneer(u.Type)) return "Only halutzim do pioneer work";+ if (!IsPioneer(u.Type)) return RefusedNotHalutz;var busy = s.Sites.Values.FirstOrDefault(w => w.BuiltOn == null && w.Unit == unit);if (busy != null) return $"That group of halutzim is already building {PlayerText.Site(c, busy.Site)}";if (Corridors.WorkOf(s, unit) is var (cw, ci))return $"That group of halutzim is already building {Corridors.SegmentName(c.Corridors.First(x => x.Id == cw.Id), ci)}";// Phase 4 PR 2 (#786): build_road and build_rail take a corridor segment, "corridor:N" (R-COR-001).if (Corridors.IsAction(action)) return Corridors.Start(c, s, unit, action, site, why);- if (action != BuildYishuv && action != BuildCamp && action != PlowFields && action != DrySwamp) return "There is no such pioneer work";+ if (action != BuildYishuv && action != BuildCamp && action != PlowFields && action != DrySwamp) return RefusedNoWork;var place = c.Sites.FirstOrDefault(x => x.Id == site);- if (place == null) return "There is no such site";+ if (place == null) return RefusedNoSite;var camp = action == BuildCamp;var plow = action == PlowFields;var drain = action == DrySwamp;@@ -202,7 +209,7 @@ namespace Statecraft.Sim{if (!s.Units.ContainsKey(unit)) return "There is no such unit";var work = s.Sites.Values.FirstOrDefault(w => w.BuiltOn == null && w.Unit == unit);- if (work == null) return Corridors.Stop(c, s, unit, why) ? null : "That group of halutzim is not building anything";+ if (work == null) return Corridors.Stop(c, s, unit, why) ? null : RefusedNotBuilding;s.Sites.Remove(work.Site);why.Add(new Cause("map", work.Site, -1, $"{PlayerText.Site(c, work.Site)}: the halutzim stopped building; the Money spent is not returned", key: CauseKeys.SiteCancelled));return null;@@ -404,7 +411,7 @@ namespace Statecraft.Sim/// exist or is built. Step has already refused it in the legacy loop.</summary>public static string? CancelCity(Content c, GameState s, int project, List<Cause> why){- if (!s.CityProjects.TryGetValue(project, out var p)) return "There is no such city project";+ if (!s.CityProjects.TryGetValue(project, out var p)) return RefusedNoCityProject;var k = c.ProjectKinds.First(x => x.Id == p.Kind);if (p.BuiltOn != null) return $"{PlayerText.Capitalised(k.Name)} is already built";s.CityProjects.Remove(project);@@ -425,7 +432,7 @@ namespace Statecraft.Sim/// people. Cities.Assign has already refused an unknown city.</summary>internal static string? AssignBuilders(Content c, GameState s, string city, int count, List<Cause> why){- if (count < 0) return "The number of workers cannot be negative";+ if (count < 0) return Cities.RefusedNegativeWorkers;var x = s.Cities[city];var name = PlayerText.Settlement(c, city);var building = s.CityProjects.Values.Where(p => p.City == city && p.BuiltOn == null).OrderBy(p => p.Id).ToList();diff --git a/sim/Statecraft.Sim/Qualification.cs b/sim/Statecraft.Sim/Qualification.csindex 81dae4178..f69f12b8f 100644--- a/sim/Statecraft.Sim/Qualification.cs+++ b/sim/Statecraft.Sim/Qualification.cs@@ -60,6 +60,13 @@ namespace Statecraft.Sim/// the trained role without R-TRAIN-001's training.</summary>public static class Qualification{+ /// <summary>The refusals of the return and reassign orders and of the pioneer's return (#2707); the unit and city ones are+ /// Orders.RefusedNoUnit and Training.RefusedNoCity. The UI maps each to its own string (SimBridge.ReasonText); the English+ /// is what a Rejected list and a save carry, so it does not change.</summary>+ public const string RefusedReturnCount = "Return at least one group", RefusedReassignCount = "Reassign at least one group",+ RefusedNotPioneer = "Only a pioneer unit takes that order", RefusedPioneerBusy = "That unit is at work; stop the work first",+ RefusedNoQualification = "There is no such qualification";+public const string ReturnCraftsmenKind = "return_craftsmen";public const string ReassignCraftsmenKind = "reassign_craftsmen";public const string ReassignPioneersKind = "reassign_pioneers";@@ -74,7 +81,7 @@ namespace Statecraft.Sim{PopulationLedger.RefuseAggregate(s);if (!s.Cities.TryGetValue(city, out var x)) return "There is no such city";- if (count < 1) return "Return at least one group";+ if (count < 1) return RefusedReturnCount;var name = PlayerText.Settlement(c, city);if (count > x.Craftsmen) return FormattableString.Invariant($"{name} has {x.Craftsmen} craftsmen");s.Cities[city] = x.WithCraftsmen(x.Craftsmen - count).WithCounts(x.Civilians + count, x.Employed, x.Refugees)@@ -91,7 +98,7 @@ namespace Statecraft.Sim{PopulationLedger.RefuseAggregate(s);if (!s.Cities.TryGetValue(city, out var x)) return "There is no such city";- if (count < 1) return "Reassign at least one group";+ if (count < 1) return RefusedReassignCount;var name = PlayerText.Settlement(c, city);if (count > x.Qualified.Craftsmen) return FormattableString.Invariant($"{name} has {x.Qualified.Craftsmen} qualified craftsmen");var idle = Training.Idle(s, x); // R-ARMS-005, R-CITY-011: as Train and ReassignPioneers count it@@ -108,8 +115,8 @@ namespace Statecraft.Simpublic static string? CheckReturn(GameState s, int unitId){if (!s.Units.TryGetValue(unitId, out var u)) return "There is no such unit";- if (!Projects.IsPioneer(u.Type)) return "Only a pioneer unit takes that order";- if (Projects.IsBusy(s, unitId)) return "That unit is at work; stop the work first";+ if (!Projects.IsPioneer(u.Type)) return RefusedNotPioneer;+ if (Projects.IsBusy(s, unitId)) return RefusedPioneerBusy;return null;}@@ -138,8 +145,8 @@ namespace Statecraft.SimPopulationLedger.RefuseAggregate(s);if (!s.Cities.TryGetValue(city, out var x)) return "There is no such city";var veteran = track == Projects.VeteranType;- if (!veteran && track != "halutz") return "There is no such qualification";- if (count < 1) return "Reassign at least one group";+ if (!veteran && track != "halutz") return RefusedNoQualification;+ if (count < 1) return RefusedReassignCount;var name = PlayerText.Settlement(c, city);var have = veteran ? x.Qualified.Veterans : x.Qualified.Halutzim.Count;if (count > have) return FormattableString.Invariant($"{name} has {have} qualified {(veteran ? "veteran pioneers" : "halutzim")}");diff --git a/sim/Statecraft.Sim/Simulation.cs b/sim/Statecraft.Sim/Simulation.csindex d0270d6a4..369c38d74 100644--- a/sim/Statecraft.Sim/Simulation.cs+++ b/sim/Statecraft.Sim/Simulation.cs@@ -255,7 +255,7 @@ namespace Statecraft.Simcase UnitOrder o:if (o.Order == Movement.GoTo) return Movement.GiveGoTo(c, s, o.Unit, o.Q, o.R, spent, why);if (o.Order == Combat.Attack) return Combat.Strike(c, s, o.Unit, o.Q, o.R, spent, attacked, why);- if (o.Q != null || o.R != null) return "That order names no hex";+ if (o.Q != null || o.R != null) return Orders.RefusedNamesNoHex;if (o.Order == Qualification.ReturnOrder) return Qualification.Return(c, s, o.Unit, why);return o.Order == Demobilization.SendHome? Demobilization.Give(c, s, o.Unit, attacked, why)diff --git a/sim/Statecraft.Sim/Training.cs b/sim/Statecraft.Sim/Training.csindex 4c1bb99ef..38c491e4e 100644--- a/sim/Statecraft.Sim/Training.cs+++ b/sim/Statecraft.Sim/Training.cs@@ -27,6 +27,7 @@ namespace Statecraft.Sim/// The UI maps each to its own string (SimBridge.ReasonText). The English is the reason a turn's Rejected list and a save/// carry, so it does not change; one with {0} is a format, its values (a unit id, a settlement's or course's name, a/// number) filled in invariantly. A missing facility has one refusal per facility.</summary>+ public const string RefusedNoCohort = "There is no such training group"; // #2707: Cancel'spublic const string RefusedNoCity = "There is no such city";public const string RefusedNotInCity = "Unit {0} is not in {1}";public const string RefusedNoCourse = "Unit {0} cannot take replacements";@@ -190,7 +191,7 @@ namespace Statecraft.Simpublic static string? Cancel(Content c, GameState s, int cohort, List<Cause> why){PopulationLedger.RefuseAggregate(s);- if (!s.Cohorts.TryGetValue(cohort, out var k)) return "There is no such training group";+ if (!s.Cohorts.TryGetValue(cohort, out var k)) return RefusedNoCohort;var x = s.Cities[k.City];s.Cities[k.City] = x.WithCounts(x.Civilians + k.Count, x.Employed, x.Refugees);s.Cohorts.Remove(cohort);diff --git a/sim/Statecraft.Sim/Workshops.cs b/sim/Statecraft.Sim/Workshops.csindex 3ce577cdb..080c6fcac 100644--- a/sim/Statecraft.Sim/Workshops.cs+++ b/sim/Statecraft.Sim/Workshops.cs@@ -64,9 +64,9 @@ namespace Statecraft.Sim/// accepts is still accepted whichever of them runs first.</summary>public static string? Check(Content c, GameState s, string city, int count, IEnumerable<Command> pending){- if (!s.Cities.TryGetValue(city, out var x)) return "There is no such city";- if (c.Ruleset != SaveGame.Gdd03Ruleset) return "There is no such role";- if (count < 0) return "The number of workers cannot be negative";+ if (!s.Cities.TryGetValue(city, out var x)) return Training.RefusedNoCity;+ if (c.Ruleset != SaveGame.Gdd03Ruleset) return Cities.RefusedNoRole;+ if (count < 0) return Cities.RefusedNegativeWorkers;var name = PlayerText.Settlement(c, city);var built = Built(c, s, city);if (count > built) return built == 1 ? Refused(RefusedBuiltOne, name) : Refused(RefusedBuilt, name, built);diff --git a/unity/Assets/Scripts/UI/SimBridge.cs b/unity/Assets/Scripts/UI/SimBridge.csindex 3f0875b63..7fedf3b6d 100644--- a/unity/Assets/Scripts/UI/SimBridge.cs+++ b/unity/Assets/Scripts/UI/SimBridge.cs@@ -288,6 +288,28 @@ namespace Statecraft.Game.UI[Pools.RefusedCount] = "arms.refused_count",[SecuritySystem.RefusedMobilization] = "defence.refused_mobilization",[Demobilization.RefusedNoArmistice] = "unit.send_home_refused.no_armistice",+ // #2707, batch 2: the workers, craftsmen and pioneers orders, pioneer work, a city project cancel and a training cancel.+ [Cities.RefusedNoRole] = "city.assign_refused.no_role",+ [Cities.RefusedNegativeWorkers] = "city.assign_refused.negative",+ [Qualification.RefusedReturnCount] = "city.qualification_refused.return_count",+ [Qualification.RefusedReassignCount] = "city.qualification_refused.reassign_count",+ [Qualification.RefusedNoQualification] = "city.qualification_refused.no_qualification",+ [Qualification.RefusedNotPioneer] = "unit.order_refused.not_pioneer",+ [Qualification.RefusedPioneerBusy] = "unit.order_refused.pioneer_busy",+ [Training.RefusedNoCohort] = "training.cancel_refused.no_group",+ [Projects.RefusedNotHalutz] = "site.refused.not_halutz",+ [Projects.RefusedNoWork] = "site.refused.no_work",+ [Projects.RefusedNoSite] = "site.refused.no_site",+ [Projects.RefusedNotBuilding] = "site.refused.not_building",+ [Projects.RefusedNoCityProject] = "city.project_reason.no_project",+ [Corridors.RefusedNoSegment] = "corridor.refused.no_segment",+ [EconomySystem.RefusedBudgetRequired] = "budget.refused.required",+ [EconomySystem.RefusedBudgetMinistry] = "budget.refused.ministry",+ [EconomySystem.RefusedBudgetFinite] = "budget.refused.finite",+ [EconomySystem.RefusedBudgetEveryMinistry] = "budget.refused.every_ministry",+ [EconomySystem.RefusedBudgetSum] = "budget.refused.sum",+ [EconomySystem.RefusedBudgetNegative] = "budget.refused.negative",+ [Orders.RefusedNamesNoHex] = "unit.order_refused.names_no_hex",};/// <summary>The sim's refusals that carry values (#2072: Combat.Check's Arms, Training.Reinforce's unit, settlement,diff --git a/unity/Assets/UI/strings.en.yaml b/unity/Assets/UI/strings.en.yamlindex 0dc4373c2..8127cd683 100644--- a/unity/Assets/UI/strings.en.yaml+++ b/unity/Assets/UI/strings.en.yaml@@ -1108,6 +1108,29 @@ unit.move_refused.full: "That hex already holds {0} units of that side, the mostunit.send_home_refused.no_armistice: "No armistice is signed"defence.refused_mobilization: "Mobilization must be between 0 and 1"+# #2707, batch 2: the sim's own text, word for word.+city.assign_refused.no_role: "There is no such role"+city.assign_refused.negative: "The number of workers cannot be negative"+city.qualification_refused.return_count: "Return at least one group"+city.qualification_refused.reassign_count: "Reassign at least one group"+city.qualification_refused.no_qualification: "There is no such qualification"+unit.order_refused.not_pioneer: "Only a pioneer unit takes that order"+unit.order_refused.pioneer_busy: "That unit is at work; stop the work first"+training.cancel_refused.no_group: "There is no such training group"+site.refused.not_halutz: "Only halutzim do pioneer work"+site.refused.no_work: "There is no such pioneer work"+site.refused.no_site: "There is no such site"+site.refused.not_building: "That group of halutzim is not building anything"+city.project_reason.no_project: "There is no such city project"+corridor.refused.no_segment: "There is no such corridor segment"+budget.refused.required: "Budget shares are required"+budget.refused.ministry: "The budget names a ministry that does not exist in this game"+budget.refused.finite: "Budget shares must be finite numbers"+budget.refused.every_ministry: "The budget must give a share to every ministry, and only to them"+budget.refused.sum: "Budget shares must sum to 1"+budget.refused.negative: "Budget shares cannot be negative"+unit.order_refused.names_no_hex: "That order names no hex"+# #2072 Attack and Reinforce refusals (Combat.Check, Training.Reinforce), shown on the unit card and in the toast. Each# English line is the sim's own text; {0}, {1}... are the values it fills in.unit.attack_refused.no_hex: "An attack names a hex"diff --git a/unity/Assets/UI/strings.he.yaml b/unity/Assets/UI/strings.he.yamlindex a8f1e7462..658610872 100644--- a/unity/Assets/UI/strings.he.yaml+++ b/unity/Assets/UI/strings.he.yaml@@ -1342,6 +1342,29 @@ unit.move_refused.full: "במשבצת כבר יש {0} יחידות של הצדunit.send_home_refused.no_armistice: "עדיין לא נחתם הסכם שביתת נשק"defence.refused_mobilization: "שיעור גיוס המילואים חייב להיות בין 0 ל־1"+# #2707, batch 2: workers, craftsmen and pioneers, pioneer work, a city project and a training group. Agent-drafted Hebrew; for the native read in #564.+city.assign_refused.no_role: "אין תפקיד כזה"+city.assign_refused.negative: "מספר העובדים לא יכול להיות שלילי"+city.qualification_refused.return_count: "יש להחזיר לפחות קבוצה אחת"+city.qualification_refused.reassign_count: "יש לשבץ מחדש לפחות קבוצה אחת"+city.qualification_refused.no_qualification: "אין הכשרה כזאת"+unit.order_refused.not_pioneer: "הפקודה הזאת מתאימה רק ליחידת חלוצים"+unit.order_refused.pioneer_busy: "היחידה עסוקה בעבודה; יש לעצור את העבודה קודם"+training.cancel_refused.no_group: "אין קבוצת אימון כזאת"+site.refused.not_halutz: "עבודה חלוצית נעשית רק בידי חלוצים"+site.refused.no_work: "אין עבודה חלוצית כזאת"+site.refused.no_site: "אין אתר כזה"+site.refused.not_building: "קבוצת החלוצים הזאת אינה בונה דבר"+city.project_reason.no_project: "אין מיזם עירוני כזה"+corridor.refused.no_segment: "אין קטע כזה של כביש או מסילה"+budget.refused.required: "יש לספק חלוקת תקציב"+budget.refused.ministry: "התקציב מציין משרד שאינו קיים במשחק הזה"+budget.refused.finite: "חלקי התקציב חייבים להיות מספרים סופיים"+budget.refused.every_ministry: "התקציב חייב לתת חלק לכל משרד, ורק להם"+budget.refused.sum: "סכום חלקי התקציב חייב להיות 1"+budget.refused.negative: "חלק בתקציב לא יכול להיות שלילי"+unit.order_refused.names_no_hex: "הפקודה הזאת אינה מציינת משבצת"+# #2072 Attack and Reinforce refusals (Combat.Check, Training.Reinforce), shown on the unit card and in the toast. A# settlement in {0}/{1} opens the line as its label or follows a prefix, so no verb agrees with its gender (HE-15).# Approved by Beri, a native speaker, on #2072 (31 Oct 2026), all 20 lines as written. For the native reviewer (#564).