Skip to content

feat(i18n): eleven-language PWA and README World-Set - #3

Draft
lukisch wants to merge 2 commits into
masterfrom
codex/worldset-notespace-20261025
Draft

lukisch wants to merge 2 commits into
masterfrom
codex/worldset-notespace-20261025

Conversation

@lukisch

@lukisch lukisch commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Adds persistent interface-language selectors for all eleven World Set languages in the desktop Qt GUI and Web/PWA Companion, with Arabic RTL, translated accessibility labels and offline-cached PWA catalogs. The desktop catalog covers 294 source keys across eleven locales. Switching language preserves project data, identifiers, filenames and user content. ProjectSettings.language remains workspace-export metadata and does not select UI or generated-report language.

Synchronizes eleven complete README editions, language navigation and source-hash metadata with the implemented desktop and PWA behavior. Packages the translator and locale resources in the Python wheel and source archive. Version 1.0.0 is unchanged.

Validation: 83 Python GUI/translator/UX/export tests passed; independent live cycling of all eleven desktop locales confirmed persistence, RTL/LTR direction and preservation of data whose text matches interface labels. Earlier PWA integration passed 68 Node tests. Compileall, eleven-document code-block parity, source hashes, UTF-8 and diff checks passed. Wheel and sdist built successfully; an installed-wheel GUI smoke loaded the full catalog and verified its exact production hash.

Local packaging suite: two tests passed; the full installed RAG import test reached the existing chromadb import and failed because chromadb is absent on this host. The test remains unchanged in strength. All ten reported GitHub checks at commit 5827b69 passed, including the dependency-complete Linux/macOS source suites, Python 3.10/3.11/3.12 jobs and PWA tests. CI logs independently confirm 214 tests passed on each of Python 3.10, 3.11 and 3.12. Visible desktop/mobile device acceptance remains open.

Haiku candidates were reviewed/corrected by Luna and independently checked by Root for source binding, catalog coverage, placeholders, protected literals and runtime behavior. Draft for review; no merge, release or deployment.

Signed-off-by: Lukas Geiger <lukas@um-bruch.org>
@github-actions

Copy link
Copy Markdown

Welcome! 👋 Thanks for your first pull request in this repository.

A maintainer will review it soon. Please make sure:

  • Your changes are tested
  • Documentation is updated if needed
  • The PR description explains what and why

Thanks for contributing!

Signed-off-by: Lukas Geiger <lukas@um-bruch.org>

@lukisch lukisch left a comment •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review (Cloud-Bot, Zweitmodell): keine blockierenden Befunde, freigabefähig nach Owner-Sichtprüfung.

Head 5827b692, Basis master, mergeable_state: clean, alle 10 Checks grün.

Gelesen: translator.py, pyproject.toml, MANIFEST.in, web_companion/{library,app,sw}.js und die Locale-Struktur von ui-locales.js. Die README-Übersetzungen und gui_translations.json habe ich nicht Zeile für Zeile gelesen.

Lokal nachgeprüft (Linux, Python 3.11, PySide6 offscreen):

  • node --test web_companion/tests/*.mjs: 68/68 bestanden.
  • tests/test_gui_i18n.py + tests/test_translator.py: 17 bestanden.
  • tests/test_packaging.py: 2 Fehler, beide aus meiner Umgebung (altes System-setuptools lehnt das PEP-639-license ab, Modul build fehlt). In CI laufen beide grün; kein PR-Befund.

Positiv:

  • TranslationSystem.t() schreibt fehlende deutsche Strings nicht mehr beim bloßen Anzeigen in locales/translations.json. Das beseitigt einen stillen Schreibzugriff ins Installationsverzeichnis.
  • Robuste Ladepfade: kaputtes oder falsch typisiertes JSON führt zu leerem Katalog statt Absturz; Fallback-Kette bleibt aktuell → en → de → Quelltext.
  • PWA: ui-locales.js enthält nur die 5 neuen Sprachen (ar, bn, fr, hi, pt), die bestehenden 6 in library.js werden also nicht überschrieben. Der Service-Worker-Cache ist auf v5 gehoben und ui-locales.js steht in ASSETS, damit funktioniert offline auch nach dem Update. dir="rtl" wird für Arabisch gesetzt, aria-labels werden übersetzt.
  • Packaging: translator als py-module, locales/*.json als package-data und im MANIFEST.in.

Nicht blockierend:

  1. Laufzeit-Lücken landen nicht mehr automatisch in locales/translations.json. Das Erfassen neuer Strings übernimmt weiterhin manage_translations.py (eigener Quelltext-Scanner, unabhängig von t()). Für die neuen stabilen GUI-Schlüssel in gui_translations.json gibt es diesen Scanner aber nicht: neue Schlüssel müssen dort von Hand angelegt werden. Ein Satz dazu in der Entwicklerdoku würde helfen.
  2. normalizeUiLocaleCandidate nutzt startsWith("hi")/startsWith("bn") usw. Das ist für BCP-47-Tags ausreichend, würde aber auch z. B. ein hypothetisches hil (Hiligaynon) auf Hindi abbilden. Praktisch irrelevant, nur zur Kenntnis.
  3. Die PR-Beschreibung nennt selbst offene Punkte: sichtbare Desktop-/Mobile-Abnahme. Die RTL-Darstellung (Arabisch) sollte einmal real angesehen werden, bevor gemergt wird.

Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant