From 2d3d941d2251e069914c7777c35085e4c604f062 Mon Sep 17 00:00:00 2001 From: cyroxx <cyroxx@ccc-p.org> Date: Sun, 24 Sep 2023 18:27:05 +0200 Subject: [PATCH] translate StaticPageForm --- src/plainui/forms.py | 4 +-- src/plainui/locale/de/LC_MESSAGES/django.po | 27 ++++++++++++++++++--- src/plainui/locale/en/LC_MESSAGES/django.po | 21 +++++++++++++--- 3 files changed, 44 insertions(+), 8 deletions(-) diff --git a/src/plainui/forms.py b/src/plainui/forms.py index 4d3d8d437..b6a7234aa 100644 --- a/src/plainui/forms.py +++ b/src/plainui/forms.py @@ -305,5 +305,5 @@ class StaticPageBodyForm(forms.ModelForm): model = StaticPage fields = ['title', 'body'] - title = forms.CharField(min_length=1, required=True) - body = forms.CharField(required=True, widget=forms.TextInput(attrs={'rows': 20})) + title = forms.CharField(label=_('title'), min_length=1, required=True) + body = forms.CharField(label=_('body'), required=True, widget=forms.TextInput(attrs={'rows': 20})) diff --git a/src/plainui/locale/de/LC_MESSAGES/django.po b/src/plainui/locale/de/LC_MESSAGES/django.po index 158518306..91b6a0411 100644 --- a/src/plainui/locale/de/LC_MESSAGES/django.po +++ b/src/plainui/locale/de/LC_MESSAGES/django.po @@ -86,6 +86,12 @@ msgstr "Beschreibe das Problem" msgid "describe a solution" msgstr "Beschreibe eine Lösung" +msgid "title" +msgstr "Titel" + +msgid "body" +msgstr "Inhalt" + msgid "Assemblies" msgstr "Villages" @@ -399,15 +405,15 @@ msgstr "World" msgid "plan" msgstr "plan" -msgid "chat" -msgstr "DNs" - msgid "board" msgstr "board" msgid "wiki" msgstr "" +msgid "chat" +msgstr "DNs" + msgid "profile" msgstr "Profil" @@ -705,6 +711,11 @@ msgstr "Wiki-Seite erstellen" msgid "This page does not exist." msgstr "Diese Seite existiert nicht." +#, fuzzy +#| msgid "This page does not exist." +msgid "This revision does not exist." +msgstr "Diese Seite existiert nicht." + msgid "Global History" msgstr "Letzte Änderungen" @@ -778,6 +789,16 @@ msgstr "Beitreten Fehlgeschlagen: %s" msgid "You need an active Ticket to access this Page!" msgstr "Bitte löse dein Ticket ein um auf diese Seite zugreifen zu können." +#, fuzzy +#| msgid "Sorry, you don't have permission to edit this wiki page." +msgid "You do not have the required permissions to create this page." +msgstr "Du hast leider nicht die Rechte um diese Wiki-Seite zu bearbeiten." + +#, fuzzy +#| msgid "Sorry, you don't have permission to edit this wiki page." +msgid "You do not have the required permissions to edit this page." +msgstr "Du hast leider nicht die Rechte um diese Wiki-Seite zu bearbeiten." + msgid "Created Static Page" msgstr "Wiki-Seite angelegt" diff --git a/src/plainui/locale/en/LC_MESSAGES/django.po b/src/plainui/locale/en/LC_MESSAGES/django.po index 5fcb31889..a287b1cba 100644 --- a/src/plainui/locale/en/LC_MESSAGES/django.po +++ b/src/plainui/locale/en/LC_MESSAGES/django.po @@ -86,6 +86,12 @@ msgstr "" msgid "describe a solution" msgstr "" +msgid "title" +msgstr "Title" + +msgid "body" +msgstr "Body" + msgid "Assemblies" msgstr "Villages" @@ -399,15 +405,15 @@ msgstr "" msgid "plan" msgstr "" -msgid "chat" -msgstr "DMs" - msgid "board" msgstr "" msgid "wiki" msgstr "" +msgid "chat" +msgstr "DMs" + msgid "profile" msgstr "" @@ -705,6 +711,9 @@ msgstr "" msgid "This page does not exist." msgstr "" +msgid "This revision does not exist." +msgstr "" + msgid "Global History" msgstr "" @@ -778,6 +787,12 @@ msgstr "" msgid "You need an active Ticket to access this Page!" msgstr "" +msgid "You do not have the required permissions to create this page." +msgstr "" + +msgid "You do not have the required permissions to edit this page." +msgstr "" + msgid "Created Static Page" msgstr "Created Wiki Page" -- GitLab