feat(i18n): make UI translatable and add German translation

Wraps all user-visible strings (navigation, model fields, template, job and validation messages) in gettext and ships a German catalogue. A test keeps the documented NetBox range in line 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:23:52 +01:00
1 parent 4897f97865
commit b8f93fc11c
13 files changed
+635 -47

No files matched your search

+3 -2
View File
@@ -6,6 +6,7 @@ from dataclasses import dataclass, field
from django.contrib.contenttypes.models import ContentType
from django.db import transaction
from django.db.models import Sum
from django.utils.translation import gettext as _
from dcim.models import MACAddress, Platform
from ipam.models import IPAddress
from virtualization.models import VMInterface, VirtualDisk, VirtualMachine
@@ -79,7 +80,7 @@ class VMwareClient:
def __enter__(self):
if SmartConnect is None:
raise VMwareConnectionError("pyVmomi is not installed in the NetBox Python environment.")
raise VMwareConnectionError(_("pyVmomi is not installed in the NetBox Python environment."))
ssl_context = None
if not self.endpoint.validate_ssl:
@@ -224,7 +225,7 @@ class VMwareImporter:
def sync(self):
if self.endpoint.provider != EndpointProviderChoices.PROVIDER_VMWARE:
raise VMwareConnectionError("Legacy Proxmox endpoints are no longer supported. Delete this endpoint.")
raise VMwareConnectionError(_("Legacy Proxmox endpoints are no longer supported. Delete this endpoint."))
result = SyncResult()
platforms = list(Platform.objects.all())