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

+3 -2
View File
@@ -3,6 +3,7 @@ from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import Http404, HttpResponse
from django.shortcuts import get_object_or_404, redirect, render
from django.utils import timezone
from django.utils.formats import date_format
from django.utils.text import slugify
from django.views import View
@@ -67,7 +68,7 @@ class ExportView(LoginRequiredMixin, View):
blocks=blocks,
meta={
"author": opts.get("author") or request.user.get_full_name() or request.user.username,
"date": timezone.localtime().strftime("%d.%m.%Y"),
"date": date_format(timezone.localdate(), "SHORT_DATE_FORMAT"),
},
branding=get_branding(opts["branding"]),
)
@@ -79,6 +80,6 @@ class ExportView(LoginRequiredMixin, View):
response = HttpResponse(content, content_type=content_type)
if ext != "html":
filename = f"{slugify(opts['title']) or 'dokumentation'}_{timezone.localdate():%Y%m%d}.{ext}"
filename = f"{slugify(opts['title']) or 'documentation'}_{timezone.localdate():%Y%m%d}.{ext}"
response["Content-Disposition"] = f'attachment; filename="{filename}"'
return response