From c5edf62a9dbf16b6277e50a47a084a8821bb5305 Mon Sep 17 00:00:00 2001 From: Mojib Wali <44528277+mb-wali@users.noreply.github.com> Date: Tue, 6 Oct 2020 14:40:38 +0200 Subject: [PATCH] translations: marked for translation * Marked the strings & Url hyperlinks for translation. * compiled and updated the translation files with the help of Babel commands. * Added some test translations to check if it works. --- invenio_theme_tugraz/config.py | 5 +- .../accounts/header_login.html | 4 +- .../accounts/login_user.html | 2 +- .../accounts/register_user.html | 2 +- .../invenio_theme_tugraz/benefits.html | 2 +- .../invenio_theme_tugraz/details/doi.html | 4 +- .../invenio_theme_tugraz/footer.html | 32 +-- .../invenio_theme_tugraz/frontpage.html | 25 -- .../invenio_theme_tugraz/header.html | 2 +- .../header_frontpage.html | 53 ---- .../templates/invenio_theme_tugraz/index.html | 19 +- .../translations/de/LC_MESSAGES/messages.po | 261 ++++++++++++++---- .../translations/messages.pot | 230 ++++++++++++--- 13 files changed, 438 insertions(+), 203 deletions(-) delete mode 100644 invenio_theme_tugraz/templates/invenio_theme_tugraz/frontpage.html delete mode 100644 invenio_theme_tugraz/templates/invenio_theme_tugraz/header_frontpage.html diff --git a/invenio_theme_tugraz/config.py b/invenio_theme_tugraz/config.py index ac58bcb..49c0d3d 100644 --- a/invenio_theme_tugraz/config.py +++ b/invenio_theme_tugraz/config.py @@ -10,7 +10,7 @@ from flask_babelex import gettext as _ -INVENIO_THEME_TUGRAZ_DEFAULT_VALUE = "foobar" +INVENIO_THEME_TUGRAZ_DEFAULT_VALUE = _("TU Graz Repository") """Default value for the application.""" INVENIO_THEME_TUGRAZ_BASE_TEMPLATE = "invenio_theme_tugraz/base.html" @@ -39,9 +39,6 @@ THEME_SEARCHBAR = False THEME_HEADER_TEMPLATE = "invenio_theme_tugraz/header.html" """TU Graz header template""" -# THEME_FRONTPAGE_TEMPLATE = 'invenio_theme_tugraz/frontpage.html' -"""Frontpage template""" - THEME_FRONTPAGE = False """Use default frontpage.""" diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html index fe6a88d..b0ea481 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html @@ -5,14 +5,14 @@ {%- if config.SECURITY_REGISTERABLE %}
- Sign Up + {{_ ("Sign Up")}}
{%- endif %}
- Login + {{_ ("Log in")}}
diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html index 59d0ca5..fb500ed 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html @@ -32,7 +32,7 @@ -
Or
+
{{_ ("Or")}}
{%- endif %} {%- block form_outer %} diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html index fbb41ff..0eb299f 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/register_user.html @@ -51,7 +51,7 @@ -
Or
+
{{_ ("Or")}}
{%- endif %} {%- block form_header %} diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html index 94c6d87..1449baf 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/benefits.html @@ -1,6 +1,6 @@