feat: translate UI to English with German locale

Use English source strings wrapped for gettext, ship a German catalogue, and check that README and package metadata match the PluginConfig.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-10-26 21:24:20 +01:00
1 parent 34be43bffb
commit e9d9b59d16
12 files changed
+225 -30

No files matched your search

+24 -1
View File
@@ -30,7 +30,7 @@ IP ranges created automatically from the saved IP addresses:
## Compatibility
- NetBox `4.6.5` – `4.7.x` (verified with 4.7.2)
- NetBox `4.6.5` – `4.7.x` (verified with 4.7.3)
- Python `>=3.12`
## Installation
@@ -169,6 +169,29 @@ NetBox has no separate core model called organisation. The overview maps
organisation to NetBox `Region` and includes child regions and their sites and
locations.
### Language
The plugin is available in English (source) and German. Switch the display
language as usual in the user profile (**Preferences → Language**).
Translations live in `netbox_better_ips/locale/de/LC_MESSAGES/`.
## Development and tests
```bash
python -m unittest discover -s tests
```
The tests check that the NetBox range in this README and the package version
match the `PluginConfig`, and that the translations are shipped.
After changing user-visible strings, update and compile the catalogue from
within `netbox_better_ips/`:
```bash
django-admin makemessages -l de --no-location
msgfmt --check -o locale/de/LC_MESSAGES/django.mo locale/de/LC_MESSAGES/django.po
```
## License
Apache License 2.0 — see [LICENSE](LICENSE).