diff --git a/pyproject.toml b/pyproject.toml index 5f2e828..09cc526 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "govoplan-evaluation" -version = "0.1.19" +version = "0.1.20" description = "GovOPlaN structured evaluation, feedback, scoring, and survey module seed." readme = "README.md" requires-python = ">=3.12" diff --git a/src/govoplan_evaluation/__init__.py b/src/govoplan_evaluation/__init__.py index bd50c62..52330e6 100644 --- a/src/govoplan_evaluation/__init__.py +++ b/src/govoplan_evaluation/__init__.py @@ -2,4 +2,4 @@ __all__ = ["__version__"] -__version__ = "0.1.19" +__version__ = "0.1.20" diff --git a/src/govoplan_evaluation/backend/german_structured_documentation.py b/src/govoplan_evaluation/backend/german_structured_documentation.py new file mode 100644 index 0000000..34624c9 --- /dev/null +++ b/src/govoplan_evaluation/backend/german_structured_documentation.py @@ -0,0 +1,13 @@ +"""German translations for public structured documentation metadata.""" + +from __future__ import annotations + +from typing import Any + + +GERMAN_STRUCTURED_TRANSLATIONS: dict[str, dict[str, Any]] = {'evaluation.module-boundary': {'consequence_classes': {'seed_boundary': 'Deklariert Besitz und ' + 'optionale ' + 'Integrationsgrenzen; es ' + 'ist noch kein ' + 'Laufzeit-Workflow ' + 'verfügbar.'}}} diff --git a/src/govoplan_evaluation/backend/manifest.py b/src/govoplan_evaluation/backend/manifest.py index 4b22c07..6f3822b 100644 --- a/src/govoplan_evaluation/backend/manifest.py +++ b/src/govoplan_evaluation/backend/manifest.py @@ -1,5 +1,8 @@ from __future__ import annotations +from govoplan_core.core.modules import with_documentation_structured_translations +from govoplan_evaluation.backend.german_structured_documentation import GERMAN_STRUCTURED_TRANSLATIONS + from govoplan_core.core.access import CAPABILITY_AUTH_PERMISSION_EVALUATOR, CAPABILITY_AUTH_PRINCIPAL_RESOLVER from govoplan_core.core.modules import ( DocumentationTopic, @@ -13,7 +16,7 @@ from govoplan_core.core.provider_governance import declared_module_architecture MODULE_ID = "evaluation" MODULE_NAME = "Evaluation" -MODULE_VERSION = "0.1.19" +MODULE_VERSION = "0.1.20" READ_SCOPE = "evaluation:evaluation:read" WRITE_SCOPE = "evaluation:evaluation:write" ADMIN_SCOPE = "evaluation:evaluation:admin" @@ -125,5 +128,10 @@ manifest = ModuleManifest( ) +manifest = with_documentation_structured_translations( + manifest, locale="de", translations=GERMAN_STRUCTURED_TRANSLATIONS +) + + def get_manifest() -> ModuleManifest: return manifest