Add read-only game and league regulations to editor 0.5.2 (by Codex)
OBW Editor / editor (linux-x64, ubuntu-24.04) (push) Canceled after 0s
OBW Editor / editor (macos-arm64, macos-14) (push) Canceled after 0s
OBW Editor / editor (windows-x64, windows-2022) (push) Canceled after 0s
OBW Editor / release (push) Canceled after 0s

This commit is contained in:
Codex committed 2026-10-23 06:28:12 +02:00
1 parent 221478b629
commit 9f1928bd9e
27 files changed
+993 -22

No files matched your search

+86
View File
@@ -89,6 +89,92 @@ std::string tr(const std::string &language, const std::string &key) {
using Pair = std::pair<std::string, std::string>;
static const std::map<std::string, Pair> words{
{"data_areas", {"Datenbereiche", "World data"}},
{"regulations", {"Regelwerk", "Regulations"}},
{"regulations_title", {"Spiel- & Ligaregeln", "Game & league rules"}},
{"subtitle_regulations",
{"Aufstieg, Abstieg und internationale Qualifikation",
"Promotion, relegation and international qualification"}},
{"regulation_readonly", {"Nur Anzeige", "Read only"}},
{"regulation_competitions", {"Ligen & Wettbewerbe", "Leagues & competitions"}},
{"regulation_game", {"Spielregeln", "Game rules"}},
{"regulation_movement_title", {"Auf- & Abstieg", "Promotion & relegation"}},
{"regulation_qualification_title",
{"Internationale Qualifikation & Teilnehmer", "International qualification & entrants"}},
{"regulation_promotion", {"Aufstieg", "Promotion"}},
{"regulation_relegation", {"Abstieg", "Relegation"}},
{"regulation_playoff", {"Relegationsspiele", "Playoffs"}},
{"regulation_playoff_winner", {"Sieger der Classic-Relegation", "Classic playoff winner"}},
{"regulation_classic_playoffs",
{"Bei parallelen unteren Ligen steigen die Meister direkt auf. Weitere Aufsteiger bestimmt die "
"Classic-Relegation. Ohne deren Ergebnis werden nur die Meister ausgetauscht.",
"For parallel lower leagues, champions go up directly. Additional promotion follows the Classic "
"playoffs. Without a playoff result, only champions are exchanged."}},
{"regulation_movement", {"Ligenwechsel", "League movement"}},
{"regulation_rank", {"Platz", "Rank"}},
{"regulation_to", {"in", "to"}},
{"regulation_closed", {"Kein regulärer Auf- oder Abstieg.", "No regular promotion or relegation."}},
{"regulation_unspecified", {"Nicht im OBW festgelegt.", "Not specified in the OBW."}},
{"regulation_amateur_pool",
{"Nachrückerpool der untersten Spielklasse", "Lowest-tier newcomer pool"}},
{"regulation_declared", {"Im OBW festgelegt", "Declared in the OBW"}},
{"regulation_classic", {"Classic-Verfahrensregel", "Classic adapter policy"}},
{"regulation_classic_movement_note",
{"Reguläre Plätze. Lizenzentzüge können die Saisonentscheidung ändern. Die Zuordnung zu parallelen "
"Ligen erfolgt beim Saisonwechsel.",
"Regular places. License withdrawals can change the season outcome. Allocation to parallel leagues "
"occurs at season rollover."}},
{"regulation_classic_intro",
{"Übernommenes Classic-Verfahren, keine heutigen UEFA-Regeln.",
"Inherited Classic policy; current UEFA regulations do not apply."}},
{"regulation_classic_champion",
{"Meister qualifiziert für die Champions League. Titelverteidiger werden zusätzlich berücksichtigt; "
"ist dieser bereits Meister, rückt der Zweite nach.",
"Champion qualifies for the Champions League. The holder also qualifies; if already champion, the "
"runner-up receives the extra place."}},
{"regulation_classic_cup",
{"Nationaler Pokalsieger qualifiziert für den Pokalsieger-Wettbewerb, bei bestehender Qualifikation "
"der Finalist. Ausländische Pokalvertreter werden im Classic-Verfahren bestimmt.",
"Domestic cup winner qualifies for the Cup Winners’ Cup; the finalist replaces an already "
"qualified winner. Foreign cup entrants follow the Classic selection policy."}},
{"regulation_classic_uefa",
{"reguläre Plätze nach Tabellenrang; bereits qualifizierte Teams werden übersprungen.",
"regular places by league rank; already qualified teams are skipped."}},
{"regulation_classic_holders",
{"Titelverteidiger von UEFA- und Pokalsieger-Cup sowie Doppelqualifikationen können zusätzliche "
"Plätze und Nachrücker auslösen.",
"UEFA/Cup Winners’ Cup holders and overlapping qualifications may produce extra places or "
"replacements."}},
{"regulation_runtime",
{"Teilnehmer werden durch das hinterlegte Classic-Verfahren bestimmt.",
"Entrants are resolved by the stored Classic policy."}},
{"regulation_winner", {"Sieger", "Winner"}},
{"regulation_runner_up", {"Finalist / Zweiter", "Runner-up"}},
{"regulation_next_unqualified", {"Nächstes noch nicht qualifiziertes Team", "Next unqualified team"}},
{"regulation_holder", {"Titelverteidiger", "Title holder"}},
{"regulation_coefficient",
{"Qualifikation nach Koeffizientenrang", "Qualification by coefficient rank"}},
{"regulation_fallback", {"Nachrücken", "Replacement"}},
{"regulation_stage", {"Phase", "Stage"}},
{"regulation_stages", {"Wettbewerbsphasen & Spielregeln", "Competition stages & match rules"}},
{"regulation_show_source", {"OBW-Details anzeigen", "Show OBW details"}},
{"regulation_hide_source", {"OBW-Details ausblenden", "Hide OBW details"}},
{"regulation_preserved",
{"Unveränderte Angaben aus world/rules.json. Diese Ansicht ist schreibgeschützt.",
"Unmodified values from world/rules.json. This view is read only."}},
{"regulation_type_league", {"Liga", "League"}},
{"regulation_type_cup", {"Pokal", "Cup"}},
{"regulation_type_national_team", {"Nationalmannschaften", "National teams"}},
{"regulation_type_club_international",
{"Internationaler Vereinswettbewerb", "International club competition"}},
{"regulation_type_friendly", {"Freundschaftsspiel", "Friendly"}},
{"regulation_type_indoor", {"Hallenturnier", "Indoor tournament"}},
{"rule_type_attribute_set", {"Spielwerte & Wertebereiche", "Attributes & ranges"}},
{"rule_type_fixture_tables", {"Spielplanverfahren", "Fixture generation"}},
{"rule_type_legacy_ladder", {"Classic-Ligenpyramide", "Classic league pyramid"}},
{"rule_type_training_camps", {"Trainingslager", "Training camps"}},
{"rule_type_credit_rates", {"Kreditregeln", "Credit rules"}},
{"rule_type_classic_runtime", {"Classic-Verfahren", "Classic runtime policies"}},
{"rule_type_classic_data_regions", {"Übernommene Classic-Regeldaten", "Preserved Classic rule data"}},
{"comparison", {"Wertevergleich", "Comparison"}},
{"comparison_title", {"Stärken & Gehälter", "Ratings & salaries"}},
{"subtitle_comparison",