Replaced german language with irish

This commit is contained in:
2026-07-15 14:24:04 +01:00
parent 96b7fc0b53
commit ef0fb9b06c
6 changed files with 132 additions and 112 deletions
+13 -8
View File
@@ -38,6 +38,12 @@ CONFIG_IFORM_ROUTES = {
}
"""Defined routes for I-Form."""
CONFIG_IFORM_SUPPORT_EMAIL = "repository-support@iform.ie"
"""Support email address for I-Form."""
CONFIG_IFORM_INFO_EMAIL = "info@iform.ie"
"""Info email address for I-Form."""
# Invenio-App
# ===========
# See https://invenio-app.readthedocs.io/en/latest/configuration.html
@@ -49,7 +55,6 @@ APP_DEFAULT_SECURE_HEADERS = {
"data:",
"'unsafe-inline'",
"blob:",
"ub-support.tugraz.at", # zammad contact form
],
},
"content_security_policy_report_only": False,
@@ -74,7 +79,7 @@ BABEL_DEFAULT_LOCALE = "en"
# Default time zone
BABEL_DEFAULT_TIMEZONE = "Europe/Dublin"
# Other supported languages (do not include BABEL_DEFAULT_LOCALE in list).
I18N_LANGUAGES = [("de", _("German"))]
I18N_LANGUAGES = [("ga", _("Irish"))]
# Invenio-Mail
# ===========
@@ -83,11 +88,11 @@ I18N_LANGUAGES = [("de", _("German"))]
MAIL_SERVER = "localhost"
"""Domain ip where mail server is running."""
SECURITY_EMAIL_SENDER = "info@invenio-test.tugraz.at"
SECURITY_EMAIL_SENDER = CONFIG_IFORM_INFO_EMAIL
"""Email address used as sender of account registration emails."""
"""Domain name should match the domain used in web server."""
SECURITY_EMAIL_SUBJECT_REGISTER = _("Welcome to TU Graz Repository!")
SECURITY_EMAIL_SUBJECT_REGISTER = _("Welcome to I-Form Repository!")
"""Email subject for account registration emails."""
MAIL_SUPPRESS_SEND = True
@@ -229,7 +234,7 @@ RECAPTCHA_PRIVATE_KEY = None
# See:
# https://invenio-rdm-records.readthedocs.io/en/latest/configuration.html
#
RDM_RECORDS_USER_FIXTURE_PASSWORDS = {"info@tugraz.at": None}
RDM_RECORDS_USER_FIXTURE_PASSWORDS = {CONFIG_IFORM_INFO_EMAIL: None}
"""Overrides for the user fixtures' passwords.
The password set for a user fixture in this dictionary overrides the
password set in the ``users.yaml`` file. This can be used to set custom
@@ -254,7 +259,7 @@ This is only required if you want your records to be harvestable in DataCite XML
# =========================
# See https://github.com/inveniosoftware/invenio-app-rdm/blob/master/invenio_app_rdm/config.py
APP_RDM_DEPOSIT_FORM_DEFAULTS = {
"publisher": "Graz University of Technology",
"publisher": "I-Form Research Centre",
}
"""Default values for new records in the deposit UI.
@@ -365,11 +370,11 @@ SESSION_COOKIE_SAMESITE = "Strict"
# =======
# See https://github.com/inveniosoftware/invenio-oaiserver/blob/master/invenio_oaiserver/config.py
OAISERVER_ID_PREFIX = "repository.tugraz.at"
OAISERVER_ID_PREFIX = "repository.iform.ie"
"""The prefix that will be applied to the generated OAI-PMH ids."""
OAISERVER_ADMIN_EMAILS = [
"oai@repository.tugraz.at",
"oai@repository.iform.ie",
]
"""The e-mail addresses of administrators of the repository.
@@ -1,6 +1,6 @@
{{ _('Dear user,') }}
{{ _('Welcome to the Repository of TU Graz!') }}
{{ _('Welcome to the I-Form Repository!') }}
{{ _('To help you get started, here are some useful links:') }}
@@ -12,7 +12,7 @@
{{ _('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.') }}
{{ _('If you require any assistance please do not hesitate to contact us at %(support_email)s.', support_email=config.CONFIG_IFORM_SUPPORT_EMAIL) }}
{{ _('Best regards,') }}
{{ _('TU Graz Repository Team') }}
{{ _('I-Form Repository Team') }}
@@ -1,82 +0,0 @@
# German translations for invenio-config-iform.
# Copyright (C) 2021 Graz University of Technology
# This file is distributed under the same license as the
# invenio-config-iform project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
#
msgid ""
msgstr ""
"Project-Id-Version: invenio-config-iform 0.5.5\n"
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\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 <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.9.0\n"
#: invenio_config_iform/config.py:87
msgid "Welcome to TU Graz Repository!"
msgstr "Willkommen im TU Graz Repository!"
#: invenio_config_iform/templates/security/email/welcome.txt:1
msgid "Dear user,"
msgstr "Lieber Nutzer,"
#: invenio_config_iform/templates/security/email/welcome.txt:3
msgid "Welcome to the Repository of TU Graz!"
msgstr "Willkommen im TU Graz Repository!"
#: invenio_config_iform/templates/security/email/welcome.txt:5
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_iform/templates/security/email/welcome.txt:7
msgid "Guidelines:"
msgstr "Leitfaden:"
#: invenio_config_iform/templates/security/email/welcome.txt:7
msgid "Repository Guide"
msgstr "Handbuch"
#: invenio_config_iform/templates/security/email/welcome.txt:7
msgid "how to upload files"
msgstr "wie man Dateien hochlädt"
#: invenio_config_iform/templates/security/email/welcome.txt:8
msgid "Search Guide"
msgstr "Suchanleitung"
#: invenio_config_iform/templates/security/email/welcome.txt:9
msgid "Terms And Conditions"
msgstr "Nutzungsbedingungen"
#: invenio_config_iform/templates/security/email/welcome.txt:10
msgid "Data Protection Rights"
msgstr "Datenschutzerklärung"
#: invenio_config_iform/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_iform/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_iform/templates/security/email/welcome.txt:18
msgid "Best regards,"
msgstr "Mit freundlichen Grüßen,"
#: invenio_config_iform/templates/security/email/welcome.txt:19
msgid "TU Graz Repository Team"
msgstr "TU Graz Repository Team"
@@ -0,0 +1,91 @@
# Irish translations for I-Form Repository.
# Copyright (C) 2026 I-Form
# This file is distributed under the same license as the I-Form Repository project.
# Cian Hughes <cian.hughes@dcu.ie>, 2026.
#
msgid ""
msgstr ""
"Project-Id-Version: I-Form Repository 1.0\n"
"Report-Msgid-Bugs-To: repository-support@iform.ie\n"
"POT-Creation-Date: 2026-07-01 12:31+0100\n"
"PO-Revision-Date: 2026-07-01 11:06+0100\n"
"Last-Translator: Cian Hughes <cian.hughes@dcu.ie>\n"
"Language: ga\n"
"Language-Team: ga <LL@li.org>\n"
"Plural-Forms: nplurals=5; plural=(n==1 ? 0 : n==2 ? 1 : n>=3 && n<=6 ? 2 "
": n>=7 && n<=10 ? 3 : 4);\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.17.0\n"
#: invenio_config_iform/config.py:82
msgid "Irish"
msgstr "Gaeilge"
#: invenio_config_iform/config.py:95
msgid "Welcome to I-Form Repository!"
msgstr "Fáilte chuig Taisclann I-Form!"
#: invenio_config_iform/templates/security/email/welcome.txt:1
msgid "Dear user,"
msgstr "A úsáideoir, a chara,"
#: invenio_config_iform/templates/security/email/welcome.txt:3
msgid "Welcome to the I-Form Repository!"
msgstr "Fáilte chuig Taisclann I-Form!"
#: invenio_config_iform/templates/security/email/welcome.txt:5
msgid "To help you get started, here are some useful links:"
msgstr "Chun cabhrú leat tosú, seo a leanas roinnt nasc úsáideach:"
#: invenio_config_iform/templates/security/email/welcome.txt:7
msgid "Guidelines:"
msgstr "Treoirlínte:"
#: invenio_config_iform/templates/security/email/welcome.txt:7
msgid "Repository Guide"
msgstr "Treoir don Taisclann"
#: invenio_config_iform/templates/security/email/welcome.txt:7
msgid "how to upload files"
msgstr "conas comhaid a uaslódáil"
#: invenio_config_iform/templates/security/email/welcome.txt:8
msgid "Search Guide"
msgstr "Treoir Chuardaigh"
#: invenio_config_iform/templates/security/email/welcome.txt:9
msgid "Terms And Conditions"
msgstr "Téarmaí agus Coinníollacha"
#: invenio_config_iform/templates/security/email/welcome.txt:10
msgid "Data Protection Rights"
msgstr "Cearta Cosanta Sonraí"
#: invenio_config_iform/templates/security/email/welcome.txt:12
msgid "You can confirm your email through the link below:"
msgstr "Is féidir leat do ríomhphost a dhearbhú tríd an nasc thíos:"
#: invenio_config_iform/templates/security/email/welcome.txt:15
#, python-format
msgid ""
"If you require any assistance please do not hesitate to contact us at "
"%(support_email)s."
msgstr ""
"Má theastaíonn aon chúnamh uait, ná bíodh leisce ort teagmháil a dhéanamh"
" linn ag %(support_email)s."
#: invenio_config_iform/templates/security/email/welcome.txt:17
msgid "Best regards,"
msgstr "Le gach dea-mhéin,"
#: invenio_config_iform/templates/security/email/welcome.txt:18
msgid "I-Form Repository Team"
msgstr "Foireann Thaisclainne I-Form"
+24 -19
View File
@@ -1,25 +1,28 @@
# Translations template for invenio-config-iform.
# Copyright (C) 2021 Graz University of Technology
# This file is distributed under the same license as the
# invenio-config-iform project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2021.
# Translations template for I-Form Repository.
# Copyright (C) 2026 I-Form
# This file is distributed under the same license as the I-Form Repository project.
# Cian Hughes <cian.hughes@dcu.ie>, 2026.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: invenio-config-iform 0.5.5\n"
"Report-Msgid-Bugs-To: mojib.wali@tugraz.at\n"
"POT-Creation-Date: 2021-04-27 15:30+0200\n"
"Project-Id-Version: I-Form Repository 1.0\n"
"Report-Msgid-Bugs-To: repository-support@iform.ie\n"
"POT-Creation-Date: 2026-07-01 12:31+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Last-Translator: Cian Hughes <cian.hughes@dcu.ie>\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.9.0\n"
"Generated-By: Babel 2.17.0\n"
#: invenio_config_iform/config.py:87
msgid "Welcome to TU Graz Repository!"
#: invenio_config_iform/config.py:82
msgid "Irish"
msgstr ""
#: invenio_config_iform/config.py:95
msgid "Welcome to I-Form Repository!"
msgstr ""
#: invenio_config_iform/templates/security/email/welcome.txt:1
@@ -27,7 +30,7 @@ msgid "Dear user,"
msgstr ""
#: invenio_config_iform/templates/security/email/welcome.txt:3
msgid "Welcome to the Repository of TU Graz!"
msgid "Welcome to the I-Form Repository!"
msgstr ""
#: invenio_config_iform/templates/security/email/welcome.txt:5
@@ -58,20 +61,22 @@ msgstr ""
msgid "Data Protection Rights"
msgstr ""
#: invenio_config_iform/templates/security/email/welcome.txt:13
#: invenio_config_iform/templates/security/email/welcome.txt:12
msgid "You can confirm your email through the link below:"
msgstr ""
#: invenio_config_iform/templates/security/email/welcome.txt:16
#: invenio_config_iform/templates/security/email/welcome.txt:15
#, python-format
msgid ""
"If you require any assistance please do not hesitate to contact us at "
"repository-support@tugraz.at."
"%(support_email)s."
msgstr ""
#: invenio_config_iform/templates/security/email/welcome.txt:18
#: invenio_config_iform/templates/security/email/welcome.txt:17
msgid "Best regards,"
msgstr ""
#: invenio_config_iform/templates/security/email/welcome.txt:19
msgid "TU Graz Repository Team"
#: invenio_config_iform/templates/security/email/welcome.txt:18
msgid "I-Form Repository Team"
msgstr ""
+1
View File
@@ -84,6 +84,7 @@ path = "invenio_config_iform/__about__.py"
[tool.hatch.build]
include = ["invenio_config_iform"]
exclude = [".venv", "tests/*", "*/tests/*", "*.rst", "run-tests.sh"]
ignore-vcs = true
# Testing configuration
[tool.pytest]