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

+2 -1
View File
@@ -3,6 +3,7 @@ import hashlib
from cryptography.fernet import Fernet, InvalidToken
from django.conf import settings
from django.utils.translation import gettext as _
def _fernet():
@@ -22,4 +23,4 @@ def decrypt_secret(value):
try:
return _fernet().decrypt(value.encode("ascii")).decode("utf-8")
except InvalidToken as exc:
raise ValueError("Stored endpoint password cannot be decrypted. Re-enter it on the endpoint.") from exc
raise ValueError(_("Stored endpoint password cannot be decrypted. Re-enter it on the endpoint.")) from exc