feat(i18n): translate UI to English and German

Use English as source language for all user-visible strings, wrap them for
translation and ship a German catalog. Add a test that keeps the README's
NetBox range in sync with min_version/max_version.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-10-26 21:25:38 +01:00
1 parent 133cb1d9fc
commit cce6e21a09
40 files changed
+1456 -244

No files matched your search

+16 -15
View File
@@ -1,3 +1,4 @@
from django.utils.translation import gettext_lazy as _
from utilities.choices import ChoiceSet
class NodeLabelItems(ChoiceSet):
@@ -18,19 +19,19 @@ class NodeLabelItems(ChoiceSet):
ASSET_TAG = 'assettag'
CHOICES = [
(DEVICE_NAME, 'Device Name'),
(DEVICE_TYPE, 'Device Type'),
(ROLE, 'Role'),
(DESCRIPTION, 'Description'),
(PRIMARY_IPV4, 'Primary IPv4'),
(PRIMARY_IPV6, 'Primary IPv6'),
(OUT_OF_BAND_IP, 'Out-of-band IP'),
(PLATFORM, 'Platform'),
(SERIAL, 'Serial'),
(TENANT, 'Tenant'),
(SITE, 'Site'),
(LOCATION, 'Location'),
(RACK, 'Rack'),
(VIRTUAL_CHASSIS, 'Virtual Chassis'),
(ASSET_TAG, 'Asset Tag'),
(DEVICE_NAME, _('Device Name')),
(DEVICE_TYPE, _('Device Type')),
(ROLE, _('Role')),
(DESCRIPTION, _('Description')),
(PRIMARY_IPV4, _('Primary IPv4')),
(PRIMARY_IPV6, _('Primary IPv6')),
(OUT_OF_BAND_IP, _('Out-of-band IP')),
(PLATFORM, _('Platform')),
(SERIAL, _('Serial')),
(TENANT, _('Tenant')),
(SITE, _('Site')),
(LOCATION, _('Location')),
(RACK, _('Rack')),
(VIRTUAL_CHASSIS, _('Virtual Chassis')),
(ASSET_TAG, _('Asset Tag')),
]