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:
MrBlakeandClaude Opus 5.5 committed 2026-10-26 21:26:52 +01:00
1 parent 409b239fca
commit 72e04fe086
21 files changed
+713 -156

No files matched your search

+5 -2
View File
@@ -6,6 +6,7 @@ from django.apps import apps
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
from django.db import models
from django.utils.translation import gettext as _
from .codec import object_key
from .exceptions import GraphLimitError
@@ -153,8 +154,10 @@ class ObjectGraph:
object_count = len(self.members) + len(self.dependencies)
if object_count > self.max_objects:
raise GraphLimitError(
f"Der Export würde mehr als {self.max_objects} Objekte enthalten. "
"Bitte den Bereich verkleinern oder max_objects erhöhen."
_(
"The export would contain more than %(max)s objects. "
"Narrow the scope or increase max_objects."
) % {"max": self.max_objects}
)
def add_member(self, obj) -> bool: