From a10433aba35ebe5c9f34db8c9abe4b2526f0babe Mon Sep 17 00:00:00 2001 From: Mojib Wali <44528277+mb-wali@users.noreply.github.com> Date: Tue, 27 Apr 2021 15:48:05 +0200 Subject: [PATCH] email: welcome email template --- .../templates/security/email/welcome.html | 20 ------ .../templates/security/email/welcome.txt | 21 +++---- .../translations/de/LC_MESSAGES/messages.po | 63 +++++++++++++------ .../translations/messages.pot | 47 ++++++++++---- setup.cfg | 2 +- 5 files changed, 88 insertions(+), 65 deletions(-) delete mode 100644 invenio_config_tugraz/templates/security/email/welcome.html diff --git a/invenio_config_tugraz/templates/security/email/welcome.html b/invenio_config_tugraz/templates/security/email/welcome.html deleted file mode 100644 index 4323c45..0000000 --- a/invenio_config_tugraz/templates/security/email/welcome.html +++ /dev/null @@ -1,20 +0,0 @@ -

{{ _('Dear %(email)s!', email=user.email) }}

- -

{{ _('To help you get started, here are some useful links:') }}

- -

- {{ _('TU Graz Repository') }}
- {{ _('Reference Guide') }}
- {{ _('Terms and Conditions') }}
-

- -{% if security.confirmable %} -

{{ _('You can confirm your email through the link below:') }}

- -

{{ _('Confirm my account') }}

-{% endif %} - -

- {{ _('Best regards') }}
- {{ _('TU Graz Repository Team') }} -

