Merge branch 'feat/i18n' into main

Bring the English/German translation up to date with main. Conflicts are
resolved in favour of main's features (rack photos, floor plans, CPU & RAM,
virtualization clusters, location overview, merged disk table), with their
texts now translatable and added to the German catalogue.

Bump version to 0.17.0.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-11-09 15:17:06 +01:00
commit 38b3ec2a27
37 files changed
+2093 -419

No files matched your search

+2 -1
View File
@@ -1,5 +1,6 @@
"""CPU & RAM aus dem Plugin Netbox-Utilities (netbox_utilities.DeviceHardware)."""
from django.apps import apps
from django.utils.translation import gettext as _
def is_installed():
@@ -38,7 +39,7 @@ def cpu_text(device):
if not hw or not hw.cpu_id:
return None
cores, threads = cores_threads(hw)
return f"{hw.cpu_display}\n{cores} Kerne / {threads} Threads"
return f"{hw.cpu_display}\n" + _("%(cores)s cores / %(threads)s threads") % {"cores": cores, "threads": threads}
def ram_text(device):