feat(i18n): English source strings with German translation

All UI texts and generated document texts use gettext; exports follow the user's language. Adds a check that README and PluginConfig version ranges match.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
MrBlakeandClaude Opus 5.5 committed 2026-10-26 21:27:47 +01:00
1 parent 0d046f3a9d
commit 9dba7e07a0
35 files changed
+1841 -364

No files matched your search

+4 -1
View File
@@ -1,3 +1,6 @@
from django.utils.translation import gettext as _
class MissingDependency(Exception):
pass
@@ -18,6 +21,6 @@ def render(doc, fmt, request=None):
try:
from weasyprint import HTML
except (ImportError, OSError) as e:
raise MissingDependency(f"PDF-Export benötigt WeasyPrint (pip install weasyprint + Pango): {e}")
raise MissingDependency(_("PDF export requires WeasyPrint (pip install weasyprint + Pango): %(error)s") % {"error": e})
base_url = request.build_absolute_uri("/") if request else None
return HTML(string=html, base_url=base_url).write_pdf(), "application/pdf", "pdf"