From ee6fbc784fbee0d7c895c5befc43ef0eb6582e5d Mon Sep 17 00:00:00 2001 From: Albrecht Degering Date: Mon, 24 Aug 2026 01:15:41 +0200 Subject: [PATCH] docs: complete German structured documentation --- pyproject.toml | 2 +- src/govoplan_templates/__init__.py | 2 +- .../german_structured_documentation.py | 58 +++++++++++++++++++ src/govoplan_templates/backend/manifest.py | 10 +++- webui/package.json | 2 +- 5 files changed, 70 insertions(+), 4 deletions(-) create mode 100644 src/govoplan_templates/backend/german_structured_documentation.py diff --git a/pyproject.toml b/pyproject.toml index 3820add..809ac31 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "govoplan-templates" -version = "0.1.19" +version = "0.1.20" description = "GovOPlaN typed template library and deterministic printable rendering." readme = "README.md" requires-python = ">=3.12" diff --git a/src/govoplan_templates/__init__.py b/src/govoplan_templates/__init__.py index e9ce9a7..5c7f3e2 100644 --- a/src/govoplan_templates/__init__.py +++ b/src/govoplan_templates/__init__.py @@ -1,3 +1,3 @@ """GovOPlaN Templates module.""" -__version__ = "0.1.19" +__version__ = "0.1.20" diff --git a/src/govoplan_templates/backend/german_structured_documentation.py b/src/govoplan_templates/backend/german_structured_documentation.py new file mode 100644 index 0000000..1ced8e5 --- /dev/null +++ b/src/govoplan_templates/backend/german_structured_documentation.py @@ -0,0 +1,58 @@ +"""German translations for public structured documentation metadata.""" + +from __future__ import annotations + +from typing import Any + + +GERMAN_STRUCTURED_TRANSLATIONS: dict[str, dict[str, Any]] = {'templates.data-subject-requests': {'consequence_classes': {'exclude_template_payloads': 'Gibt ' + 'keinen ' + 'Template-Inhalt ' + 'zurück ' + 'oder ' + 'rendert ' + 'Inputs ' + 'und ' + 'Outputs.', + 'export_template_attribution': 'Returns ' + 'minimiert ' + 'Autor, ' + 'Publikation ' + 'und ' + 'Render-Aktivität.'}}, + 'templates.reference.fields-and-consequences': {'consequence_classes': {'delete_template': 'Verhindert ' + 'zukünftige ' + 'Auswahl, ' + 'ohne ' + 'beibehaltene ' + 'Revisionen ' + 'neu ' + 'zu ' + 'schreiben ' + 'oder ' + 'Nachweise ' + 'zu ' + 'erbringen.', + 'publish_revision': 'Macht ' + 'die ' + 'ausgewählte ' + 'unveränderliche ' + 'Revision ' + 'für ' + 'die ' + 'Endverbraucherproduktion ' + 'geeignet.', + 'render_final': 'Erstellt ' + 'gespeicherte ' + 'Render-Nachweise ' + 'und kann ' + 'ein ' + 'Artefakt ' + 'durch ' + 'Dateien ' + 'beibehalten.', + 'save_revision': 'Erstellt ' + 'eine ' + 'neue ' + 'unveränderliche ' + 'Template-Revision.'}}} diff --git a/src/govoplan_templates/backend/manifest.py b/src/govoplan_templates/backend/manifest.py index 9a5435e..9aab7d7 100644 --- a/src/govoplan_templates/backend/manifest.py +++ b/src/govoplan_templates/backend/manifest.py @@ -1,5 +1,8 @@ from __future__ import annotations +from govoplan_core.core.modules import with_documentation_structured_translations +from govoplan_templates.backend.german_structured_documentation import GERMAN_STRUCTURED_TRANSLATIONS + from pathlib import Path from govoplan_core.core.files import CAPABILITY_FILES_ARTIFACT_STORE @@ -40,7 +43,7 @@ from govoplan_templates.backend.dsar_provider import ( MODULE_ID = "templates" MODULE_NAME = "Templates" -MODULE_VERSION = "0.1.19" +MODULE_VERSION = "0.1.20" READ_SCOPE = "templates:template:read" WRITE_SCOPE = "templates:template:write" @@ -545,5 +548,10 @@ manifest = ModuleManifest( ) +manifest = with_documentation_structured_translations( + manifest, locale="de", translations=GERMAN_STRUCTURED_TRANSLATIONS +) + + def get_manifest() -> ModuleManifest: return manifest diff --git a/webui/package.json b/webui/package.json index ddba613..b36c63e 100644 --- a/webui/package.json +++ b/webui/package.json @@ -1,6 +1,6 @@ { "name": "@govoplan/templates-webui", - "version": "0.1.19", + "version": "0.1.20", "private": true, "type": "module", "main": "src/index.ts",