Merge pull request #35 from mb-wali/i18n

I18n
This commit is contained in:
mb-wali
2020-06-25 15:23:09 +02:00
committed by GitHub
4 changed files with 213 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ THEME_FOOTER_TEMPLATE = 'invenio_theme_tugraz/footer.html'
INVENIO_THEME_TUGRAZ_ICON = 'images/icon_use.png' INVENIO_THEME_TUGRAZ_ICON = 'images/icon_use.png'
"""icon used in login page""" """icon used in login page"""
THEME_FRONTPAGE_TITLE = "RDM for TUGRAZ" THEME_FRONTPAGE_TITLE = _('Frontpage Title')
"""Frontpage title.""" """Frontpage title."""
THEME_SITENAME = _('Application Name') THEME_SITENAME = _('Application Name')

View File

@@ -116,7 +116,7 @@
<path d="m2.0142 1050.4h20.972"></path> <path d="m2.0142 1050.4h20.972"></path>
</g> </g>
</svg> </svg>
<span style="margin-left:3px; font-size:16px; font-weight:300">Main Menu</span> <span style="margin-left:3px; font-size:16px; font-weight:300">{{_ ("Main Menu")}} </span>
</div> </div>
</div> </div>
@@ -129,7 +129,7 @@
<div class="affiliation-text"> <div class="affiliation-text">
<a title="RDM" href="{{url_for('invenio_theme_frontpage.index')}}"> <a title="RDM" href="{{url_for('invenio_theme_frontpage.index')}}">
TU Graz TU Graz
<br> Research Data Management <br>{{_ ("Research Data Management")}}
</a> </a>
</div> </div>
@@ -138,9 +138,9 @@
<div class="affiliation-logo" id="int-header-logo"> <div class="affiliation-logo" id="int-header-logo">
<a href="https://www.tugraz.at" title="TU Graz Home" target="_blank"> <a href="https://www.tugraz.at" title="TU Graz Home" target="_blank">
<div class="affiliation-logo-claim"> <div class="affiliation-logo-claim">
<div class="affiliation-logo-claim-single">WISSEN</div> <div class="affiliation-logo-claim-single">{{_ ("SCIENCE")}}</div>
<div class="affiliation-logo-claim-single">TECHNIK</div> <div class="affiliation-logo-claim-single">{{_ ("PASSION")}}</div>
<div class="affiliation-logo-claim-single">LEIDENSCHAFT</div> <div class="affiliation-logo-claim-single">{{_ ("TECHNOLOGY")}}</div>
</div> </div>
<svg id="int-header-logo-img" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" <svg id="int-header-logo-img" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="51.862" width="141.1" version="1.1" xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="51.862" width="141.1" version="1.1"

View File

@@ -0,0 +1,104 @@
# German translations for invenio-theme-tugraz.
# Copyright (C) 2020 mojib wali
# This file is distributed under the same license as the
# invenio-theme-tugraz project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
msgid ""
msgstr ""
"Project-Id-Version: invenio-theme-tugraz 1.0.0\n"
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
"POT-Creation-Date: 2020-06-25 14:39+0200\n"
"PO-Revision-Date: 2020-06-25 14:39+0200\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: de\n"
"Language-Team: de <LL@li.org>\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: invenio_theme_tugraz/config.py:43
msgid "Application Name"
msgstr ""
#: invenio_theme_tugraz/config.py:54
msgid "German"
msgstr ""
#. NOTE: This is a note to a translator.
#: invenio_theme_tugraz/ext.py:24
msgid "A translation string"
msgstr ""
#: invenio_theme_tugraz/views.py:30
msgid "invenio-theme-tugraz"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:22
#, python-format
msgid ""
"Powered by <a\n"
" href=\"%(invenio_rdm)s\">InvenioRDM</a>"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:119
msgid "Main Menu"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:132
msgid "Research Data Management"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:141
msgid "WISSEN"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:142
msgid "TECHNIK"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:143
msgid "LEIDENSCHAFT"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:191
msgid "Search"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:14
#, python-format
msgid "Welcome to %(module_name)s"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:30
msgid "Logout"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:18
msgid "Log in to account"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:26
#, python-format
msgid " Log in with %(type)s"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:41
msgid "Log In"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:53
#, python-format
msgid "New to %(sitename)s?"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:54
msgid "Sign Up"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:63
msgid "Forgot password?"
msgstr ""

View File

@@ -0,0 +1,103 @@
# Translations template for invenio-theme-tugraz.
# Copyright (C) 2020 mojib wali
# This file is distributed under the same license as the
# invenio-theme-tugraz project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2020.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: invenio-theme-tugraz 1.0.0\n"
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
"POT-Creation-Date: 2020-06-25 14:39+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.8.0\n"
#: invenio_theme_tugraz/config.py:43
msgid "Application Name"
msgstr ""
#: invenio_theme_tugraz/config.py:54
msgid "German"
msgstr ""
#. NOTE: This is a note to a translator.
#: invenio_theme_tugraz/ext.py:24
msgid "A translation string"
msgstr ""
#: invenio_theme_tugraz/views.py:30
msgid "invenio-theme-tugraz"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/footer.html:22
#, python-format
msgid ""
"Powered by <a\n"
" href=\"%(invenio_rdm)s\">InvenioRDM</a>"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:119
msgid "Main Menu"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:132
msgid "Research Data Management"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:141
msgid "WISSEN"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:142
msgid "TECHNIK"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:143
msgid "LEIDENSCHAFT"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/header.html:191
msgid "Search"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/index.html:14
#, python-format
msgid "Welcome to %(module_name)s"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/header_login.html:30
msgid "Logout"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:18
msgid "Log in to account"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:26
#, python-format
msgid " Log in with %(type)s"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:41
msgid "Log In"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:53
#, python-format
msgid "New to %(sitename)s?"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:54
msgid "Sign Up"
msgstr ""
#: invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login.html:63
msgid "Forgot password?"
msgstr ""