feat(i18n): translate UI and import messages to English with German catalogue
English is now the source language for the dashboard, forms, menu, JavaScript progress texts and all import/export messages; a complete German catalogue ships as package data. Tenant-error detection also accepts the error code and the active-language message of netbox_utilities, and no longer imports netbox_utilities when it is installed but not enabled. A test keeps the README NetBox range in sync with min_version/max_version. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
409b239fca
commit
72e04fe086
21 files changed
+713
-156
No files matched your search
@@ -219,12 +219,27 @@ conflict strategy **Abort import** still aborts on existing objects.
|
||||
- Encrypted credentials of NetBox-VM-Import are only usable with an identical
|
||||
Django `SECRET_KEY`; otherwise set the password again on the target.
|
||||
|
||||
### Language
|
||||
|
||||
The plugin is available in English (source) and German. Switch the display
|
||||
language as usual in the user profile (**Preferences → Language**); import
|
||||
reports and error messages follow it. Translations live in
|
||||
`netbox_export/locale/de/LC_MESSAGES/`.
|
||||
|
||||
## Development and tests
|
||||
|
||||
```bash
|
||||
python -m pytest
|
||||
```
|
||||
|
||||
After changing user-visible strings, update and compile the German catalogue:
|
||||
|
||||
```bash
|
||||
cd netbox_export
|
||||
django-admin makemessages -l de --no-location
|
||||
msgfmt -o locale/de/LC_MESSAGES/django.mo locale/de/LC_MESSAGES/django.po
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
Apache License 2.0 — see [LICENSE](LICENSE).
|
||||
Reference in new issue
Block a user