diff --git a/invenio_config_tugraz/templates/security/email/welcome.txt b/invenio_config_tugraz/templates/security/email/welcome.txt index 69f5906..57fbd65 100644 --- a/invenio_config_tugraz/templates/security/email/welcome.txt +++ b/invenio_config_tugraz/templates/security/email/welcome.txt @@ -1,21 +1,18 @@ -{{ _('Dear %(email)s!', email=user.email) }} +{{ _('Dear user,') }} + +{{ _('Welcome to the Repository of TU Graz!') }} {{ _('To help you get started, here are some useful links:') }} -{{ _('Repository')}} -https://{{ config.SITE_HOSTNAME }}{{ url_for('invenio_theme_tugraz.index') }} - -{{ _('Repository Guide')}} -https://{{ config.SITE_HOSTNAME }}{{ url_for('invenio_theme_tugraz.guide') }} - -{{ _('Terms And Conditions') }} -https://{{ config.SITE_HOSTNAME }}{{ url_for('invenio_theme_tugraz.terms') }} - - + - {{ _('Guidelines:')}} {{ _('Repository Guide')}} ({{ _('how to upload files')}}) (https://{{ config.SITE_HOSTNAME }}{{ url_for('invenio_theme_tugraz.guide') }}) + - {{ _('Search Guide')}} (https://{{ config.SITE_HOSTNAME }}/help/search + - {{ _('Terms And Conditions') }} (https://{{ config.SITE_HOSTNAME }}{{ url_for('invenio_theme_tugraz.terms') }}) + - {{ _('Data Protection Rights')}} (https://{{ config.SITE_HOSTNAME }}{{ url_for('invenio_theme_tugraz.gdpr') }}) {% if security.confirmable %} {{ _('You can confirm your email through the link below:') }} {{ confirmation_link }}"> {% endif %} +{{ _('If you require any assistance please do not hesitate to contact us at repository-support@tugraz.at.') }} -{{ _('Best regards') }} +{{ _('Best regards,') }} {{ _('TU Graz Repository Team') }} diff --git a/invenio_config_tugraz/translations/de/LC_MESSAGES/messages.po b/invenio_config_tugraz/translations/de/LC_MESSAGES/messages.po index 24cda1c..cda3e26 100644 --- a/invenio_config_tugraz/translations/de/LC_MESSAGES/messages.po +++ b/invenio_config_tugraz/translations/de/LC_MESSAGES/messages.po @@ -1,15 +1,15 @@ # German translations for invenio-config-tugraz. -# Copyright (C) 2021 Mojib Wali +# Copyright (C) 2021 Graz University of Technology # This file is distributed under the same license as the # invenio-config-tugraz project. # FIRST AUTHOR , 2021. # msgid "" msgstr "" -"Project-Id-Version: invenio-config-tugraz 0.5.4\n" +"Project-Id-Version: invenio-config-tugraz 0.5.5\n" "Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n" -"POT-Creation-Date: 2021-04-22 09:24+0200\n" -"PO-Revision-Date: 2021-04-22 09:12+0200\n" +"POT-Creation-Date: 2021-04-27 15:30+0200\n" +"PO-Revision-Date: 2021-04-22 11:57+0200\n" "Last-Translator: FULL NAME \n" "Language: de\n" "Language-Team: de \n" @@ -24,35 +24,60 @@ msgid "Welcome to TU Graz Repository!" msgstr "Willkommen im TU Graz Repository!" #: invenio_config_tugraz/templates/security/email/welcome.txt:1 -#, python-format -msgid "Dear %(email)s!" -msgstr "Lieber %(email)s!" +msgid "Dear user," +msgstr "Lieber Nutzer," #: invenio_config_tugraz/templates/security/email/welcome.txt:3 -msgid "To help you get started, here are some useful links:" -msgstr "Um Ihnen den Einstieg zu erleichtern, finden Sie hier einige nützliche Links:" +msgid "Welcome to the Repository of TU Graz!" +msgstr "Willkommen im TU Graz Repository!" #: invenio_config_tugraz/templates/security/email/welcome.txt:5 -msgid "Repository" +msgid "To help you get started, here are some useful links:" msgstr "" +"Um Ihnen den Einstieg zu erleichtern, finden Sie hier einige nützliche " +"Links:" -#: invenio_config_tugraz/templates/security/email/welcome.txt:8 +#: invenio_config_tugraz/templates/security/email/welcome.txt:7 +msgid "Guidelines:" +msgstr "Leitfaden:" + +#: invenio_config_tugraz/templates/security/email/welcome.txt:7 msgid "Repository Guide" msgstr "Handbuch" -#: invenio_config_tugraz/templates/security/email/welcome.txt:11 +#: invenio_config_tugraz/templates/security/email/welcome.txt:7 +msgid "how to upload files" +msgstr "wie man Dateien hochlädt" + +#: invenio_config_tugraz/templates/security/email/welcome.txt:8 +msgid "Search Guide" +msgstr "Suchanleitung" + +#: invenio_config_tugraz/templates/security/email/welcome.txt:9 msgid "Terms And Conditions" msgstr "Nutzungsbedingungen" -#: invenio_config_tugraz/templates/security/email/welcome.txt:16 +#: invenio_config_tugraz/templates/security/email/welcome.txt:10 +msgid "Data Protection Rights" +msgstr "Datenschutzerklärung" + +#: invenio_config_tugraz/templates/security/email/welcome.txt:13 msgid "You can confirm your email through the link below:" msgstr "Sie können Ihre E-Mail über den folgenden Link bestätigen:" -#: invenio_config_tugraz/templates/security/email/welcome.txt:20 -msgid "Best regards" -msgstr "Liebe grüße" - -#: invenio_config_tugraz/templates/security/email/welcome.txt:21 -msgid "TU Graz Repository Team" +#: invenio_config_tugraz/templates/security/email/welcome.txt:16 +msgid "" +"If you require any assistance please do not hesitate to contact us at " +"repository-support@tugraz.at." msgstr "" +"Wenn Sie Hilfe benötigen, zögern Sie bitte nicht, uns unter repository-" +"support@tugraz.at zu kontaktieren." + +#: invenio_config_tugraz/templates/security/email/welcome.txt:18 +msgid "Best regards," +msgstr "Mit freundlichen Grüßen," + +#: invenio_config_tugraz/templates/security/email/welcome.txt:19 +msgid "TU Graz Repository Team" +msgstr "TU Graz Repository Team" diff --git a/invenio_config_tugraz/translations/messages.pot b/invenio_config_tugraz/translations/messages.pot index 9aacf5a..5c1b674 100644 --- a/invenio_config_tugraz/translations/messages.pot +++ b/invenio_config_tugraz/translations/messages.pot @@ -1,5 +1,5 @@ # Translations template for invenio-config-tugraz. -# Copyright (C) 2021 Mojib Wali +# Copyright (C) 2021 Graz University of Technology # This file is distributed under the same license as the # invenio-config-tugraz project. # FIRST AUTHOR , 2021. @@ -7,9 +7,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: invenio-config-tugraz 0.5.4\n" +"Project-Id-Version: invenio-config-tugraz 0.5.5\n" "Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n" -"POT-Creation-Date: 2021-04-22 09:24+0200\n" +"POT-Creation-Date: 2021-04-27 15:30+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -23,35 +23,56 @@ msgid "Welcome to TU Graz Repository!" msgstr "" #: invenio_config_tugraz/templates/security/email/welcome.txt:1 -#, python-format -msgid "Dear %(email)s!" +msgid "Dear user," msgstr "" #: invenio_config_tugraz/templates/security/email/welcome.txt:3 -msgid "To help you get started, here are some useful links:" +msgid "Welcome to the Repository of TU Graz!" msgstr "" #: invenio_config_tugraz/templates/security/email/welcome.txt:5 -msgid "Repository" +msgid "To help you get started, here are some useful links:" msgstr "" -#: invenio_config_tugraz/templates/security/email/welcome.txt:8 +#: invenio_config_tugraz/templates/security/email/welcome.txt:7 +msgid "Guidelines:" +msgstr "" + +#: invenio_config_tugraz/templates/security/email/welcome.txt:7 msgid "Repository Guide" msgstr "" -#: invenio_config_tugraz/templates/security/email/welcome.txt:11 +#: invenio_config_tugraz/templates/security/email/welcome.txt:7 +msgid "how to upload files" +msgstr "" + +#: invenio_config_tugraz/templates/security/email/welcome.txt:8 +msgid "Search Guide" +msgstr "" + +#: invenio_config_tugraz/templates/security/email/welcome.txt:9 msgid "Terms And Conditions" msgstr "" -#: invenio_config_tugraz/templates/security/email/welcome.txt:16 +#: invenio_config_tugraz/templates/security/email/welcome.txt:10 +msgid "Data Protection Rights" +msgstr "" + +#: invenio_config_tugraz/templates/security/email/welcome.txt:13 msgid "You can confirm your email through the link below:" msgstr "" -#: invenio_config_tugraz/templates/security/email/welcome.txt:20 -msgid "Best regards" +#: invenio_config_tugraz/templates/security/email/welcome.txt:16 +msgid "" +"If you require any assistance please do not hesitate to contact us at " +"repository-support@tugraz.at." msgstr "" -#: invenio_config_tugraz/templates/security/email/welcome.txt:21 +#: invenio_config_tugraz/templates/security/email/welcome.txt:18 +msgid "Best regards," +msgstr "" + +#: invenio_config_tugraz/templates/security/email/welcome.txt:19 msgid "TU Graz Repository Team" msgstr "" diff --git a/setup.cfg b/setup.cfg index 067ba0b..1b7575c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -24,7 +24,7 @@ add_ignore = D401 directory = invenio_config_tugraz/translations/ [extract_messages] -copyright_holder = Mojib Wali +copyright_holder = Graz University of Technology msgid_bugs_address = mojib.wali@tugraz.at mapping-file = babel.ini output-file = invenio_config_tugraz/translations/messages.pot