A Civilization-style strategy game about governing Israel from 15 May 1948. Real ministers, real map, every fact sourced. Unity + deterministic C# sim.
ui: refusals without raw ids, sentence-case labels, one gershayim (refs #622) (#630)
Eyal Golan040e31edbaf6
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 082d40490..b3065a1ad 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -508,6 +508,12 @@ adds a line under **Unreleased**; CI's `Changelog` job checks this (see `CONTRIBIt decodes to the same bytes, so the terrain is unchanged (#44).### Fixed+- UI text from Jeremy Hoover's review (refs #622): a refused order no longer shows a content id or an exception's+ message after "Not done:" ("Unknown policy", "The turn could not run", in English and Hebrew); both stay in the log.+ The six Title Case labels are in sentence case ("Public support", "International standing", "Foreign currency", "End+ turn", "New game"), and the lines that name the two buttons follow them. Hebrew acronyms in content use the gershayim+ character the strings use (״, U+05F4: מפא״י, רמטכ״ל, שז״ר). The strings.en.yaml header now says which strings format a+ date. The content hash moves; no golden does.- Content: 101 Squadron's aircraft notes in `content/map/units_1948.yaml` (refs #607). The Avia S-199 note now gives thesourced arrivals (one on 20 May 1948, one each on 21 and 22 May, the fourth lost in a C-46 crash dated 23 or 23-24 May,sources disagree) instead of "the first four arrived on 20 May"; the Spitfire note names the two sources for thediff --git a/content/offices.yaml b/content/offices.yamlindex f96a43dfa..462aca9ec 100644--- a/content/offices.yaml+++ b/content/offices.yaml@@ -5,7 +5,7 @@ offices:# where a woman held the office (owner, 2026-10-14). The English titles stay the player's default. Left empty where no# source gives a Hebrew title: rationing_minister, a game construct (the office passes from Rationing and Supply to# Agriculture and then Trade). Open owner questions: the Trade (order, and the Knesset's "התעשיה") and War Victims- # wordings, and whether the Chief of Staff adds "של צה"ל" (PR #558 body).+ # wordings, and whether the Chief of Staff adds "של צה״ל" (PR #558 body).# title_he_review / title_he_f_review: agent-checked marks a title an AI agent checked against its sources and no# person has read yet (CONTENT_POLICY section 2, rule 6; owner, 2026-10-15). A native speaker reviews it (#564) and# then removes the flag; the row's own status covers the English facts.@@ -62,7 +62,7 @@ offices:# Before the state the chief of staff led the Haganah (Yaakov Dori, from 1 June 1947), so the same post is split at the# state's founding (issue #80; sources on Dori's two terms in people.yaml). 14 May 1948 is the design's date; the IDF Ordinance# followed on 26 May 1948. Do not "correct" it to 26 May in a fact-check: it would move the goldens.- - { id: haganah_chief_of_staff, title: Haganah Chief of the General Staff, title_he: 'רמטכ"ל ההגנה', title_he_review: agent-checked, title_he_sources: [{ url: "https://he.wikipedia.org/wiki/יעקב_דורי", checked: 2026-10-14 }], until: 1948-05-14 }+ - { id: haganah_chief_of_staff, title: Haganah Chief of the General Staff, title_he: 'רמטכ״ל ההגנה', title_he_review: agent-checked, title_he_sources: [{ url: "https://he.wikipedia.org/wiki/יעקב_דורי", checked: 2026-10-14 }], until: 1948-05-14 }- { id: chief_of_staff, title: IDF Chief of the General Staff, title_he: "ראש המטה הכללי", title_he_review: agent-checked, title_he_sources: [{ url: "https://he.wikipedia.org/wiki/ראש_המטה_הכללי", checked: 2026-10-14 }], from: 1948-05-14 }# The role first appeared in the Third Government (Peretz Naphtali, 8 October 1951): he.wiki "שר בלי תיק"; the# Provisional, First and Second Governments' tables on en.wiki list none (checked 2026-10-11).diff --git a/content/parties.yaml b/content/parties.yamlindex 228a6efb5..59fe5904c 100644--- a/content/parties.yaml+++ b/content/parties.yaml@@ -2,13 +2,13 @@# Names as listed in the Provisional State Council, 1949 and 1951 election sources (see legislatures.yaml).parties:# Hebrew names (#558): the short common name where a source gives one, as the English uses (owner, 2026-10-14): the- # he.wiki title or its lead (מפא"י, מפ"ם, מק"י, הצה"ר), else the Knesset's faction record (KNS_Faction, the Knesset+ # he.wiki title or its lead (מפא״י, מפ״ם, מק״י, הצה״ר), else the Knesset's faction record (KNS_Faction, the Knesset# given in the URL). `independent` has no list name to source and stays English. Open owner question: Hatzohar, he.wiki's- # acronym הצה"ר or the Knesset 0 record's "התנועה הרווזיוניסטית" (PR #558 body).+ # acronym הצה״ר or the Knesset 0 record's "התנועה הרווזיוניסטית" (PR #558 body).# name_he_review: agent-checked marks a name an AI agent checked against its sources and no person has read yet# (CONTENT_POLICY section 2, rule 6; owner, 2026-10-15); a native speaker reviews it (#564) and then removes the flag.- - { id: mapai, name: Mapai, name_he: 'מפא"י', name_he_review: agent-checked, name_he_sources: [{ url: "https://he.wikipedia.org/wiki/מפא%22י", checked: 2026-10-14 }] }- - { id: mapam, name: Mapam, name_he: 'מפ"ם', name_he_review: agent-checked, name_he_sources: [{ url: "https://he.wikipedia.org/wiki/מפ%22ם", checked: 2026-10-14 }] }+ - { id: mapai, name: Mapai, name_he: 'מפא״י', name_he_review: agent-checked, name_he_sources: [{ url: "https://he.wikipedia.org/wiki/מפא%22י", checked: 2026-10-14 }] }+ - { id: mapam, name: Mapam, name_he: 'מפ״ם', name_he_review: agent-checked, name_he_sources: [{ url: "https://he.wikipedia.org/wiki/מפ%22ם", checked: 2026-10-14 }] }- { id: general_zionists, name: General Zionists, name_he: "הציונים הכלליים", name_he_review: agent-checked, name_he_sources: [{ url: "https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Faction?$filter=KnessetNum%20eq%200", checked: 2026-10-14 }, { url: "https://he.wikipedia.org/wiki/הציונים_הכלליים", checked: 2026-10-14 }] }- { id: new_aliyah, name: New Aliyah, name_he: "עלייה חדשה", name_he_review: agent-checked, name_he_sources: [{ url: "https://he.wikipedia.org/wiki/עלייה_חדשה", checked: 2026-10-14 }] }- { id: mizrachi, name: Mizrachi, name_he: "המזרחי", name_he_review: agent-checked, name_he_sources: [{ url: "https://he.wikipedia.org/wiki/המזרחי_(מפלגה)", checked: 2026-10-14 }] }@@ -18,9 +18,9 @@ parties:- { id: ahdut_haavoda_poalei_tzion, name: Ahdut HaAvoda-Poalei Tzion, name_he: "אחדות העבודה - פועלי ציון", name_he_review: agent-checked, name_he_sources: [{ url: "https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Faction?$filter=KnessetNum%20eq%202", checked: 2026-10-14 }, { url: "https://he.wikipedia.org/wiki/אחדות_העבודה_-_פועלי_ציון", checked: 2026-10-14 }] }- { id: poale_zion_left, name: Poale Zion Left, name_he: "פועלי ציון שמאל", name_he_review: agent-checked, name_he_sources: [{ url: "https://he.wikipedia.org/wiki/פועלי_ציון_שמאל", checked: 2026-10-14 }] }- { id: independent, name: Independent }- - { id: hatzohar, name: Hatzohar, name_he: 'הצה"ר', name_he_review: agent-checked, name_he_sources: [{ url: "https://he.wikipedia.org/wiki/ברית_הציונים_הרוויזיוניסטים", checked: 2026-10-14 }] }+ - { id: hatzohar, name: Hatzohar, name_he: 'הצה״ר', name_he_review: agent-checked, name_he_sources: [{ url: "https://he.wikipedia.org/wiki/ברית_הציונים_הרוויזיוניסטים", checked: 2026-10-14 }] }- { id: poalei_agudat_yisrael, name: Poalei Agudat Yisrael, name_he: "פועלי אגודת ישראל", name_he_review: agent-checked, name_he_sources: [{ url: "https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Faction?$filter=KnessetNum%20eq%200", checked: 2026-10-14 }, { url: "https://he.wikipedia.org/wiki/פועלי_אגודת_ישראל", checked: 2026-10-14 }] }- - { id: maki, name: Maki, name_he: 'מק"י', name_he_review: agent-checked, name_he_sources: [{ url: "https://he.wikipedia.org/wiki/המפלגה_הקומוניסטית_הישראלית_(מפלגה_היסטורית)", checked: 2026-10-14 }] }+ - { id: maki, name: Maki, name_he: 'מק״י', name_he_review: agent-checked, name_he_sources: [{ url: "https://he.wikipedia.org/wiki/המפלגה_הקומוניסטית_הישראלית_(מפלגה_היסטורית)", checked: 2026-10-14 }] }- { id: wizo, name: WIZO, name_he: "ויצו", name_he_review: agent-checked, name_he_sources: [{ url: "https://he.wikipedia.org/wiki/ויצו", checked: 2026-10-14 }] }- { id: yemenite_association, name: Yemenite Association, name_he: "התאחדות התימנים", name_he_review: agent-checked, name_he_sources: [{ url: "https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Faction?$filter=KnessetNum%20eq%200", checked: 2026-10-14 }] }- { id: united_religious_front, name: United Religious Front, name_he: "החזית הדתית המאוחדת", name_he_review: agent-checked, name_he_sources: [{ url: "https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Faction?$filter=KnessetNum%20eq%200", checked: 2026-10-14 }, { url: "https://he.wikipedia.org/wiki/החזית_הדתית_המאוחדת", checked: 2026-10-14 }] }diff --git a/content/people.yaml b/content/people.yamlindex f73455f2e..dc7ceeb28 100644--- a/content/people.yaml+++ b/content/people.yaml@@ -538,7 +538,7 @@ people:status: fact-checked- id: shazarname: Zalman Shazar- name_he: זלמן שז"ר+ name_he: זלמן שז״ר# The President's Office page gives 24 November 1889; the Knesset member page gives 22 December 1889 (issue #457).born: 1889-11-24died: 1974-10-05diff --git a/docs/review-queue.md b/docs/review-queue.mdindex 1570b1bf7..c72e58d93 100644--- a/docs/review-queue.md+++ b/docs/review-queue.md@@ -1,6 +1,6 @@# Human-review queue-Generated by `uv run tools/review_queue.py --write` at commit `962660db`. Do not edit by hand: rerun the tool.+Generated by `uv run tools/review_queue.py --write` at commit `441fd483`. Do not edit by hand: rerun the tool.It changes no status. Clearing an entry is a content change in its own pull request: a native speaker deletes aname's `*_review: agent-checked` line once they have read it against its source (#564); a person who has checkedevery claim of a listed row records it as `docs/HISTORIAN_REVIEW.md` describes.@@ -110,7 +110,7 @@ to match, or a reflow between flow and block style, makes that commit the line's| [39](../content/offices.yaml#L39) | posts_minister | title_he | שר הדואר | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_PersonToPosition?$filter=GovernmentNum%20eq%203> | an AI agent (the `agent-checked` flag) || [43](../content/offices.yaml#L43) | development_minister | title_he | שר הפיתוח | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_PersonToPosition?$filter=GovernmentNum%20eq%204> | an AI agent (the `agent-checked` flag) || [47](../content/offices.yaml#L47) | education_minister | title_he | שר החינוך והתרבות | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_PersonToPosition?$filter=GovernmentNum%20eq%202> | an AI agent (the `agent-checked` flag) |-| [65](../content/offices.yaml#L65) | haganah_chief_of_staff | title_he | רמטכ"ל ההגנה | <https://he.wikipedia.org/wiki/יעקב_דורי> | an AI agent (the `agent-checked` flag) |+| [65](../content/offices.yaml#L65) | haganah_chief_of_staff | title_he | רמטכ״ל ההגנה | <https://he.wikipedia.org/wiki/יעקב_דורי> | an AI agent (the `agent-checked` flag) || [66](../content/offices.yaml#L66) | chief_of_staff | title_he | ראש המטה הכללי | <https://he.wikipedia.org/wiki/ראש_המטה_הכללי> | an AI agent (the `agent-checked` flag) || [69](../content/offices.yaml#L69) | minister_without_portfolio | title_he | שר בלי תיק | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_PersonToPosition?$filter=GovernmentNum%20eq%203><br><https://he.wikipedia.org/wiki/שר_בלי_תיק> | an AI agent (the `agent-checked` flag) || [73](../content/offices.yaml#L73) | president | title_he | נשיא מדינת ישראל | <https://he.wikipedia.org/wiki/נשיא_מדינת_ישראל> | an AI agent (the `agent-checked` flag) |@@ -126,8 +126,8 @@ to match, or a reflow between flow and block style, makes that commit the line's| Line | Row | Field | Value | Sources | Checked by ||---|---|---|---|---|---|-| [10](../content/parties.yaml#L10) | mapai | name_he | מפא"י | <https://he.wikipedia.org/wiki/מפא%22י> | an AI agent (the `agent-checked` flag) |-| [11](../content/parties.yaml#L11) | mapam | name_he | מפ"ם | <https://he.wikipedia.org/wiki/מפ%22ם> | an AI agent (the `agent-checked` flag) |+| [10](../content/parties.yaml#L10) | mapai | name_he | מפא״י | <https://he.wikipedia.org/wiki/מפא%22י> | an AI agent (the `agent-checked` flag) |+| [11](../content/parties.yaml#L11) | mapam | name_he | מפ״ם | <https://he.wikipedia.org/wiki/מפ%22ם> | an AI agent (the `agent-checked` flag) || [12](../content/parties.yaml#L12) | general_zionists | name_he | הציונים הכלליים | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Faction?$filter=KnessetNum%20eq%200><br><https://he.wikipedia.org/wiki/הציונים_הכלליים> | an AI agent (the `agent-checked` flag) || [13](../content/parties.yaml#L13) | new_aliyah | name_he | עלייה חדשה | <https://he.wikipedia.org/wiki/עלייה_חדשה> | an AI agent (the `agent-checked` flag) || [14](../content/parties.yaml#L14) | mizrachi | name_he | המזרחי | <https://he.wikipedia.org/wiki/המזרחי_(מפלגה)> | an AI agent (the `agent-checked` flag) |@@ -136,9 +136,9 @@ to match, or a reflow between flow and block style, makes that commit the line's| [17](../content/parties.yaml#L17) | sephardim | name_he | ספרדים ועדות מזרח | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Faction?$filter=KnessetNum%20eq%201><br><https://he.wikipedia.org/wiki/ספרדים_ועדות_מזרח_(מפלגה)> | an AI agent (the `agent-checked` flag) || [18](../content/parties.yaml#L18) | ahdut_haavoda_poalei_tzion | name_he | אחדות העבודה - פועלי ציון | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Faction?$filter=KnessetNum%20eq%202><br><https://he.wikipedia.org/wiki/אחדות_העבודה_-_פועלי_ציון> | an AI agent (the `agent-checked` flag) || [19](../content/parties.yaml#L19) | poale_zion_left | name_he | פועלי ציון שמאל | <https://he.wikipedia.org/wiki/פועלי_ציון_שמאל> | an AI agent (the `agent-checked` flag) |-| [21](../content/parties.yaml#L21) | hatzohar | name_he | הצה"ר | <https://he.wikipedia.org/wiki/ברית_הציונים_הרוויזיוניסטים> | an AI agent (the `agent-checked` flag) |+| [21](../content/parties.yaml#L21) | hatzohar | name_he | הצה״ר | <https://he.wikipedia.org/wiki/ברית_הציונים_הרוויזיוניסטים> | an AI agent (the `agent-checked` flag) || [22](../content/parties.yaml#L22) | poalei_agudat_yisrael | name_he | פועלי אגודת ישראל | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Faction?$filter=KnessetNum%20eq%200><br><https://he.wikipedia.org/wiki/פועלי_אגודת_ישראל> | an AI agent (the `agent-checked` flag) |-| [23](../content/parties.yaml#L23) | maki | name_he | מק"י | <https://he.wikipedia.org/wiki/המפלגה_הקומוניסטית_הישראלית_(מפלגה_היסטורית)> | an AI agent (the `agent-checked` flag) |+| [23](../content/parties.yaml#L23) | maki | name_he | מק״י | <https://he.wikipedia.org/wiki/המפלגה_הקומוניסטית_הישראלית_(מפלגה_היסטורית)> | an AI agent (the `agent-checked` flag) || [24](../content/parties.yaml#L24) | wizo | name_he | ויצו | <https://he.wikipedia.org/wiki/ויצו> | an AI agent (the `agent-checked` flag) || [25](../content/parties.yaml#L25) | yemenite_association | name_he | התאחדות התימנים | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Faction?$filter=KnessetNum%20eq%200> | an AI agent (the `agent-checked` flag) || [26](../content/parties.yaml#L26) | united_religious_front | name_he | החזית הדתית המאוחדת | <https://knesset.gov.il/Odata/ParliamentInfo.svc/KNS_Faction?$filter=KnessetNum%20eq%200><br><https://he.wikipedia.org/wiki/החזית_הדתית_המאוחדת> | an AI agent (the `agent-checked` flag) |diff --git a/sim/Statecraft.Sim.Tests/HebrewNameTests.cs b/sim/Statecraft.Sim.Tests/HebrewNameTests.csindex 82ed4e5bc..e9bfe8d43 100644--- a/sim/Statecraft.Sim.Tests/HebrewNameTests.cs+++ b/sim/Statecraft.Sim.Tests/HebrewNameTests.cs@@ -187,8 +187,8 @@ public class HebrewNameTests.Single(r => ((YamlScalarNode)r.Children[new YamlScalarNode("id")]).Value == id).Children[new YamlScalarNode("name_he")]).Value!;Assert.Equal("תל אביב", Settlement("tel_aviv"));Assert.Equal("לוד", Settlement("lod"));- Assert.Equal("מפא\"י", C.Parties.Single(p => p.Id == "mapai").NameHe);- Assert.Equal("מק\"י", C.Parties.Single(p => p.Id == "maki").NameHe);+ Assert.Equal("מפא״י", C.Parties.Single(p => p.Id == "mapai").NameHe);+ Assert.Equal("מק״י", C.Parties.Single(p => p.Id == "maki").NameHe);Assert.Equal("האספה המכוננת (הכנסת הראשונה)", C.Legislatures.Single(l => l.Id == "first_knesset").BodyHe);var labour = C.Offices.Single(o => o.Id == "labour_minister");Assert.Equal(("שר העבודה", "שרת העבודה"), (labour.TitleHe, labour.TitleHeF));diff --git a/tools/tests/test_hebrew_ui.py b/tools/tests/test_hebrew_ui.pyindex 459e86bef..40e07cd59 100644--- a/tools/tests/test_hebrew_ui.py+++ b/tools/tests/test_hebrew_ui.py@@ -50,3 +50,44 @@ def test_hebrew_review_wording_is_count_neutral_and_uses_knesset_terms():assert 'מנדטים' not in he[key] and 'חברים' not in he[key], keyassert he['order.no_attention'] == 'אין מספיק תשומת לב (נדרש {0:0.0}, יש {1:0.0})'assert he['defence.rung5'] == '5 מלחמה כוללת'+++def test_an_order_refusal_shows_no_raw_id_or_exception_text():+ # #622 finding 1: the toast showed a content id ("Unknown policy 'curfew'") or the exception's message after+ # "Not done:". The kind word stays ({0}, #595); the id and the message go to the log only (SimBridge).+ for name in ('strings.en.yaml', 'strings.he.yaml'):+ s = strings(name)+ assert re.findall(r'\{[^{}]+\}', s['order.unknown']) == ['{0}'], name+ assert re.findall(r'\{[^{}]+\}', s['order.failed']) == [], name+++def test_the_top_bar_and_start_labels_are_in_sentence_case():+ # #622 finding 2: the six Title Case labels match the file's sentence case, and so do the lines that name the two+ # buttons, written as the button shows them. Game.uxml keeps the same texts (HebrewUiTests).+ en = strings('strings.en.yaml')+ assert [en[k] for k in ('hud.caption.support', 'hud.caption.standing', 'hud.caption.fx', 'hud.new_game',+ 'hud.end_turn', 'start.new_game')] == [+ 'Public support', 'International standing', 'Foreign currency', 'New game', 'End turn', 'New game']+ for key, value in en.items():+ assert 'End Turn' not in value and 'New Game' not in value, key+ uxml = (UI / 'Game.uxml').read_text(encoding='utf-8')+ for title in ('Public Support', 'International Standing', 'Foreign Currency', 'New Game', 'End Turn'):+ assert f'text="{title}"' not in uxml, title+++HEBREW_ACRONYM_STRAIGHT_QUOTE = re.compile('[א-ת]"[א-ת]')+++def test_hebrew_acronyms_use_the_gershayim_character():+ # #622 finding 4: the strings write gershayim as U+05F4 ("הרמטכ״ל"); the Hebrew names in content follow them, not a+ # straight quote. Only values are checked: comments may quote a source verbatim.+ for name, text in strings('strings.he.yaml').items():+ assert not HEBREW_ACRONYM_STRAIGHT_QUOTE.search(text), name+ content = ROOT / 'content'+ for file, key, field in (('offices.yaml', 'offices', 'title_he'), ('parties.yaml', 'parties', 'name_he'),+ ('people.yaml', 'people', 'name_he')):+ rows = yaml12.load((content / file).read_text(encoding='utf-8'))[key]+ values = [r[f] for r in rows for f in (field, field + '_f') if r.get(f)]+ assert values, file+ for value in values:+ assert not HEBREW_ACRONYM_STRAIGHT_QUOTE.search(value), (file, value)diff --git a/unity/Assets/Scripts/UI/SimBridge.cs b/unity/Assets/Scripts/UI/SimBridge.csindex bb9eac099..4fc9fc067 100644--- a/unity/Assets/Scripts/UI/SimBridge.cs+++ b/unity/Assets/Scripts/UI/SimBridge.cs@@ -70,8 +70,14 @@ namespace Statecraft.Game.UI/// <summary>The queued order with this key, or null.</summary>public Command? QueuedLike(Command c) => queue.FirstOrDefault(q => Key(q) == Key(c));- string? Unknown(string kind, string? id, IEnumerable<string> known) =>- !string.IsNullOrEmpty(id) && known.Contains(id) ? null : text.Format("order.unknown", kind, id ?? "");+ /// <summary>Null if the id is known, else the player-facing reason. The player sees only the kind of thing (#622: a+ /// content id means nothing to them); the id goes to the log, for a bug report.</summary>+ string? Unknown(string kind, string? id, IEnumerable<string> known)+ {+ if (!string.IsNullOrEmpty(id) && known.Contains(id)) return null;+ UnityEngine.Debug.Log($"Order refused: unknown {kind} '{id}'");+ return text.Format("order.unknown", kind);+ }/// <summary>Checks every id an order carries against the content, so End Turn can never be handed an id the/// simulation would throw on. Returns the player-facing reason, or null.</summary>@@ -149,7 +155,7 @@ namespace Statecraft.Game.UIelse UnityEngine.Debug.LogException(e);queue.Clear();LastBatch = Array.Empty<Command>();- var reason = text.Format("order.failed", e.Message);+ var reason = text["order.failed"]; // the message stays in the log above, not on screen (#622)var failed = new StepResult(State, new Cause[0], batch.Select(x => new Rejection(x, reason)).ToList());Changed?.Invoke();TurnEnded?.Invoke(failed.Rejected);diff --git a/unity/Assets/Tests/EditMode/BudgetScreenTests.cs b/unity/Assets/Tests/EditMode/BudgetScreenTests.csindex 7e415dd6a..135727f1c 100644--- a/unity/Assets/Tests/EditMode/BudgetScreenTests.cs+++ b/unity/Assets/Tests/EditMode/BudgetScreenTests.cs@@ -60,7 +60,7 @@ public class BudgetScreenTestsui.Press("budget-submit");var queued = (AllocateBudget)bridge.Queued.Single();Assert.AreEqual(1.0, queued.Shares.Values.Sum(), 1e-9);- Assert.AreEqual("Submitted: takes effect at End Turn", ui.Q<Label>("budget-status").text);+ Assert.AreEqual("Submitted: takes effect at End turn", ui.Q<Label>("budget-status").text);bridge.EndTurn();Assert.AreEqual(budget.Draft["education_minister"], bridge.State.Budget["education_minister"], 1e-12);Assert.IsEmpty(bridge.Session.Last!.Rejected);@@ -177,11 +177,11 @@ public class BudgetScreenTests{UiTestKit.Press(ui.Q<Button>("budget-education_minister-up"));ui.Press("budget-submit");- Assert.AreEqual("Submitted: takes effect at End Turn", ui.Q<Label>("budget-status").text);+ Assert.AreEqual("Submitted: takes effect at End turn", ui.Q<Label>("budget-status").text);UiTestKit.Press(ui.Q<Button>("budget-education_minister-up"));Assert.AreEqual("Changed: submit to put it to the vote", ui.Q<Label>("budget-status").text);ui.Press("budget-submit");- Assert.AreEqual("Submitted: takes effect at End Turn", ui.Q<Label>("budget-status").text);+ Assert.AreEqual("Submitted: takes effect at End turn", ui.Q<Label>("budget-status").text);var queued = (AllocateBudget)bridge.Queued.Single();foreach (var kv in budget.Draft) Assert.AreEqual(kv.Value, queued.Shares[kv.Key], 1e-12);}diff --git a/unity/Assets/Tests/EditMode/CabinetScreenTests.cs b/unity/Assets/Tests/EditMode/CabinetScreenTests.csindex 2f1b94c4f..dfbd92960 100644--- a/unity/Assets/Tests/EditMode/CabinetScreenTests.cs+++ b/unity/Assets/Tests/EditMode/CabinetScreenTests.cs@@ -62,7 +62,7 @@ public class CabinetScreenTestsvar cabinet = new CabinetPresenter(ui.Root, bridge, Text, null);cabinet.Select("finance_minister");UiTestKit.Press(ui.Q<Button>("appoint-golda_meir"));- Assert.AreEqual("Ordered: Golda Meir to Minister of Finance, at End Turn", ui.Q<Label>("cabinet-status").text);+ Assert.AreEqual("Ordered: Golda Meir to Minister of Finance, at End turn", ui.Q<Label>("cabinet-status").text);bridge.EndTurn();Assert.AreEqual("golda_meir", Cabinet.Holder(C, bridge.State, "finance_minister")!.Id);StringAssert.EndsWith("(your appointee)", ui.Q<Label>("seat-finance_minister-holder").text);diff --git a/unity/Assets/Tests/EditMode/HudTests.cs b/unity/Assets/Tests/EditMode/HudTests.csindex 3b84647b7..b73d11eaa 100644--- a/unity/Assets/Tests/EditMode/HudTests.cs+++ b/unity/Assets/Tests/EditMode/HudTests.cs@@ -220,8 +220,9 @@ public class HudTestsusing var ui = new UiTestKit();var bridge = NewBridge();new ToastPresenter(ui.Root, bridge, Text);+ LogAssert.Expect(LogType.Log, new System.Text.RegularExpressions.Regex("unknown policy 'curfew'")); // the id: log only (#622)Assert.IsNotNull(bridge.Queue(new SetPolicy("curfew", 1)));- Assert.AreEqual("Not done: Unknown policy 'curfew'", ui.Q<Label>("toast").text);+ Assert.AreEqual("Not done: Unknown policy", ui.Q<Label>("toast").text);Assert.AreEqual(DisplayStyle.Flex, ui.Q<Label>("toast").style.display.value);Assert.IsNull(bridge.Queue(new SecurityOrder(-1)));Assert.AreEqual(DisplayStyle.None, ui.Q<Label>("toast").style.display.value);@@ -294,6 +295,27 @@ public class HudTestsAssert.AreEqual(0, bridge.State.Turn);}+ /// <summary>#622: a refusal names the kind of thing and never shows the content id or the exception's message, in+ /// either language; both stay in the log for a bug report.</summary>+ [TestCase(false)]+ [TestCase(true)]+ public void ARefusalShowsNoIdOrExceptionTextInEitherLanguage(bool hebrew)+ {+ var text = hebrew ? UiText.Parse(AssetDatabase.LoadAssetAtPath<TextAsset>(UiPaths.StringsHebrew).text, "strings.he.yaml") : Text;+ LogAssert.Expect(LogType.Log, new System.Text.RegularExpressions.Regex("unknown policy 'curfew'"));+ var unknown = new SimBridge(GameSession.New(C, GoldenRun.Seed, Mode.Historical), text).Queue(new SetPolicy("curfew", 1));+ Assert.AreEqual(text.Format("order.unknown", "policy"), unknown);+ StringAssert.DoesNotContain("curfew", unknown);++ LogAssert.Expect(LogType.Exception, new System.Text.RegularExpressions.Regex("stack detail 42"));+ var failing = new SimBridge(GameSession.New(C, GoldenRun.Seed, Mode.Historical), text,+ (s, cmds) => throw new System.InvalidOperationException("stack detail 42"));+ Assert.IsNull(failing.Queue(new SecurityOrder(-1)));+ var reason = failing.EndTurn().Rejected.Single().Reason;+ Assert.AreEqual(text["order.failed"], reason);+ StringAssert.DoesNotContain("stack detail", reason);+ }+/// <summary>Any exception from the sim (not only ArgumentException; final review M7) keeps the state, clears the queue/// and shows the reason: End Turn can never soft-lock. An unexpected kind is also logged in full.</summary>[TestCase(typeof(System.ArgumentException))]@@ -318,7 +340,7 @@ public class HudTestsAssert.AreEqual(0, bridge.Queued.Count);Assert.IsNull(bridge.BeforeLast);Assert.AreSame(order, seen![0].Command);- Assert.AreEqual("Not done: The turn could not run: boom", ui.Q<Label>("toast").text);+ Assert.AreEqual("Not done: The turn could not run", ui.Q<Label>("toast").text); // "boom": the log only (#622)}/// <summary>Playtest 1, item 11: pressing the open screen's button closes it, every time, with every presenter@@ -436,18 +458,18 @@ public class HudTestsAssert.IsFalse(System.Text.RegularExpressions.Regex.IsMatch(line, @"\{\d+:[^}]*\}%"), "percent format in strings.en.yaml: " + line);}- /// <summary>Fix round 1, M3: the top-bar captions are the content names in title case (a deliberate casing for- /// captions); Immigration and Public Support are UI quantities with no content name.</summary>+ /// <summary>Fix round 1, M3: the top-bar captions are the content names. Since #622 they are in the sentence case the+ /// content and the rest of the strings use, so a caption is the content name as written (it was Title Case before);+ /// Immigration and Public support are UI quantities with no content name.</summary>[Test]- public void TopBarCaptionsAreTheContentNamesInTitleCase()+ public void TopBarCaptionsAreTheContentNames(){using var ui = new UiTestKit();string Caption(string meter) => ui.Q<VisualElement>(meter).Q<Label>(className: "meter-name").text;- string Title(string name) => System.Globalization.CultureInfo.InvariantCulture.TextInfo.ToTitleCase(name);- Assert.AreEqual(Title(PlayerText.Target(C, "treasury")), Caption("meter-treasury"));- Assert.AreEqual(Title(PlayerText.Target(C, "security")), Caption("meter-security"));- Assert.AreEqual(Title(PlayerText.Target(C, "intl_standing")), Caption("meter-standing"));- Assert.AreEqual(Title(PlayerText.Target(C, "fx_reserves")), Caption("meter-fx"));+ Assert.AreEqual(PlayerText.Target(C, "treasury"), Caption("meter-treasury"));+ Assert.AreEqual(PlayerText.Target(C, "security"), Caption("meter-security"));+ Assert.AreEqual(PlayerText.Target(C, "intl_standing"), Caption("meter-standing"));+ Assert.AreEqual(PlayerText.Target(C, "fx_reserves"), Caption("meter-fx"));}/// <summary>Fix round 2 (R2-3, playtest 1 item 11): two Submit events on the Defence button within one frame (a@@ -516,7 +538,7 @@ public class HudTestsvar bridge = NewBridge();var hud = new HudPresenter(ui.Root, bridge, Text);Assert.AreEqual("Treasury: IL 20.0 million", ui.Q<VisualElement>("meter-treasury").tooltip); // turn 0: no change- Assert.AreEqual("Foreign Currency: $40.0 million", ui.Q<VisualElement>("meter-fx").tooltip);+ Assert.AreEqual("Foreign currency: $40.0 million", ui.Q<VisualElement>("meter-fx").tooltip);Assert.AreEqual("Security: 30%", ui.Q<VisualElement>("meter-security").tooltip);bridge.EndTurn();var prev = bridge.Session.Previous!; var now = bridge.State;@@ -528,9 +550,9 @@ public class HudTestsvar net = System.Math.Round(now.Treasury - now.Debt, 1, System.MidpointRounding.AwayFromZero);Assert.Greater(net, 0, "the test expects a positive net position after one turn");Assert.AreEqual(Inv($"Treasury: IL {net:0.0} million, down IL 1.4 million since last turn"), ui.Q<VisualElement>("meter-treasury").tooltip);- Assert.AreEqual(Inv($"Foreign Currency: ${now.FxReserves:0.0} million, up $2.0 million since last turn"), ui.Q<VisualElement>("meter-fx").tooltip);+ Assert.AreEqual(Inv($"Foreign currency: ${now.FxReserves:0.0} million, up $2.0 million since last turn"), ui.Q<VisualElement>("meter-fx").tooltip);Assert.AreEqual($"Security: {ui.Q<Label>("security-value").text}, up 5 points since last turn", ui.Q<VisualElement>("meter-security").tooltip);- Assert.AreEqual($"International Standing: {ui.Q<Label>("standing-value").text}, down 1 point since last turn", ui.Q<VisualElement>("meter-standing").tooltip);+ Assert.AreEqual($"International standing: {ui.Q<Label>("standing-value").text}, down 1 point since last turn", ui.Q<VisualElement>("meter-standing").tooltip);// Immigration after one turn has no change yet (it needs two turns of arrivals): the caption and the count only.Assert.AreEqual($"Immigration: {ui.Q<Label>("immigration-value").text}", ui.Q<VisualElement>("meter-immigration").tooltip);// Every tooltip agrees with the meter's shown change: "up" with a gain, "down" with a loss, neither without one.diff --git a/unity/Assets/Tests/EditMode/MapActionUiTests.cs b/unity/Assets/Tests/EditMode/MapActionUiTests.csindex 8ec158763..98982024b 100644--- a/unity/Assets/Tests/EditMode/MapActionUiTests.cs+++ b/unity/Assets/Tests/EditMode/MapActionUiTests.cs@@ -78,7 +78,7 @@ public class MapActionUiTestsAssert.IsTrue(ui.Q<Button>("build-camp").enabledSelf, ui.Q<Label>("info-reason").text);Assert.AreEqual("Place a transit camp (IL 1.5m)", ui.Q<Button>("build-camp").text);ui.Press("build-camp");- Assert.AreEqual("Ordered: A transit camp, at End Turn", ui.Q<Label>("info-placement").text);+ Assert.AreEqual("Ordered: A transit camp, at End turn", ui.Q<Label>("info-placement").text);bridge.EndTurn();Assert.AreEqual(MapActions.TransitCamp, MapActions.At(bridge.State, tlv.Q, tlv.R)!.Action);Assert.AreEqual("A transit camp built here in August 1950", ui.Q<Label>("info-placement").text);diff --git a/unity/Assets/Tests/EditMode/PromoHudTests.cs b/unity/Assets/Tests/EditMode/PromoHudTests.csindex 622f714f7..871dc772e 100644--- a/unity/Assets/Tests/EditMode/PromoHudTests.cs+++ b/unity/Assets/Tests/EditMode/PromoHudTests.cs@@ -39,7 +39,7 @@ public class PromoHudTests{using var ui = new UiTestKit();foreach (var (button, name, glyph) in new[] { ("nav-cabinet", "Cabinet", "columns"), ("nav-budget", "Budget", "ledger"),- ("nav-defence", "Defence", "helmet"), ("nav-why", "Why?", "question"), ("new-game", "New Game", "restart") })+ ("nav-defence", "Defence", "helmet"), ("nav-why", "Why?", "question"), ("new-game", "New game", "restart") }){var b = ui.Q<Button>(button);Assert.AreEqual(name, b.text, button + ": the name stays the button's text (legible, and what the event log records)");diff --git a/unity/Assets/Tests/EditMode/SaveUiTests.cs b/unity/Assets/Tests/EditMode/SaveUiTests.csindex 9af916ec4..355e86a06 100644--- a/unity/Assets/Tests/EditMode/SaveUiTests.cs+++ b/unity/Assets/Tests/EditMode/SaveUiTests.cs@@ -171,7 +171,7 @@ public class SaveUiTestsui.Press("new-game");Assert.AreSame(session, bridge.Session, "one press after a change only arms again");Assert.IsTrue(newGame.Armed);- Assert.AreEqual("Press New Game again to abandon this game and start over.", ui.Q<Label>("toast").text);+ Assert.AreEqual("Press New game again to abandon this game and start over.", ui.Q<Label>("toast").text);Assert.AreEqual(1, bridge.Queued.Count);}@@ -208,7 +208,7 @@ public class SaveUiTestsvar newGame = new NewGamePresenter(ui.Root, bridge, store, toast, Text, () => 4UL);ui.Press("new-game");Assert.IsTrue(newGame.Armed);- Assert.AreEqual("Press New Game again to abandon this game and start over.", ui.Q<UnityEngine.UIElements.Label>("toast").text);+ Assert.AreEqual("Press New game again to abandon this game and start over.", ui.Q<UnityEngine.UIElements.Label>("toast").text);Assert.AreEqual(1, bridge.State.Turn);ui.Press("new-game");Assert.AreEqual(0, bridge.State.Turn);diff --git a/unity/Assets/Tests/EditMode/SimBridgeGddTests.cs b/unity/Assets/Tests/EditMode/SimBridgeGddTests.csindex 6415f4755..4d26c860c 100644--- a/unity/Assets/Tests/EditMode/SimBridgeGddTests.cs+++ b/unity/Assets/Tests/EditMode/SimBridgeGddTests.cs@@ -45,12 +45,12 @@ public class SimBridgeGddTests{var t = Text;var b = Bridge(Slice);- Assert.AreEqual(t.Format("order.unknown", "city", "haifa"), b.Queue(new AssignWorkers("haifa", "job", 1)));- Assert.AreEqual(t.Format("order.unknown", "city", "haifa"), b.Queue(new Train("haifa", "halutz", 1)));- Assert.AreEqual(t.Format("order.unknown", "training", "pilot"), b.Queue(new Train("tel_aviv", "pilot", 1)));+ Assert.AreEqual(t.Format("order.unknown", "city"), b.Queue(new AssignWorkers("haifa", "job", 1)));+ Assert.AreEqual(t.Format("order.unknown", "city"), b.Queue(new Train("haifa", "halutz", 1)));+ Assert.AreEqual(t.Format("order.unknown", "training"), b.Queue(new Train("tel_aviv", "pilot", 1)));// civilian is a unit type, but nobody trains to it: it has no facility.- Assert.AreEqual(t.Format("order.unknown", "training", "civilian"), b.Queue(new Train("tel_aviv", "civilian", 1)));- Assert.AreEqual(t.Format("order.unknown", "cohort", "7"), b.Queue(new CancelTraining(7)));+ Assert.AreEqual(t.Format("order.unknown", "training"), b.Queue(new Train("tel_aviv", "civilian", 1)));+ Assert.AreEqual(t.Format("order.unknown", "cohort"), b.Queue(new CancelTraining(7)));Assert.AreEqual(0, b.Queued.Count);}@@ -104,9 +104,9 @@ public class SimBridgeGddTestsvar t = Text;var b = Bridge(Legacy);Assert.IsFalse(Legacy.IsGdd);- Assert.AreEqual(t.Format("order.unknown", "city", "tel_aviv"), b.Queue(new AssignWorkers("tel_aviv", "job", 1)));- Assert.AreEqual(t.Format("order.unknown", "city", "tel_aviv"), b.Queue(new Train("tel_aviv", "halutz", 1)));- Assert.AreEqual(t.Format("order.unknown", "cohort", "1"), b.Queue(new CancelTraining(1)));+ Assert.AreEqual(t.Format("order.unknown", "city"), b.Queue(new AssignWorkers("tel_aviv", "job", 1)));+ Assert.AreEqual(t.Format("order.unknown", "city"), b.Queue(new Train("tel_aviv", "halutz", 1)));+ Assert.AreEqual(t.Format("order.unknown", "cohort"), b.Queue(new CancelTraining(1)));Assert.AreEqual(0, b.Queued.Count);}}diff --git a/unity/Assets/Tests/EditMode/SimBridgeSiteTests.cs b/unity/Assets/Tests/EditMode/SimBridgeSiteTests.csindex 8afc18604..7a02c9b2b 100644--- a/unity/Assets/Tests/EditMode/SimBridgeSiteTests.cs+++ b/unity/Assets/Tests/EditMode/SimBridgeSiteTests.cs@@ -42,10 +42,10 @@ public class SimBridgeSiteTests{var t = Text;var (b, id) = WithAHalutz();- Assert.AreEqual(t.Format("order.unknown", "unit", "99"), b.Queue(new PioneerWork(99, Projects.BuildYishuv, "mefalsim")));- Assert.AreEqual(t.Format("order.unknown", "pioneer work", "build_road"), b.Queue(new PioneerWork(id, "build_road", "mefalsim")));- Assert.AreEqual(t.Format("order.unknown", "site", "yeruham"), b.Queue(new PioneerWork(id, Projects.BuildYishuv, "yeruham")));- Assert.AreEqual(t.Format("order.unknown", "unit", "99"), b.Queue(new StopWork(99)));+ Assert.AreEqual(t.Format("order.unknown", "unit"), b.Queue(new PioneerWork(99, Projects.BuildYishuv, "mefalsim")));+ Assert.AreEqual(t.Format("order.unknown", "pioneer work"), b.Queue(new PioneerWork(id, "build_road", "mefalsim")));+ Assert.AreEqual(t.Format("order.unknown", "site"), b.Queue(new PioneerWork(id, Projects.BuildYishuv, "yeruham")));+ Assert.AreEqual(t.Format("order.unknown", "unit"), b.Queue(new StopWork(99)));Assert.AreEqual(0, b.Queued.Count);}@@ -54,8 +54,8 @@ public class SimBridgeSiteTests{var t = Text;var b = Bridge(Legacy);- Assert.AreEqual(t.Format("order.unknown", "unit", "1"), b.Queue(new PioneerWork(1, Projects.BuildYishuv, "mefalsim")));- Assert.AreEqual(t.Format("order.unknown", "unit", "1"), b.Queue(new StopWork(1)));+ Assert.AreEqual(t.Format("order.unknown", "unit"), b.Queue(new PioneerWork(1, Projects.BuildYishuv, "mefalsim")));+ Assert.AreEqual(t.Format("order.unknown", "unit"), b.Queue(new StopWork(1)));Assert.AreEqual(0, b.Queued.Count);}}diff --git a/unity/Assets/UI/Game.uxml b/unity/Assets/UI/Game.uxmlindex 8f561db28..75e5c0524 100644--- a/unity/Assets/UI/Game.uxml+++ b/unity/Assets/UI/Game.uxml@@ -31,9 +31,9 @@</ui:VisualElement><Statecraft.Game.UI.UiFrame shadow="false" filigree="true" /></ui:VisualElement>- <!-- Meter captions are the content display names in title case, a deliberate casing for captions (Treasury and- Foreign Currency: model.yaml money; Security and International Standing: model.yaml indicators;- HudTests.TopBarCaptionsAreTheContentNamesInTitleCase). Immigration and Public Support are UI quantities. -->+ <!-- Meter captions are the content display names as written, in sentence case (#622) (Treasury and+ Foreign currency: model.yaml money; Security and International standing: model.yaml indicators;+ HudTests.TopBarCaptionsAreTheContentNames). Immigration and Public support are UI quantities. --><ui:VisualElement name="meters" class="meters"><ui:VisualElement name="meter-treasury" class="meter"><Statecraft.Game.UI.UiIcon glyph="coin" class="meter-icon" />@@ -60,31 +60,31 @@<ui:VisualElement name="meter-support" class="meter"><Statecraft.Game.UI.UiIcon glyph="crowd" class="meter-icon" /><ui:VisualElement class="meter-body">- <ui:Label text="Public Support" class="meter-name" />+ <ui:Label text="Public support" class="meter-name" /><ui:VisualElement class="meter-row"><ui:Label name="support-value" class="meter-value" /><ui:Label name="support-delta" class="meter-delta" /></ui:VisualElement></ui:VisualElement></ui:VisualElement><ui:VisualElement name="meter-standing" class="meter"><Statecraft.Game.UI.UiIcon glyph="globe" class="meter-icon" /><ui:VisualElement class="meter-body">- <ui:Label text="International Standing" class="meter-name" />+ <ui:Label text="International standing" class="meter-name" /><ui:VisualElement class="meter-row"><ui:Label name="standing-value" class="meter-value" /><ui:Label name="standing-delta" class="meter-delta" /></ui:VisualElement></ui:VisualElement></ui:VisualElement><ui:VisualElement name="meter-fx" class="meter"><Statecraft.Game.UI.UiIcon glyph="banknote" class="meter-icon" /><ui:VisualElement class="meter-body">- <ui:Label text="Foreign Currency" class="meter-name" />+ <ui:Label text="Foreign currency" class="meter-name" /><ui:VisualElement class="meter-row"><ui:Label name="fx-value" class="meter-value" /><ui:Label name="fx-delta" class="meter-delta" /></ui:VisualElement></ui:VisualElement></ui:VisualElement></ui:VisualElement><ui:VisualElement name="nav" class="nav">- <ui:Button name="new-game" text="New Game" class="nav-button"><Statecraft.Game.UI.UiIcon glyph="restart" class="nav-disc" /></ui:Button>+ <ui:Button name="new-game" text="New game" class="nav-button"><Statecraft.Game.UI.UiIcon glyph="restart" class="nav-disc" /></ui:Button></ui:VisualElement><ui:VisualElement class="turn-box"><ui:Label name="attention" class="muted" />- <ui:Button name="end-turn" text="End Turn" class="end-turn" />+ <ui:Button name="end-turn" text="End turn" class="end-turn" /></ui:VisualElement></ui:VisualElement><!-- The right-hand column: the minimap, with the border layer's caption beside it. -->@@ -316,7 +316,7 @@</ui:VisualElement><ui:VisualElement name="start-actions" class="start-actions"><ui:Button name="start-continue" text="Continue" class="start-button" />- <ui:Button name="start-new-game" text="New Game" class="start-button" />+ <ui:Button name="start-new-game" text="New game" class="start-button" /></ui:VisualElement><ui:VisualElement name="start-caption" class="start-caption" picking-mode="Ignore"><ui:Label name="start-caption-he" text="…אנו מכריזים בזאת על הקמת מדינה יהודית בארץ־ישראל, היא מדינת ישראל." class="start-he start-caption-he" language-direction="RTL" picking-mode="Ignore" />diff --git a/unity/Assets/UI/Statecraft.uss b/unity/Assets/UI/Statecraft.ussindex 10f21cd78..d693a8929 100644--- a/unity/Assets/UI/Statecraft.uss+++ b/unity/Assets/UI/Statecraft.uss@@ -121,7 +121,7 @@ Button:disabled { color: var(--ink-dim); border-color: rgba(120, 120, 120, 0.4);position: absolute; top: 2px; left: 5px; width: 50px; height: 50px; padding: 11px;border-radius: 25px; border-width: 1.5px; border-color: var(--gold-dim); background-color: var(--navy-deep);}-/* "New Game" is the longest caption: its button is wider, its disc centred (PromoHudTests: every caption fits). */+/* "New game" is the longest caption: its button is wider, its disc centred (PromoHudTests: every caption fits). */#new-game { width: 66px; }#new-game .nav-disc { left: 8px; }.nav-button:hover { background-color: rgba(0, 0, 0, 0); color: var(--ink); }diff --git a/unity/Assets/UI/strings.en.yaml b/unity/Assets/UI/strings.en.yamlindex 1f4ce6e87..45649265b 100644--- a/unity/Assets/UI/strings.en.yaml+++ b/unity/Assets/UI/strings.en.yaml@@ -1,6 +1,7 @@# UI strings (English). Code looks strings up by key (Statecraft.Game.UI.UiText); placeholders are string.Format# arguments ({0}, {1}) formatted with the invariant culture. Static labels live in the UXML files.-# Dates arrive already formatted by Statecraft.Sim.PlayerText ("15 May 1948"); no string here formats a date itself.+# Most dates arrive already formatted by Statecraft.Sim.PlayerText ("15 May 1948"). The map's front-line date is the+# exception: Control1948.LineDateText builds it from the date.* strings below, so each language orders and names it.# Money arrives formatted by PlayerText.Money / MoneyChange, its currency from content (model.yaml money): "IL 18.6m",# "$41.5m", "+IL 1.2m". Shares and 0..1 indicators arrive on the 0-100 scale (PlayerText.Scale / Percent) and show "%".hud.turn: "Turn {0}"@@ -23,9 +24,9 @@ hud.say_points: "{0:0} points"hud.caption.treasury: "Treasury"hud.caption.immigration: "Immigration"hud.caption.security: "Security"-hud.caption.support: "Public Support"-hud.caption.standing: "International Standing"-hud.caption.fx: "Foreign Currency"+hud.caption.support: "Public support"+hud.caption.standing: "International standing"+hud.caption.fx: "Foreign currency"# The other static texts of Game.uxml, each set by the presenter that owns its element (#193). Each English string is# the UXML's own text (HebrewUiTests.EachEnglishStaticTextIsTheUxmlsOwnText), so English shows what it always showed.# The top bar (HudPresenter):@@ -33,8 +34,8 @@ hud.nav.cabinet: "Cabinet"hud.nav.budget: "Budget"hud.nav.defence: "Defence"hud.nav.why: "Why?"-hud.new_game: "New Game"-hud.end_turn: "End Turn"+hud.new_game: "New game"+hud.end_turn: "End turn"# The screens' titles and buttons, the decision card's draft mark, the start screen and the loading line (GameRoot).budget.title: "Budget"budget.reset: "Reset"@@ -47,7 +48,7 @@ event.draft: "DRAFT"start.source: "From the Declaration of the Establishment of the State of Israel (Official Gazette No. 1, 14 May 1948) and its official English translation. Painting: AI-generated."start.recording_credit: "Recording: Ralph Hellinger, Israel State Archives"start.continue: "Continue"-start.new_game: "New Game"+start.new_game: "New game"boot.loading: "Loading the map of 1948…"toast.refused: "Not done: {0}"event.office: "{0}: {1}"@@ -65,9 +66,9 @@ outcome.order: "Your order: {0}"outcome.skip: "Click, Enter or Space to skip · Esc skips all"order.game_over: "The game is over"order.no_attention: "Not enough attention (need {0:0.0}, have {1:0.0})"-order.unknown: "Unknown {0} '{1}'"+order.unknown: "Unknown {0}"order.invalid: "That order is not valid"-order.failed: "The turn could not run: {0}"+order.failed: "The turn could not run"defence.rung1: "1 Routine threat: border incidents, deterrence upkeep"defence.rung2: "2 Wave: terror or infiltration, hostile buildup"defence.rung3: "3 Limited operation: raids, reprisals"@@ -93,7 +94,7 @@ budget.no_vote: "The {0} does not vote on the budget"budget.vote_advisory: "The {0} votes on it, but its vote does not bind: the coalition holds {1} of {2} {3}"budget.money: "Treasury {0} · debt {1} · foreign currency {2}"budget.flow: "Taxes {0}, spending {1} and reserve call-up {2} a year"-budget.queued: "Submitted: takes effect at End Turn"+budget.queued: "Submitted: takes effect at End turn"budget.unsaved: "Changed: submit to put it to the vote"why.turn: "{0} to {1}"why.empty: "Nothing has happened yet: end the turn to see its causes."@@ -116,7 +117,7 @@ cabinet.vacant: "(vacant)"cabinet.person: "{0} · {1} · competence {2}, loyalty {3}"cabinet.no_party: "no party"cabinet.pick: "Appoint to {0}"-cabinet.queued: "Ordered: {0} to {1}, at End Turn"+cabinet.queued: "Ordered: {0} to {1}, at End turn"# Cabinet (promo 04): the body the government answers to, the half circle's legend and its party chips.cabinet.legislature: "Answerable to the {0} · {1} members"cabinet.legislature_advisory: "Consults the {0} · {1} members · its votes do not bind"@@ -204,7 +205,7 @@ minimap.labels: "Show or hide the settlement names"minimap.borders: "Show or hide the region borders"ui.lang: "en"info.built: "{0} built here in {1}"-info.queued: "Ordered: {0}, at End Turn"+info.queued: "Ordered: {0}, at End turn"info.build_camp: "Place a transit camp ({0})"info.build_housing: "Build housing ({0})"info.build_camp_plain: "Place a transit camp"@@ -234,7 +235,7 @@ unit.sources: "Sources: {0}"unit.draft_wikipedia: "Draft: from Wikipedia only, not yet checked against a published history"unit.draft: "Draft: not yet checked by a historian"unit.defence: "Open the Defence screen"-newgame.confirm: "Press New Game again to abandon this game and start over."+newgame.confirm: "Press New game again to abandon this game and start over."newgame.delete_failed: "The old saved game could not be removed; it will be replaced after your next turn."save.unreadable: "Your saved game could not be loaded ({0}). A new game has started."save.reason_other: "the file could not be read or replayed"diff --git a/unity/Assets/UI/strings.he.yaml b/unity/Assets/UI/strings.he.yamlindex 249b19e0e..336730978 100644--- a/unity/Assets/UI/strings.he.yaml+++ b/unity/Assets/UI/strings.he.yaml@@ -59,9 +59,9 @@ outcome.order: "הפקודה שלך: {0}"outcome.skip: "לחיצה, Enter או רווח לדילוג · Esc מדלג על הכול"order.game_over: "המשחק הסתיים"order.no_attention: "אין מספיק תשומת לב (נדרש {0:0.0}, יש {1:0.0})"-order.unknown: "{0} לא מוכר: '{1}'"+order.unknown: "{0} לא מוכר"order.invalid: "הפקודה אינה תקפה"-order.failed: "לא ניתן היה להריץ את התור: {0}"+order.failed: "לא ניתן היה להריץ את התור"defence.rung1: "1 איום שגרתי: תקריות גבול, שימור ההרתעה"defence.rung2: "2 גל: טרור או הסתננות, התעצמות האויב"defence.rung3: "3 פעולה מוגבלת: פשיטות, פעולות תגמול"