Skip to content

Commit 4116f36

Browse files
committed
feat(i18n): Tier-2 6-Sprachen-Architektur nach Policy P-006 (DE, EN, ES, ZH, JA, RU)
1 parent a106528 commit 4116f36

12 files changed

Lines changed: 1846 additions & 8 deletions

‎CHANGELOG.md‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@ Alle wesentlichen Änderungen an CodeBox werden hier dokumentiert.
1212

1313
## [Unreleased]
1414

15+
### Added (I18N Expansion & Tier-2 6-Sprachen-Architektur 2026-09-30)
16+
- **Policy P-006 Tier-2 6-Sprachen-Standard (`translator.py`, `manage_translations.py`, `locales/translations.json`)**:
17+
- `translator.py`: Vollwertiges `TranslationSystem` v2.0 mit 6 Standardsprachen (`de`, `en`, `es`, `zh`, `ja`, `ru`), deterministischer 4-Stufen-Fallback-Kette (`target -> en -> de -> key`), Systemsprachenerkennung (`detect_system_language()`), thread-sicherem Singleton `get_translator()` und globalem Helper `t(key, **kwargs)` mit kwargs-Interpolation und Fehlerisolation.
18+
- `locales/translations.json`: 95 UI-, Menü-, Dialog-, Status- und Aktionsschlüssel lückenlos über alle 6 Sprachen kuratiert (570 Strings, 100% Schlüsselparität, 0 fehlend, echte deutsche Umlaute und spanische Diakritika intakt).
19+
- `manage_translations.py`: CLI-Management- und CI-Auditing-Tool mit `--check`-Gate (Exit 0 bei 100% Parität) und `--stats`-Übersicht.
20+
- `config/__init__.py`: `"language": "de"` in `DEFAULT_SETTINGS` ergänzt.
21+
- `ui/settings_dialog.py`: Neues Sprachauswahlfeld ("Sprache:") mit nativer Anzeige aller 6 Sprachen in den Programmeinstellungen verankert.
22+
- `ui/main_window.py`: Neues Untermenü *Ansicht > Sprache* mit exklusiver `QActionGroup`-Auswahl für alle 6 Sprachen, dynamische Menü-Umschaltung via `retranslate_ui()` ohne Anwendungsneustart und synchrone Persistierung in den Einstellungen.
23+
- `README.es.md`: Vollständige spanische Gesamtdokumentation gemäß Leerlauf-Sprachzug mit 1:1 Parität zu allen 18 Abschnitten, wechselseitigen Ankern und synchronisierten Sprachumschaltern in `README.md` und `README_de.md`.
24+
- `tests/test_i18n.py`: 10 neue automatisierte Vertragstests für P-006-Sprachen, Fallback-Hierarchie, Schlüssel-Parität, Subprozess-CLI-Auditing, Umlaute, Einstellungen-Persistenz und dynamischen MainWindow-Sprachwechsel (100% bestanden).
25+
1526
### Fixed (Bugsweep 2026-09-29)
1627
- **Git Staging & Commit-Dialog (`ui/git_commit_dialog.py`, `ui/diff_viewer.py`, `features/git_integration.py`)**:
1728
- `_open_diff_viewer()`: Behebt unberechtigten `ImportError: cannot import name 'GitDiffDialog' from 'ui.diff_viewer'` beim Klick auf Diff-Schaltflächen im Commit-Dialog; `GitDiffDialog = DiffViewerDialog` als abwärtskompatiblen Alias in `ui/diff_viewer.py` verankert und in `ui/__init__.py` exportiert.

‎README.es.md‎

