diff --git a/package.json b/package.json index 5e8370e..716d8b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@govoplan/wiki-webui", - "version": "0.1.20", + "version": "0.1.21", "private": true, "description": "GovOPlaN governed collaborative Wiki module.", "type": "module", diff --git a/pyproject.toml b/pyproject.toml index 5c1a689..39cb4b6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "govoplan-wiki" -version = "0.1.20" +version = "0.1.21" description = "GovOPlaN governed collaborative Wiki module." readme = "README.md" requires-python = ">=3.12" diff --git a/src/govoplan_wiki/backend/german_structured_documentation.py b/src/govoplan_wiki/backend/german_structured_documentation.py new file mode 100644 index 0000000..b43065c --- /dev/null +++ b/src/govoplan_wiki/backend/german_structured_documentation.py @@ -0,0 +1,79 @@ +"""German translations for public structured documentation metadata.""" + +from __future__ import annotations + +from typing import Any + + +GERMAN_STRUCTURED_TRANSLATIONS: dict[str, dict[str, Any]] = {'wiki.admin.access-publishing': {'consequence_classes': {'publisher_mode': 'Die Verlagsautorität ' + 'wird an der ' + 'Aktionsgrenze erneut ' + 'bewertet.', + 'restricted_without_acl': 'Die ' + 'Konfiguration ' + 'wird ' + 'abgelehnt, um ' + 'eine nicht ' + 'erreichbare ' + 'oder ' + 'versehentlich ' + 'ausgesetzte ' + 'Ressource zu ' + 'verhindern.'}}, + 'wiki.admin.data-subject-requests': {'consequence_classes': {'erasure': 'Der Anbieter erstellt ' + 'nicht ausführbare ' + 'manuelle ' + 'Überprüfungsaktionen und ' + 'ändert automatisch keine ' + 'Wissensnachweise.', + 'uninstall': 'Anhaltende Wiki-Zeilen ' + 'blockieren die ' + 'Deinstallation, bis ' + 'die Migration, ' + 'Aufbewahrung oder ' + 'explizite ' + 'Pensionierung ' + 'abgeschlossen ist.'}}, + 'wiki.integrations.references-search': {'consequence_classes': {'connector_absent': 'Externe ' + 'Referenzen ' + 'können ' + 'aufgezeichnet ' + 'werden, ' + 'Synchronisation ' + 'oder ' + 'Migration ' + 'können ' + 'jedoch nicht ' + 'ausgeführt ' + 'werden.', + 'files_absent': 'Referenzen ' + 'bleiben nur ' + 'Metadaten und es ' + 'wird keine ' + 'binäre Operation ' + 'angeboten.', + 'search_absent': 'Veröffentlichte ' + 'Seiten sind ' + 'durch globale ' + 'Suche nicht ' + 'auffindbar.'}}, + 'wiki.module-boundary': {'consequence_classes': {'ownership': 'Wiki-Shops regulierten Text und ' + 'Referenzen, niemals binäre Inhalte ' + 'oder externe ' + 'Transportinformationen.'}}, + 'wiki.workflow.author-publish': {'consequence_classes': {'draft_after_publish': 'Die zuletzt ' + 'veröffentlichte ' + 'Revision bleibt ' + 'leserlich ' + 'sichtbar, bis ' + 'der neue Entwurf ' + 'explizit ' + 'veröffentlicht ' + 'wird.', + 'stale_revision': 'Das Schreiben gibt ' + 'einen Konflikt zurück ' + 'und bewahrt sowohl ' + 'die gespeicherte ' + 'Revision als auch den ' + 'Entwurf des ' + 'Anrufers.'}}} diff --git a/src/govoplan_wiki/backend/manifest.py b/src/govoplan_wiki/backend/manifest.py index 523f812..be34803 100644 --- a/src/govoplan_wiki/backend/manifest.py +++ b/src/govoplan_wiki/backend/manifest.py @@ -1,5 +1,8 @@ from __future__ import annotations +from govoplan_core.core.modules import with_documentation_structured_translations +from govoplan_wiki.backend.german_structured_documentation import GERMAN_STRUCTURED_TRANSLATIONS + from pathlib import Path from sqlalchemy import func @@ -52,7 +55,7 @@ from govoplan_wiki.backend.service import ( MODULE_ID = "wiki" MODULE_NAME = "Wiki" -MODULE_VERSION = "0.1.20" +MODULE_VERSION = "0.1.21" OPTIONAL_DEPENDENCIES = ( "files", "dms", @@ -574,5 +577,10 @@ manifest = ModuleManifest( ) +manifest = with_documentation_structured_translations( + manifest, locale="de", translations=GERMAN_STRUCTURED_TRANSLATIONS +) + + def get_manifest() -> ModuleManifest: return manifest diff --git a/tests/test_manifest.py b/tests/test_manifest.py index f3559df..edeada6 100644 --- a/tests/test_manifest.py +++ b/tests/test_manifest.py @@ -18,7 +18,7 @@ class WikiManifestTests(unittest.TestCase): def test_manifest_registers_complete_vertical_slice(self) -> None: manifest = get_manifest() self.assertEqual("wiki", manifest.id) - self.assertEqual("0.1.20", manifest.version) + self.assertEqual("0.1.21", manifest.version) self.assertEqual(("access",), manifest.dependencies) self.assertEqual( {READ_SCOPE, WRITE_SCOPE, COMMENT_SCOPE, PUBLISH_SCOPE, ADMIN_SCOPE}, diff --git a/webui/package.json b/webui/package.json index 3a2a319..22c3cfc 100644 --- a/webui/package.json +++ b/webui/package.json @@ -1,6 +1,6 @@ { "name": "@govoplan/wiki-webui", - "version": "0.1.20", + "version": "0.1.21", "private": true, "type": "module", "main": "src/index.ts",