Add sortable editor ratings and payroll comparisons (by Codex)
OBW Editor / editor (linux-x64, ubuntu-24.04) (push) Waiting to run
OBW Editor / editor (macos-arm64, macos-14) (push) Waiting to run
OBW Editor / editor (windows-x64, windows-2022) (push) Waiting to run

This commit is contained in:
Codex committed 2026-10-23 05:26:10 +02:00
1 parent a447d9282a
commit 221478b629
26 files changed
+1311 -43

No files matched your search

+78 -17
View File
@@ -89,6 +89,49 @@ 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"}},
{"comparison", {"Wertevergleich", "Comparison"}},
{"comparison_title", {"Stärken & Gehälter", "Ratings & salaries"}},
{"subtitle_comparison",
{"Spieler, Mannschaften und Ligen im Vergleich", "Compare players, teams and leagues"}},
{"teams", {"Mannschaften", "Teams"}},
{"leagues", {"Ligen", "Leagues"}},
{"physical_strength", {"Körperkraft", "Physical strength"}},
{"comparison_columns", {"Spalten auswählen", "Choose columns"}},
{"comparison_columns_hint",
{"Spielwerte einblenden. Weitere Spalten sind horizontal erreichbar.",
"Select attributes. Scroll horizontally to see further columns."}},
{"comparison_all_sets", {"Alle Spieler · Systeme getrennt", "All players · separate systems"}},
{"comparison_all_players", {"alle Spieler", "all players"}},
{"all_columns", {"Alle auswählen", "Select all"}},
{"no_columns", {"Keine auswählen", "Select none"}},
{"comparison_player_values", {"Originalskala des Datensatzes", "Dataset's original scale"}},
{"comparison_mean_values", {"Spielwerte: Durchschnitt je Spieler", "Attributes: mean per player"}},
{"comparison_known_values", {"bekannte Werte", "known values"}},
{"salary_season", {"Gehalt / Saison", "Salary / season"}},
{"salary_total", {"Gehaltssumme / Saison", "Total salary / season"}},
{"salary_average", {"Ø Gehalt / Spieler", "Mean salary / player"}},
{"salary_coverage", {"Gehälter bekannt", "Salaries known"}},
{"salary_missing", {"Gehälter unbekannt", "salaries unknown"}},
{"salary_ambiguous", {"mehrere aktive Verträge", "multiple active contracts"}},
{"comparison_salary_note",
{"Gehälter je Saison in Weltwährung. * Nur bekannte Gehälter; Summe/Ø unvollständig. Stichtag",
"Salaries per season in world currency. * Known salaries only; total/mean incomplete. As of"}},
{"comparison_scope_note",
{"Gesamter Kader inklusive Reserven. Fehlende Spielwerte bleiben leer; Ø nur aus bekannten Werten.",
"Full squads including reserves. Missing attributes stay blank; means use known values only."}},
{"comparison_mixed_note",
{"Für Stärken ein Attributsystem auswählen. Unterschiedliche Systeme werden nicht vermischt.",
"Choose an attribute set to compare ratings. Different systems are not mixed."}},
{"comparison_excluded", {"Quellenduplikate nicht eingerechnet", "source duplicates excluded"}},
{"comparison_fictional",
{"Der Datensatz enthält als fiktiv oder geschätzt gekennzeichnete Ergänzungen.",
"The dataset includes additions marked as fictional or estimated."}},
{"comparison_sort_hint", {"Spaltenkopf anklicken zum Sortieren", "Click a column heading to sort"}},
{"invalid_attribute_set",
{"Dieses Attributsystem ist nicht im Datenbestand.",
"This attribute set is not present in the dataset."}},
{"invalid_comparison_sort",
{"Diese Vergleichsspalte ist nicht verfügbar.", "This comparison column is unavailable."}},
{"invalid_manifest",
{"Die Kennzeichnung der Editorwelt ist ungültig.", "The editor world identification is invalid."}},
{"facilities", {"Ausstattung", "Facilities"}},
@@ -109,9 +152,11 @@ std::string tr(const std::string &language, const std::string &key) {
{"x", {"Links", "Left"}},
{"y", {"Oben", "Top"}},
{"open_folder", {"Entpackte Welt öffnen", "Open unpacked world"}},
{"subtitle_overview", {"Ein Arbeitsplatz für deine Fußballwelt", "A workspace for your football world"}},
{"subtitle_overview",
{"Ein Arbeitsplatz für deine Fußballwelt", "A workspace for your football world"}},
{"subtitle_nations", {"Länder, Verbände und Simulation", "Countries, associations and simulation"}},
{"subtitle_competitions", {"Ligen, Zuordnungen und Pokalbilder", "Leagues, membership and trophy images"}},
{"subtitle_competitions",
{"Ligen, Zuordnungen und Pokalbilder", "Leagues, membership and trophy images"}},
{"subtitle_clubs", {"Stammdaten, Farben und Spielstätten", "Details, colours and home grounds"}},
{"subtitle_players",
{"Spielerdaten und quellengerechte Spielwerte", "Player details and source-specific attributes"}},
@@ -120,7 +165,8 @@ std::string tr(const std::string &language, const std::string &key) {
{"subtitle_assets", {"Wappen, Porträts und Pokale", "Crests, portraits and trophies"}},
{"subtitle_review", {"Quellen vergleichen", "Compare sources"}},
{"subtitle_roster", {"Vollständige Kader ohne Datenverlust", "Complete squads without losing data"}},
{"subtitle_changes", {"Gemeinsame Historie von Oberfläche und MCP", "One history for the interface and MCP"}},
{"subtitle_changes",
{"Gemeinsame Historie von Oberfläche und MCP", "One history for the interface and MCP"}},
{"preservation_note",
{"Quellen, Bilder und Erweiterungen bleiben erhalten. Bearbeitungen "
"ändern keine Originalinstallation.",
@@ -136,12 +182,14 @@ std::string tr(const std::string &language, const std::string &key) {
"Drag a rectangle on the image or enter crop values. Without cropping, "
"the original resolution is retained."}},
{"video_failed",
{"Die Grafikausgabe benötigt OpenGL 3.3 (macOS: 4.1).", "The interface requires OpenGL 3.3 (macOS: 4.1)."}},
{"Die Grafikausgabe benötigt OpenGL 3.3 (macOS: 4.1).",
"The interface requires OpenGL 3.3 (macOS: 4.1)."}},
{"ui_assets_missing",
{"Editor-Oberfläche fehlt. Bitte das vollständige Paket entpacken.",
"Editor interface files are missing. Please extract the complete "
"package."}},
{"dialog_failed", {"Der Dateidialog konnte nicht geöffnet werden.", "The file dialog could not be opened."}},
{"dialog_failed",
{"Der Dateidialog konnte nicht geöffnet werden.", "The file dialog could not be opened."}},
{"invalid_attributes", {"Ungültige Spielwerte.", "Invalid player attributes."}},
{"app", {"OpenBMH Editor", "OpenBMH Editor"}},
{"editor_tagline", {"OBW-Dateneditor", "OBW world editor"}},
@@ -223,6 +271,7 @@ std::string tr(const std::string &language, const std::string &key) {
{"condition", {"Kondition", "Condition"}},
{"form", {"Form", "Form"}},
{"overall", {"Gesamtstärke", "Overall"}},
{"tacticalawareness", {"Taktisches Verständnis", "Tactical awareness"}},
{"potential", {"Potenzial", "Potential"}},
{"acceleration", {"Antritt", "Acceleration"}},
{"sprintspeed", {"Sprinttempo", "Sprint speed"}},
@@ -313,7 +362,8 @@ std::string tr(const std::string &language, const std::string &key) {
{"resolve", {"Auswahl übernehmen", "Use selected value"}},
{"resolved", {"Erledigt", "Resolved"}},
{"unresolved", {"Offen", "Open"}},
{"review_hint", {"Quellen vergleichen und eine Angabe auswählen.", "Compare sources and choose a value."}},
{"review_hint",
{"Quellen vergleichen und eine Angabe auswählen.", "Compare sources and choose a value."}},
{"roster_hint",
{"Verein wählen, Spieler verschieben oder zwei Spieler tauschen.",
"Choose a club, move a player or swap two players."}},
@@ -326,7 +376,8 @@ std::string tr(const std::string &language, const std::string &key) {
{"errors", {"Fehler", "Errors"}},
{"no_changes", {"Noch keine Änderungen", "No changes yet"}},
{"dirty_prompt", {"Änderungen speichern?", "Save changes?"}},
{"dirty_detail", {"Diese Welt enthält ungespeicherte Änderungen.", "This world has unsaved changes."}},
{"dirty_detail",
{"Diese Welt enthält ungespeicherte Änderungen.", "This world has unsaved changes."}},
{"delete_prompt", {"Datensatz wirklich löschen?", "Delete this record?"}},
{"new_name", {"Name des neuen Datensatzes", "Name of the new record"}},
{"new_title", {"Neue Fußballwelt", "New football world"}},
@@ -342,22 +393,27 @@ std::string tr(const std::string &language, const std::string &key) {
{"Speichern fehlgeschlagen. Die bisherige Datei bleibt erhalten.",
"Saving failed. The previous file is retained."}},
{"invalid_archive",
{"Das Archiv ist beschädigt oder wird nicht unterstützt.", "The archive is damaged or unsupported."}},
{"unsupported_archive", {"Dieses Archivformat wird nicht unterstützt.", "This archive format is unsupported."}},
{"Das Archiv ist beschädigt oder wird nicht unterstützt.",
"The archive is damaged or unsupported."}},
{"unsupported_archive",
{"Dieses Archivformat wird nicht unterstützt.", "This archive format is unsupported."}},
{"archive_limit",
{"Das Datenpaket überschreitet die unterstützten Grenzen.", "The data package exceeds the supported limits."}},
{"Das Datenpaket überschreitet die unterstützten Grenzen.",
"The data package exceeds the supported limits."}},
{"unsafe_path", {"Unzulässiger Dateipfad.", "Invalid file path."}},
{"size_limit", {"Die Datei ist zu groß.", "The file is too large."}},
{"missing_manifest", {"Keine OBW-Welt gefunden.", "No OBW world found."}},
{"not_world", {"Bitte eine OBW-Startdatenbank öffnen.", "Please open an OBW starting world."}},
{"unsupported_version", {"Diese Formatversion wird nicht unterstützt.", "This format version is unsupported."}},
{"unsupported_version",
{"Diese Formatversion wird nicht unterstützt.", "This format version is unsupported."}},
{"invalid_json", {"Die JSON-Daten sind ungültig.", "The JSON data is invalid."}},
{"invalid_table", {"Eine Datentabelle ist ungültig.", "A data table is invalid."}},
{"unknown_table", {"Unbekannter Datenbereich.", "Unknown data table."}},
{"missing_asset", {"Das Bild fehlt im Datenpaket.", "The image is missing from the package."}},
{"unsafe_asset", {"Das Bild kann nicht übernommen werden.", "The image cannot be imported."}},
{"invalid_image", {"Das Bild konnte nicht gelesen werden.", "The image could not be decoded."}},
{"image_dimensions", {"Das Bild hat nicht unterstützte Abmessungen.", "The image dimensions are unsupported."}},
{"image_dimensions",
{"Das Bild hat nicht unterstützte Abmessungen.", "The image dimensions are unsupported."}},
{"invalid_transform",
{"Der Bildzuschnitt oder Drehwinkel ist ungültig.", "The image crop or rotation is invalid."}},
{"external_svg_resource",
@@ -367,7 +423,8 @@ std::string tr(const std::string &language, const std::string &key) {
"SVG."}},
{"image_encode_failed",
{"Das bearbeitete Bild konnte nicht erstellt werden.", "The edited image could not be created."}},
{"obw_only", {"Es kann ausschließlich als .obw gespeichert werden.", "Only .obw output is supported."}},
{"obw_only",
{"Es kann ausschließlich als .obw gespeichert werden.", "Only .obw output is supported."}},
{"preserve_source",
{"Bitte unter einem neuen Namen speichern. Der Classic-Import bleibt "
"erhalten.",
@@ -381,8 +438,10 @@ std::string tr(const std::string &language, const std::string &key) {
{"Eine Kennung fehlt oder ist mehrfach vorhanden.", "An identifier is missing or duplicated."}},
{"missing_reference", {"Ein verknüpfter Datensatz fehlt.", "A referenced record is missing."}},
{"attribute_range",
{"Ein Spielwert liegt außerhalb seines Wertebereichs.", "An attribute is outside its declared range."}},
{"unknown_attribute_set", {"Das Attributsystem ist nicht definiert.", "The attribute set is not defined."}},
{"Ein Spielwert liegt außerhalb seines Wertebereichs.",
"An attribute is outside its declared range."}},
{"unknown_attribute_set",
{"Das Attributsystem ist nicht definiert.", "The attribute set is not defined."}},
{"missing_name", {"Ein Name fehlt.", "A name is missing."}},
{"missing_birthday", {"Das Geburtsdatum ist unbekannt.", "The date of birth is unknown."}},
{"review_open", {"Eine Quellenfrage ist noch offen.", "A source decision is still open."}},
@@ -392,7 +451,8 @@ std::string tr(const std::string &language, const std::string &key) {
"The record is still referenced. Please update its links first."}},
{"record_missing", {"Der Datensatz wurde nicht gefunden.", "The record was not found."}},
{"immutable_id",
{"Kennungen können nicht nachträglich geändert werden.", "Identifiers cannot be changed after creation."}},
{"Kennungen können nicht nachträglich geändert werden.",
"Identifiers cannot be changed after creation."}},
{"stale_revision",
{"Die Daten wurden inzwischen geändert. Bitte die Ansicht "
"aktualisieren.",
@@ -404,7 +464,8 @@ std::string tr(const std::string &language, const std::string &key) {
{"invalid_settings", {"Die Optionen sind ungültig.", "The options are invalid."}},
{"output_parent_missing", {"Der Zielordner existiert nicht.", "The output folder does not exist."}},
{"destination_exists", {"Die Zieldatei existiert bereits.", "The destination file already exists."}},
{"duplicate_entry", {"Das Archiv enthält doppelte Dateinamen.", "The archive contains duplicate entry names."}},
{"duplicate_entry",
{"Das Archiv enthält doppelte Dateinamen.", "The archive contains duplicate entry names."}},
{"server_failed",
{"MCP konnte nicht gestartet werden. Bitte den Port prüfen.",
"MCP could not be started. Please check the port."}},