From 68f48bd22fb112f243312c62136da447053767a8 Mon Sep 17 00:00:00 2001 From: Daniel Grams Date: Fri, 19 Jun 2020 15:11:38 +0200 Subject: [PATCH] translation --- forms/event.py | 17 ++- forms/event_suggestion.py | 28 ++-- translations/de/LC_MESSAGES/messages.mo | Bin 562 -> 2484 bytes translations/de/LC_MESSAGES/messages.po | 195 +++++++++++++++++++++++- 4 files changed, 211 insertions(+), 29 deletions(-) diff --git a/forms/event.py b/forms/event.py index bbc8ec9..fc3b242 100644 --- a/forms/event.py +++ b/forms/event.py @@ -1,15 +1,16 @@ +from flask_babelex import lazy_gettext from flask_wtf import FlaskForm from wtforms import StringField, SubmitField, TextAreaField, SelectField from wtforms.fields.html5 import DateTimeLocalField from wtforms.validators import DataRequired, Optional class CreateEventForm(FlaskForm): - submit = SubmitField("Create event") - name = StringField('Name', validators=[DataRequired()]) - external_link = StringField('Link URL', validators=[Optional()]) - ticket_link = StringField('Ticket Link URL', validators=[Optional()]) - description = TextAreaField('Description', validators=[DataRequired()]) - start = DateTimeLocalField('Start', format='%Y-%m-%dT%H:%M', validators=[DataRequired()]) + submit = SubmitField(lazy_gettext("Create event")) + name = StringField(lazy_gettext('Name'), validators=[DataRequired()]) + external_link = StringField(lazy_gettext('Link URL'), validators=[Optional()]) + ticket_link = StringField(lazy_gettext('Ticket Link URL'), validators=[Optional()]) + description = TextAreaField(lazy_gettext('Description'), validators=[DataRequired()]) + start = DateTimeLocalField(lazy_gettext('Start'), format='%Y-%m-%dT%H:%M', validators=[DataRequired()]) - place_id = SelectField('Place', validators=[DataRequired()], coerce=int) - host_id = SelectField('Host', validators=[DataRequired()], coerce=int) + place_id = SelectField(lazy_gettext('Place'), validators=[DataRequired()], coerce=int) + host_id = SelectField(lazy_gettext('Host'), validators=[DataRequired()], coerce=int) diff --git a/forms/event_suggestion.py b/forms/event_suggestion.py index efea072..3c4d504 100644 --- a/forms/event_suggestion.py +++ b/forms/event_suggestion.py @@ -1,23 +1,21 @@ +from flask_babelex import lazy_gettext from flask_wtf import FlaskForm from wtforms import StringField, SubmitField, TextAreaField from wtforms.fields.html5 import DateTimeLocalField from wtforms.validators import DataRequired, Optional class CreateEventSuggestionForm(FlaskForm): - submit = SubmitField("Suggest event") - event_name = StringField('Name', validators=[DataRequired()]) - description = TextAreaField('Description', validators=[DataRequired()]) - start = DateTimeLocalField('Start', format='%Y-%m-%dT%H:%M', validators=[DataRequired()]) - external_link = StringField('Link URL', validators=[Optional()]) - - place_name = StringField('Event place', validators=[DataRequired()]) - place_street = StringField('Street', validators=[Optional()]) - place_postalCode = StringField('Postal code', validators=[DataRequired()]) - place_city = StringField('City', validators=[DataRequired()]) - - host_name = StringField('Event host', validators=[DataRequired()]) - contact_name = StringField('Contact name', validators=[DataRequired()]) - contact_email = StringField('Contact email', validators=[DataRequired()]) - + submit = SubmitField(lazy_gettext("Suggest event")) + event_name = StringField(lazy_gettext('Name'), validators=[DataRequired()]) + description = TextAreaField(lazy_gettext('Description'), validators=[DataRequired()]) + start = DateTimeLocalField(lazy_gettext('Start'), format='%Y-%m-%dT%H:%M', validators=[DataRequired()]) + external_link = StringField(lazy_gettext('Link URL'), validators=[Optional()]) + place_name = StringField(lazy_gettext('Event place'), validators=[DataRequired()]) + place_street = StringField(lazy_gettext('Street'), validators=[Optional()]) + place_postalCode = StringField(lazy_gettext('Postal code'), validators=[DataRequired()]) + place_city = StringField(lazy_gettext('City'), validators=[DataRequired()]) + host_name = StringField(lazy_gettext('Event host'), validators=[DataRequired()]) + contact_name = StringField(lazy_gettext('Contact name'), validators=[DataRequired()]) + contact_email = StringField(lazy_gettext('Contact email'), validators=[DataRequired()]) diff --git a/translations/de/LC_MESSAGES/messages.mo b/translations/de/LC_MESSAGES/messages.mo index 2d7ef5c123ec34095a24cba16fb306954f95cfcc..0f5c8e9897a109dc5a9858d92162094376e458fc 100644 GIT binary patch literal 2484 zcma)-&u^4P7{^D%s*56mQ8W^tDj59nmTeWR3neV=0+n4_w+loQW2W!UzB_jIee2A; z#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s8h@tLm~GVhB^e(pm$-${8bNDy8Lqr~#~;8w*YRNryV5%4 zr&8YuCi{9Ed`H=!7UQbuII7U(qV}beDpnR1LM>M-bX+bfLla|@@E~4K-PJ38&FHYJ zXtv+gs_1C#Ja(dV0*7@$8lT3IQ#$S{jnHtlWZNH@vtFF$c3;{c)v|UkW+}Vbuz>h* zk=Y30?7cDuMr!$&C)wlHPkZ7xdcSLxUW6h$?r$5Al+7Dv)4IdG8PLfcbrKW7TG(B8 zI;7%O5(|e$a#XjgeDzACHhV%UjYP+z1G9*6^Hag4s;15)=*3vfXyp`bN&wC5C`PQF zRA|Lpm1?S}S|!PB!|th^UpcBC-I;qc>PaGYzhYl_!}9~VBED#p#> zshDKErZh)iO*@0{On(6nj=Xw#s5-P!WNbyscoDPI#7s(yxMs8-Dz&*Pmi-Q0xLc|Y VW`%zoI?kdV+6}k)(x5gb{{`GrpFjWr delta 188 zcmdlYyosg$o)F7a1|VPsVi_QI0dbH(4v@_W#JNDs2E^q+%nrnLK+FupZ9v@1$iUDA zq(Np#FhSJI0cntW4Im9f4Ei9#BU7OyBef`1k-;ZFJ-@VsA%LqWKP@vSl_4^}bg~j_ r3WtHYf}y3AiSgz>R%J#h-~7xxMFz*x;+*{S^wd0t0I+HXmr@1*85JIJ diff --git a/translations/de/LC_MESSAGES/messages.po b/translations/de/LC_MESSAGES/messages.po index d6aa228..4a1ba54 100644 --- a/translations/de/LC_MESSAGES/messages.po +++ b/translations/de/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2020-06-07 19:43+0200\n" +"POT-Creation-Date: 2020-06-19 15:08+0200\n" "PO-Revision-Date: 2020-06-07 18:51+0200\n" "Last-Translator: FULL NAME \n" "Language: de\n" @@ -18,19 +18,202 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Generated-By: Babel 2.8.0\n" +#: app.py:869 +msgid "Event successfully created" +msgstr "Veranstaltung erfolgreich erstellt" + +#: app.py:901 +msgid "Event suggestion successfully created" +msgstr "Veranstaltungsvorschlag erfolgreich erstellt" + +#: templates/_macros.html:74 templates/event/create.html:6 +msgid "Create event" +msgstr "Veranstaltung erstellen" + +#: templates/_macros.html:76 templates/event_suggestion/create.html:6 +msgid "Suggest event" +msgstr "Veranstaltung vorschlagen" + +#: templates/_macros.html:82 templates/event_suggestion/list.html:3 +#: templates/event_suggestion/list.html:7 +msgid "Event suggestions" +msgstr "Veranstaltungsvorschläge" + +#: templates/_macros.html:95 templates/event.html:25 +#: templates/event_suggestion/list.html:13 +#: templates/event_suggestion/read.html:18 templates/events.html:16 +msgid "Date" +msgstr "Datum" + +#: templates/_macros.html:96 templates/admin/admin_units.html:18 +#: templates/admin_unit.html:45 templates/admin_unit.html:67 +#: templates/admin_units.html:13 templates/event_suggestion/list.html:14 +#: templates/events.html:17 templates/home.html:23 templates/home.html:45 +#: templates/organization.html:42 templates/organizations.html:13 +#: templates/profile.html:15 templates/profile.html:37 +msgid "Name" +msgstr "Name" + +#: templates/_macros.html:97 templates/event.html:42 +#: templates/event/create.html:23 templates/event_suggestion/list.html:15 +#: templates/events.html:18 +msgid "Host" +msgstr "Veranstalter" + +#: templates/_macros.html:98 templates/event.html:26 +#: templates/event_suggestion/list.html:16 +#: templates/event_suggestion/read.html:41 templates/events.html:19 +msgid "Location" +msgstr "Ort" + +#: templates/_macros.html:118 +msgid "Show all events" +msgstr "Alle Veranstaltungen anzeigen" + +#: templates/admin_unit.html:14 templates/organization.html:14 +msgid "Members" +msgstr "Mitglieder" + +#: templates/admin_unit.html:17 templates/admin_unit.html:21 +#: templates/layout.html:57 templates/organizations.html:3 +#: templates/organizations.html:7 templates/profile.html:32 +msgid "Organizations" +msgstr "Organisationen" + +#: templates/admin_unit.html:25 templates/events.html:4 templates/events.html:8 +#: templates/home.html:12 templates/layout.html:58 +#: templates/organization.html:17 templates/organization.html:21 +#: templates/place/read.html:24 +msgid "Events" +msgstr "Veranstaltungen" + +#: templates/admin_unit.html:35 +msgid "You are a member of this admin unit." +msgstr "Du bist Mitglied dieser Verwaltungseinheit" + +#: templates/admin_unit.html:46 templates/admin_unit.html:68 +#: templates/home.html:24 templates/home.html:46 templates/organization.html:43 +#: templates/profile.html:16 templates/profile.html:38 +msgid "Roles" +msgstr "Rollen" + +#: templates/admin/admin.html:15 templates/admin/admin_units.html:3 +#: templates/admin/admin_units.html:10 templates/admin_units.html:3 +#: templates/admin_units.html:7 templates/layout.html:56 +#: templates/profile.html:10 +msgid "Admin Units" +msgstr "Verwaltungseinheiten" + +#: templates/event.html:15 +msgid "Mark event as unverified" +msgstr "Diese Veranstaltung als nicht verifiziert markieren" + +#: templates/event.html:18 +msgid "Mark event as verified" +msgstr "Diese Veranstaltung als verifiziert markieren" + +#: templates/event.html:28 templates/events.html:29 +msgid "Verified" +msgstr "Verifiziert" + +#: templates/event.html:36 +msgid "Link" +msgstr "Link" + #: templates/home.html:7 msgid "Hi there!" msgstr "Moin!" -#: templates/layout.html:52 -msgid "You" -msgstr "Du" +#: templates/home.html:18 +msgid "Your Admin Units" +msgstr "Deine Verwaltungseinheiten" -#: templates/layout.html:56 templates/profile.html:3 +#: templates/home.html:40 +msgid "Your Organizations" +msgstr "Deine Organisationen" + +#: templates/layout.html:67 templates/profile.html:3 msgid "Profile" msgstr "Profil" -#: templates/layout.html:58 +#: templates/admin/admin.html:3 templates/admin/admin.html:9 +#: templates/admin/admin_units.html:9 templates/layout.html:70 +msgid "Admin" +msgstr "Administration" + +#: templates/layout.html:74 msgid "Logout" msgstr "Ausloggen" +#: templates/organization.html:32 +msgid "You are a member of this organization." +msgstr "Du bist Mitglied dieser Organisation" + +#: templates/event/create.html:12 templates/event_suggestion/read.html:13 +msgid "Event" +msgstr "Veranstaltung" + +#: templates/event/create.html:32 +msgid "Place" +msgstr "Ort" + +#: templates/event/create.html:41 +msgid "Additional information" +msgstr "Zusätzliche Informationen" + +#: templates/event_suggestion/list.html:17 +#: templates/event_suggestion/read.html:86 +msgid "Created at" +msgstr "Erstellt am" + +#: templates/event_suggestion/read.html:22 +msgid "Event name" +msgstr "Name" + +#: templates/event_suggestion/read.html:26 +msgid "Description" +msgstr "Beschreibung" + +#: templates/event_suggestion/read.html:30 +msgid "Link URL" +msgstr "Link URL" + +#: templates/event_suggestion/read.html:46 +msgid "Event place" +msgstr "Veranstaltungsort" + +#: templates/event_suggestion/read.html:50 +msgid "Street" +msgstr "Straße" + +#: templates/event_suggestion/read.html:54 +msgid "Postal code" +msgstr "Postleitzahl" + +#: templates/event_suggestion/read.html:58 +msgid "City" +msgstr "Stadt/Ort" + +#: templates/event_suggestion/read.html:69 +msgid "Contact" +msgstr "Kontakt" + +#: templates/event_suggestion/read.html:74 +msgid "Event host" +msgstr "Veranstalter" + +#: templates/event_suggestion/read.html:78 +msgid "Contact name" +msgstr "Kontakt Name" + +#: templates/event_suggestion/read.html:82 +msgid "Contact email" +msgstr "Kontakt Email" + +#: templates/place/read.html:18 +msgid "Show on Google Maps" +msgstr "Auf Google Maps anzeigen" + +#~ msgid "You" +#~ msgstr "Du" +