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:
1 parent
409b239fca
commit
72e04fe086
21 files changed
+713
-156
No files matched your search
@@ -2,6 +2,7 @@ from django.contrib.auth.mixins import UserPassesTestMixin
|
||||
from django.http import HttpResponse
|
||||
from django.shortcuts import render
|
||||
from django.utils.text import slugify
|
||||
from django.utils.translation import gettext as _
|
||||
from django.views import View
|
||||
from netbox.plugins import get_plugin_config
|
||||
|
||||
@@ -25,6 +26,15 @@ class DashboardView(UserPassesTestMixin, View):
|
||||
"import_form": import_form or ImportForm(prefix="import"),
|
||||
"report": report,
|
||||
"manifest": manifest,
|
||||
"js_messages": {
|
||||
"preparing_export": _("Preparing export ..."),
|
||||
"transferring_zip": _("Transferring ZIP ..."),
|
||||
"export_done": _("Export completed"),
|
||||
"export_failed": _("Export failed"),
|
||||
"uploading": _("Uploading archive ..."),
|
||||
"processing": _("Checking and processing archive ..."),
|
||||
"import_failed": _("Import failed"),
|
||||
},
|
||||
}
|
||||
|
||||
def get(self, request):
|
||||
|
||||
Reference in new issue
Block a user