Lines changed: 414 additions & 0 deletions
Large diffs are not rendered by default.

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
[![Last Checked](https://img.shields.io/badge/last%20checked-2026--09--28-informational.svg)](llms.txt)
1919
[![llms.txt](https://img.shields.io/badge/llms.txt-available-green.svg)](llms.txt)
2020

21-
[Deutsch](README_de.md) | English
21+
English | [Deutsch](README_de.md) | [Español](README.es.md)
2222

2323
CodeBox is a local-first desktop IDE for Windows, Linux, and macOS developers who want a lightweight PySide6 code editor with multi-tab workspace, project tree, integrated terminal, Git status porcelain indicators, syntax highlighting, Language Server Protocol (LSP) diagnostics, and an extensible JSON/Python language plugin architecture.
2424

‎README_de.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
[![Letzte Prüfung](https://img.shields.io/badge/letzte%20pr%C3%BCfung-2026--09--28-informational.svg)](llms.txt)
1919
[![llms.txt](https://img.shields.io/badge/llms.txt-verf%C3%BCgbar-green.svg)](llms.txt)
2020

21-
[English](README.md) | Deutsch
21+
[English](README.md) | Deutsch | [Español](README.es.md)
2222

2323
CodeBox ist eine lokale Desktop-IDE für Windows-, Linux- und macOS-Entwickler, die einen leichtgewichtigen PySide6-Codeeditor mit Multi-Tab-Arbeitsbereich, Projektbaum, integriertem Terminal, Git-Porcelain-Statusanzeigen, Syntax-Highlighting, Language-Server-Protocol-Diagnosen (LSP) und einer erweiterbaren deklarativen JSON/Python-Plugin-Architektur suchen.
2424

‎config/__init__.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"show_minimap": True,
1313
"recent_files": [],
1414
"recent_workspaces": [],
15-
"vim_mode": False
15+
"vim_mode": False,
16+
"language": "de"
1617
}
1718

1819
_SETTINGS_FILE = Path(__file__).parent / "settings.json"

‎llms.txt‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CodeBox - Local PySide6 Desktop Code Editor
22

3-
## Last-checked: 2026-09-28
3+
## Last-checked: 2026-09-30
44

55
> CodeBox is a local-first desktop IDE for Windows, Linux, and macOS developers who want a lightweight PySide6 code editor with multi-tab workspace, project tree, integrated terminal, Git status porcelain indicators, syntax highlighting, Language Server Protocol (LSP) diagnostics, and an extensible JSON/Python language plugin architecture.
66

@@ -10,6 +10,7 @@ Part of the dev-bricks family. Python, MIT.
1010

1111
- [README.md](https://github.com/dev-bricks/CodeBox/blob/main/README.md): Primary documentation, installation guide, system architecture flowchart, sequence diagram, capabilities table, comparative matrix, and features.
1212
- [README_de.md](https://github.com/dev-bricks/CodeBox/blob/main/README_de.md): German entry point with localized architecture, workflow diagrams, setup, privacy, and status notes.
13+
- [README.es.md](https://github.com/dev-bricks/CodeBox/blob/main/README.es.md): Spanish entry point with localized architecture, workflow diagrams, setup, privacy, and status notes.
1314
- [NOTICE](https://github.com/dev-bricks/CodeBox/blob/main/NOTICE): Copyright attribution and open-bricks umbrella metadata.
1415
- [THIRD_PARTY_LICENSES.md](https://github.com/dev-bricks/CodeBox/blob/main/THIRD_PARTY_LICENSES.md): Level 1 Software Bill of Materials (SBOM) and governance invariants (`INV-LOCAL-01` to `INV-SLA-10`).
1516
- [SECURITY.md](https://github.com/dev-bricks/CodeBox/blob/main/SECURITY.md): Bilingual security policy, supported versions, zero-egress invariants, and reporting protocols.
@@ -36,11 +37,13 @@ Part of the dev-bricks family. Python, MIT.
3637
- **Project Tree**: File tree with proxy filters, custom context menus, and Git status porcelain overlays.
3738
- **Minimap & Code Navigation**: High-performance cached minimap code preview, bracket auto-closing, and precise go-to-line navigation.
3839
- **Theme System**: Fusion palette combined with dynamic light/dark stylesheet configurations.
40+
- **Internationalization (I18N Tier-2)**: Native Policy P-006 support across 6 standard languages (German, English, Spanish, Chinese, Japanese, Russian) with 4-tier fallback hierarchy, runtime UI switching without restart, and CLI parity auditing (`python manage_translations.py --check`).
3941

4042
## Commands
4143

4244
- `python main.py`: Launches the CodeBox desktop interface.
4345
- `python main.py --open <file>`: Launches and directly opens a target file path.
46+
- `python manage_translations.py --check`: Validates 100% key parity across all 6 Policy P-006 languages.
4447
- `build_exe.bat`: Uses PyInstaller to bundle the application into a standalone executable (`dist/CodeBox.exe`).
4548
- `pytest`: Runs the automated test suite (329 passed, 1 skipped, 100%).
4649
- `ruff check .`: Runs the codebase linting suite.

0 commit comments

Comments
 (0)