A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
content: Hebrew for the absorb-immigrants card and the objectives' names (refs #1187) (#1190)
agamrafaeli-instinct54b8578b874a
diff --git a/changelog.d/1187.md b/changelog.d/1187.mdnew file mode 100644index 000000000..b399c120f--- /dev/null+++ b/changelog.d/1187.md@@ -0,0 +1,4 @@+- Hebrew for the absorb-immigrants card and the objectives' names (refs #1187, owner on #55): the last event card+ without Hebrew gains its title_he, text_he and option text_he, and each objective in content/objectives.yaml gains a+ name_he the loader reads (EventRules checks it) with a test that it is non-empty. All agent translations, marked+ agent-checked until a native speaker reads them (#564).diff --git a/content/events/absorb_immigrants.yaml b/content/events/absorb_immigrants.yamlindex 43be333e0..879e297c2 100644--- a/content/events/absorb_immigrants.yaml+++ b/content/events/absorb_immigrants.yaml@@ -9,6 +9,12 @@id: absorb_immigrantstitle: One milliontext: 'On 20 December 1949 Israel marked Ingathering of the Exiles Day: its Jewish population had passed one million. A month earlier, with the arrival of 663 immigrants from Tripoli, the Ministry of Immigration had put the Jewish population at 1,000,000, with 321,991 newcomers since 15 May 1948.'+# For the native reviewer (#564): the Hebrew below (#1187) is an AI translation of the English, not yet read by a+# person. "יום קיבוץ הגלויות" as the day is commonly written; "משרד העלייה" for the Ministry of Immigration; the option's+# "להמשיך" as first_new_yishuv.yaml writes it.+title_he: המיליון+text_he: 'ב־20 בדצמבר 1949 ציינה ישראל את יום קיבוץ הגלויות: אוכלוסייתה היהודית עברה את המיליון. חודש קודם לכן, עם הגעתם של 663 עולים מטריפולי, הודיע משרד העלייה שהאוכלוסייה היהודית מונה 1,000,000, ומהם 321,991 עולים חדשים שהגיעו מאז ה־15 במאי 1948.'+text_he_review: agent-checkedanchor: softobjective: absorb_immigrants# The window is the founding era; the card fires only once the objective is completed (R-OBJ-003), whatever the date.@@ -17,6 +23,7 @@ to: 1957-01-01options:- id: continuetext: Continue+ text_he: להמשיךhistorical: truetags: []sources:diff --git a/content/objectives.yaml b/content/objectives.yamlindex 7e7349f46..ead8af224 100644--- a/content/objectives.yaml+++ b/content/objectives.yaml@@ -5,12 +5,17 @@objectives:- id: first_new_yishuvname: First new yishuv+ # AI translation of the English name, not yet read by a person (#564, as the cards' text_he_review).+ name_he: היישוב החדש הראשון+ name_he_review: agent-checkedcompletes_when: { site_built: mefalsim } # sites.yaml; built by a halutz group's Build yishuv (R-SITE-001 to R-SITE-003)# Mefalsim's founding, the ceremony of 12 June 1949 (sites.yaml has the sources). The loader refuses any other date.reference_date: 1949-06-12card: first_new_yishuv # content/events/first_new_yishuv.yaml- id: absorb_immigrantsname: Absorb the immigrants+ name_he: קליטת העולים+ name_he_review: agent-checked# R-OBJ-004 (D-B4; owner, 18 October 2026, #738, option (a)): once the Jewish population has reached the milestone,# the cities' overflow is at most a share of the people they house and their employed at least a share of civilians.completes_when:diff --git a/sim/Statecraft.Sim.Tests/ObjectivesTests.cs b/sim/Statecraft.Sim.Tests/ObjectivesTests.csindex 9086312ce..642982146 100644--- a/sim/Statecraft.Sim.Tests/ObjectivesTests.cs+++ b/sim/Statecraft.Sim.Tests/ObjectivesTests.cs@@ -459,4 +459,25 @@ eras:Assert.Equal(field, ex.Field);Assert.Contains(message, ex.Message);}+ /// <summary>#1187: an objective's Hebrew name loads beside the English, agent-checked until a native read (#564).</summary>+ [Fact]+ public void TheHebrewNameLoadsBesideTheEnglish()+ {+ var c = Load(true, new Dictionary<string, string> { ["objectives.yaml"] = ObjectivesYaml.Replace("name: First goal,", "name: First goal, name_he: \u05de\u05d8\u05e8\u05d4 \u05e8\u05d0\u05e9\u05d5\u05e0\u05d4, name_he_review: agent-checked,") });+ var o = c.Objectives.Single(x => x.Id == "first_goal");+ Assert.Equal(("First goal", "\u05de\u05d8\u05e8\u05d4 \u05e8\u05d0\u05e9\u05d5\u05e0\u05d4", HebrewReview.AgentChecked, true), (o.Name, o.NameHe, o.NameHeReview, o.NameHeReviewGiven));+ }++ /// <summary>#1187: the Hebrew name is Hebrew letters, and the review flag is agent-checked or absent.</summary>+ [Theory]+ [InlineData("name_he: First goal", "name_he", "Hebrew letters")]+ [InlineData("name_he: \u05de\u05d8\u05e8\u05d4 \u05e8\u05d0\u05e9\u05d5\u05e0\u05d4, name_he_review: reviewed", "name_he_review", "agent-checked")]+ [InlineData("name_he_review: agent-checked", "name_he", "required")]+ public void BadHebrewNameIsAContentError(string insert, string field, string message)+ {+ var ex = Assert.Throws<ContentException>(() => Load(true, new Dictionary<string, string> { ["objectives.yaml"] = ObjectivesYaml.Replace("name: First goal,", $"name: First goal, {insert},") }));+ Assert.Equal("objectives.yaml", ex.File);+ Assert.Equal($"objectives[first_goal].{field}", ex.Field);+ Assert.Contains(message, ex.Message);+ }}diff --git a/sim/Statecraft.Sim.Tests/RealContentTests.cs b/sim/Statecraft.Sim.Tests/RealContentTests.csindex 6873f965d..aee8910c2 100644--- a/sim/Statecraft.Sim.Tests/RealContentTests.cs+++ b/sim/Statecraft.Sim.Tests/RealContentTests.cs@@ -440,4 +440,15 @@ public class RealContentTestsAssert.DoesNotContain("hula_drainage", s.FiredEvents); // R-SWAMP-002: it waits for works at the Hula, and this run starts noneAssert.Equal(1.0, s.Policies["maabarot"]); // the historical choice opens transit camps}+ /// <summary>#1187: every objective's player-facing name has its Hebrew (agent-checked until a native read, #564),+ /// and the absorb-immigrants card - the last of the 33 without Hebrew - has its title, text and option in Hebrew.</summary>+ [Fact]+ public void ObjectivesAndTheAbsorbCardHaveTheirHebrew()+ {+ Assert.All(C.Objectives, o => Assert.False(string.IsNullOrEmpty(o.NameHe), $"objectives[{o.Id}].name_he"));+ var card = C.Events.Single(e => e.Id == "absorb_immigrants");+ Assert.False(string.IsNullOrEmpty(card.TitleHe), "absorb_immigrants.title_he");+ Assert.False(string.IsNullOrEmpty(card.TextHe), "absorb_immigrants.text_he");+ Assert.All(card.Options, o => Assert.False(string.IsNullOrEmpty(o.TextHe), $"absorb_immigrants.options[{o.Id}].text_he"));+ }}diff --git a/sim/Statecraft.Sim/Content.cs b/sim/Statecraft.Sim/Content.csindex c4f8df35d..8003fa785 100644--- a/sim/Statecraft.Sim/Content.cs+++ b/sim/Statecraft.Sim/Content.cs@@ -1014,6 +1014,14 @@ namespace Statecraft.Simpublic string Id { get; set; } = "";/// <summary>The name the player reads (in the Why list).</summary>public string Name { get; set; } = "";+ /// <summary>The Hebrew name (#1187), an agent translation of <see cref="Name"/> while it waits for a native+ /// speaker's review (#564); empty means none yet (the UI keeps the English).</summary>+ public string NameHe { get; set; } = "";+ /// <summary>"agent-checked" while <see cref="NameHe"/> waits for a native speaker's review (#564); empty once reviewed.</summary>+ public string NameHeReview { get => nameHeReview ?? ""; set => nameHeReview = value ?? ""; }+ /// <summary>True when the file has the key at all, even blank: a blank flag is an error, not a review.</summary>+ [YamlIgnore] public bool NameHeReviewGiven => nameHeReview != null;+ string? nameHeReview;/// <summary>What completes it, checked at the end of every GDD turn (R-OBJ-001).</summary>public ObjectiveCondition? CompletesWhen { get; set; }/// <summary>The date the real event happened: completing earlier earns the timing bonus (R-OBJ-002).</summary>diff --git a/sim/Statecraft.Sim/EventRules.cs b/sim/Statecraft.Sim/EventRules.csindex 7e82e0eb3..0ec6e7a4e 100644--- a/sim/Statecraft.Sim/EventRules.cs+++ b/sim/Statecraft.Sim/EventRules.cs@@ -180,6 +180,16 @@ namespace Statecraft.Simif (!Offices.OfficeId.IsMatch(o.Id)) throw new ContentException(file, F("id"), ContentLoader.IdRule);if (!seen.Add(o.Id)) throw new ContentException(file, F("id"), "duplicate id");ContentLoader.Named(file, F("name"), o.Name);+ // The Hebrew name (#1187): an agent translation of the English until a native speaker reads it (#564),+ // so it needs no sources of its own; the flag is agent-checked or absent, and the name is Hebrew letters.+ if (o.NameHeReviewGiven && o.NameHeReview != HebrewReview.AgentChecked)+ throw new ContentException(file, F("name_he_review"), $"must be {HebrewReview.AgentChecked} (pending a native speaker's review, #564), or left out once a person has reviewed the name");+ if (o.NameHe == "")+ {+ if (o.NameHeReviewGiven) throw new ContentException(file, F("name_he"), "required: name_he_review is set but the name is empty");+ }+ else if (!o.NameHe.Any(ch => ch >= '\u05D0' && ch <= '\u05EA'))+ throw new ContentException(file, F("name_he"), "must be Hebrew, in Hebrew letters");if (o.CompletesWhen == null || (o.CompletesWhen.SiteBuilt == "") == (o.CompletesWhen.Absorbed == null))throw new ContentException(file, F("completes_when"), "required, exactly one of: { site_built: <site id> }, { absorbed: { ... } }");if (o.CompletesWhen.Absorbed is AbsorbCondition a)