Skip to content

Commit

Permalink
Merge pull request #5 from Narodni-repozitar/translations
Browse files Browse the repository at this point in the history
Translations
  • Loading branch information
mesemus authored Mar 27, 2023
2 parents c21244b + b9b48e6 commit afc6b65
Show file tree
Hide file tree
Showing 11 changed files with 503 additions and 8 deletions.
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ var/
*.egg-info/
.installed.cfg
*.egg
Pipfile
Pipfile.lock

# PyInstaller
# Usually these files are written by a python script from a template
Expand All @@ -55,9 +53,6 @@ nosetests.xml
coverage.xml
*,cover

# Translations
*.mo

# Django stuff:
*.log

Expand Down
3 changes: 3 additions & 0 deletions babel.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[python: **.py]
[jinja2: **/templates/**.html]

Empty file added nr_vocabularies/__init__.py
Empty file.
1 change: 0 additions & 1 deletion nr_vocabularies/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def init_config(self, app):

app.config.setdefault("OAREPO_VOCABULARIES_CUSTOM_CF", []).extend(
[
KeywordCF("blah"),
RelatedURICF("relatedURI"),
HintCF("hint"),
NonPreferredLabelsCF("nonpreferredLabels"),
Expand Down
42 changes: 42 additions & 0 deletions nr_vocabularies/translations.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# just for translations


def _(x):
return x


translations = [
_("vocabulary.access-rights"),
_("vocabulary.contributor-roles"),
_("vocabulary.countries"),
_("vocabulary.funders"),
_("vocabulary.institutions"),
_("vocabulary.item-relation-types"),
_("vocabulary.languages"),
_("vocabulary.licenses"),
_("vocabulary.resource-types"),
_("vocabulary.subject-categories"),
_("vocabulary.relatedURI_COAR"),
_("vocabulary.marcCode"),
_("vocabulary.dataCiteCode"),
_("vocabulary.alpha3Code"),
_("vocabulary.nonpreferredLabels_en"),
_("vocabulary.acronym"),
_("vocabulary.relatedURI_CrossrefFunderID"),
_("vocabulary.relatedURI_ROR"),
_("vocabulary.contexts"),
_("vocabulary.tags"),
_("vocabulary.RID"),
_("vocabulary.ICO"),
_("vocabulary.relatedURI_URL"),
_("vocabulary.nameType"),
_("vocabulary.nonpreferredLabels_cs"),
_("vocabulary.pair"),
_("vocabulary.hint_en"),
_("vocabulary.hint_cs"),
_("vocabulary.alpha3CodeENG"),
_("vocabulary.alpha3CodeNative"),
_("vocabulary.icon"),
_("vocabulary.coarType"),
_("vocabulary.dataCiteType"),
]
Binary file not shown.
152 changes: 152 additions & 0 deletions nr_vocabularies/translations/cs/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
# Czech translations for PROJECT.
# Copyright (C) 2023 ORGANIZATION
# This file is distributed under the same license as the PROJECT project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2023.
#
msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2023-03-27 16:07+0200\n"
"PO-Revision-Date: 2023-03-27 16:21+0200\n"
"Last-Translator: \n"
"Language-Team: cs <[email protected]>\n"
"Language: cs\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=((n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2);\n"
"Generated-By: Babel 2.11.0\n"
"X-Generator: Poedit 3.2.2\n"

#: nr_vocabularies/translations.py:9
msgid "vocabulary.access-rights"
msgstr "Přístupová práva"

#: nr_vocabularies/translations.py:10
msgid "vocabulary.contributor-roles"
msgstr "Role přispěvatele"

#: nr_vocabularies/translations.py:11
msgid "vocabulary.countries"
msgstr "Státy"

#: nr_vocabularies/translations.py:12
msgid "vocabulary.funders"
msgstr "Poskytovatelé finanční podpory"

#: nr_vocabularies/translations.py:13
msgid "vocabulary.institutions"
msgstr "Instituce"

#: nr_vocabularies/translations.py:14
msgid "vocabulary.item-relation-types"
msgstr "Typ vztahu popisovaného dokumentu k propojené jednotce"

#: nr_vocabularies/translations.py:15
msgid "vocabulary.languages"
msgstr "Jazyky"

#: nr_vocabularies/translations.py:16
msgid "vocabulary.licenses"
msgstr "Licence"

#: nr_vocabularies/translations.py:17
msgid "vocabulary.resource-types"
msgstr "Typ zdroje"

#: nr_vocabularies/translations.py:18
msgid "vocabulary.subject-categories"
msgstr "Oborové třídění"

#: nr_vocabularies/translations.py:19
msgid "vocabulary.relatedURI_COAR"
msgstr "COAR uri"

#: nr_vocabularies/translations.py:20
msgid "vocabulary.marcCode\t"
msgstr "MARC"

#: nr_vocabularies/translations.py:21
msgid "vocabulary.dataCiteCode"
msgstr "Data Cite"

#: nr_vocabularies/translations.py:22
msgid "vocabulary.alpha3Code"
msgstr "Alpha 3 kód"

#: nr_vocabularies/translations.py:23
msgid "vocabulary.nonpreferredLabels_en"
msgstr "Alternativní (nepreferovaný) název anglicky"

#: nr_vocabularies/translations.py:24
msgid "vocabulary.acronym"
msgstr "Acronym"

#: nr_vocabularies/translations.py:25
msgid "vocabulary.relatedURI_CrossrefFunderID"
msgstr "Crossref ID poskytovatele podpory"

#: nr_vocabularies/translations.py:26
msgid "vocabulary.relatedURI_ROR"
msgstr "ROR uri"

#: nr_vocabularies/translations.py:27
msgid "vocabulary.contexts"
msgstr "Kontexty"

#: nr_vocabularies/translations.py:28
msgid "vocabulary.tags"
msgstr "Značky"

#: nr_vocabularies/translations.py:29
msgid "vocabulary.RID"
msgstr "RID"

#: nr_vocabularies/translations.py:30
msgid "vocabulary.ICO"
msgstr "IČO"

#: nr_vocabularies/translations.py:31
msgid "vocabulary.relatedURI_URL"
msgstr "URL odkazu"

#: nr_vocabularies/translations.py:32
msgid "vocabulary.nameType"
msgstr "Typ názvu"

#: nr_vocabularies/translations.py:33
msgid "vocabulary.nonpreferredLabels_cs"
msgstr "Alternativní (nepreferovaný) název česky"

#: nr_vocabularies/translations.py:34
msgid "vocabulary.pair"
msgstr "Pár"

#: nr_vocabularies/translations.py:35
msgid "vocabulary.hint_en"
msgstr "Nápověda anglicky"

#: nr_vocabularies/translations.py:36
msgid "vocabulary.hint_cs"
msgstr "Nápověda česky"

#: nr_vocabularies/translations.py:37
msgid "vocabulary.alpha3CodeENG"
msgstr "Alpha 3 anglický kód"

#: nr_vocabularies/translations.py:38
msgid "vocabulary.alpha3CodeNative"
msgstr "Alpha 3 nativní kód"

#: nr_vocabularies/translations.py:39
msgid "vocabulary.icon"
msgstr "Ikona"

#: nr_vocabularies/translations.py:40
msgid "vocabulary.coarType"
msgstr "COAR tip"

#: nr_vocabularies/translations.py:41
msgid "vocabulary.dataCiteType"
msgstr "Data Cite typ"
Binary file not shown.
152 changes: 152 additions & 0 deletions nr_vocabularies/translations/en/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
# English translations for PROJECT.
# Copyright (C) 2023 ORGANIZATION
# This file is distributed under the same license as the PROJECT project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2023.
#
msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2023-03-27 16:07+0200\n"
"PO-Revision-Date: 2023-03-27 16:23+0200\n"
"Last-Translator: \n"
"Language-Team: en <[email protected]>\n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Generated-By: Babel 2.11.0\n"
"X-Generator: Poedit 3.2.2\n"

#: nr_vocabularies/translations.py:9
msgid "vocabulary.access-rights"
msgstr "Access rights"

#: nr_vocabularies/translations.py:10
msgid "vocabulary.contributor-roles"
msgstr "Contributor Type"

#: nr_vocabularies/translations.py:11
msgid "vocabulary.countries"
msgstr "Countries"

#: nr_vocabularies/translations.py:12
msgid "vocabulary.funders"
msgstr "Research funders"

#: nr_vocabularies/translations.py:13
msgid "vocabulary.institutions"
msgstr "Institutions"

#: nr_vocabularies/translations.py:14
msgid "vocabulary.item-relation-types"
msgstr "The type of relationship of the described document to the interconnected item (unit)"

#: nr_vocabularies/translations.py:15
msgid "vocabulary.languages"
msgstr "Languages"

#: nr_vocabularies/translations.py:16
msgid "vocabulary.licenses"
msgstr "Licenses"

#: nr_vocabularies/translations.py:17
msgid "vocabulary.resource-types"
msgstr "Resource type"

#: nr_vocabularies/translations.py:18
msgid "vocabulary.subject-categories"
msgstr "Subject categories"

#: nr_vocabularies/translations.py:19
msgid "vocabulary.relatedURI_COAR"
msgstr "COAR URL"

#: nr_vocabularies/translations.py:20
msgid "vocabulary.marcCode\t"
msgstr "MARC"

#: nr_vocabularies/translations.py:21
msgid "vocabulary.dataCiteCode"
msgstr "Data Cite Code"

#: nr_vocabularies/translations.py:22
msgid "vocabulary.alpha3Code"
msgstr "Alpha 3 Code"

#: nr_vocabularies/translations.py:23
msgid "vocabulary.nonpreferredLabels_en"
msgstr "Alternative (non-preferred) label in English"

#: nr_vocabularies/translations.py:24
msgid "vocabulary.acronym"
msgstr "Acronym"

#: nr_vocabularies/translations.py:25
msgid "vocabulary.relatedURI_CrossrefFunderID"
msgstr "CrossRef Funder ID"

#: nr_vocabularies/translations.py:26
msgid "vocabulary.relatedURI_ROR"
msgstr "ROR url"

#: nr_vocabularies/translations.py:27
msgid "vocabulary.contexts"
msgstr "Contexts"

#: nr_vocabularies/translations.py:28
msgid "vocabulary.tags"
msgstr "Tags"

#: nr_vocabularies/translations.py:29
msgid "vocabulary.RID"
msgstr "RID"

#: nr_vocabularies/translations.py:30
msgid "vocabulary.ICO"
msgstr "Czech institution identification number"

#: nr_vocabularies/translations.py:31
msgid "vocabulary.relatedURI_URL"
msgstr "Related URL"

#: nr_vocabularies/translations.py:32
msgid "vocabulary.nameType"
msgstr "Name Type"

#: nr_vocabularies/translations.py:33
msgid "vocabulary.nonpreferredLabels_cs"
msgstr "Alternative (non-preferred) label in Czech"

#: nr_vocabularies/translations.py:34
msgid "vocabulary.pair"
msgstr "Pair"

#: nr_vocabularies/translations.py:35
msgid "vocabulary.hint_en"
msgstr "Hint in English"

#: nr_vocabularies/translations.py:36
msgid "vocabulary.hint_cs"
msgstr "Hint in Czech"

#: nr_vocabularies/translations.py:37
msgid "vocabulary.alpha3CodeENG"
msgstr "Alpha 3 English Code"

#: nr_vocabularies/translations.py:38
msgid "vocabulary.alpha3CodeNative"
msgstr "Alpha 3 Native Code"

#: nr_vocabularies/translations.py:39
msgid "vocabulary.icon"
msgstr "Icon"

#: nr_vocabularies/translations.py:40
msgid "vocabulary.coarType"
msgstr "COAR Type"

#: nr_vocabularies/translations.py:41
msgid "vocabulary.dataCiteType"
msgstr "Data Cite Type"
Loading

0 comments on commit afc6b65

Please sign in to comment.