Skip to content

Commit

Permalink
added translations skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
Ducica committed Aug 21, 2024
1 parent 2d24c7f commit 54ab227
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 58 deletions.
28 changes: 28 additions & 0 deletions babel.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2015-2018 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.

# Extraction from Python source files

[extractors]
jinja2 = jinja2.ext:babel_extract

[python: **.py]
encoding = utf-8

# Extraction from Jinja2 templates

[jinja2: **/templates/**.html]
encoding = utf-8

[jinja2: **/templates/**.jinja]
encoding = utf-8
extensions = jinjax.jinjax.JinjaX

# Special case for jinjax translation strings
[jinja2: **/jinjax_messages.jinja]
encoding = utf-8
11 changes: 11 additions & 0 deletions oarepo_communities/i18n/translations/cs/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,14 @@ msgstr ""
#: /home/dusanst/Projects/oarepo-dashboard/oarepo_dashboard/ui/dashboard_records/__init__.py:58
msgid "User Dashboard"
msgstr "Nástěnka"

#: /home/dusanst/Projects/oarepo-communities/oarepo_communities/ui/communities_landing/templates/CommunityRecordPage.jinja:2
msgid "Community"
msgstr ""

#: /home/dusanst/Projects/oarepo-communities/oarepo_communities/ui/communities_landing/templates/CommunityRecordPage.jinja:2
msgid "NR Document repository"
msgstr ""

msgid "Search inside the community..."
msgstr ""
11 changes: 11 additions & 0 deletions oarepo_communities/i18n/translations/en/LC_MESSAGES/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,14 @@ msgstr ""
#: /home/dusanst/Projects/oarepo-dashboard/oarepo_dashboard/ui/dashboard_records/__init__.py:58
msgid "User Dashboard"
msgstr "Dashboard"

#: /home/dusanst/Projects/oarepo-communities/oarepo_communities/ui/communities_landing/templates/CommunityRecordPage.jinja:2
msgid "Community"
msgstr ""

#: /home/dusanst/Projects/oarepo-communities/oarepo_communities/ui/communities_landing/templates/CommunityRecordPage.jinja:2
msgid "NR Document repository"
msgstr ""

msgid "Search inside the community..."
msgstr ""
65 changes: 8 additions & 57 deletions oarepo_communities/i18n/translations/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -8,75 +8,26 @@ msgid ""
msgstr ""
"Project-Id-Version: PROJECT VERSION\n"
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
"POT-Creation-Date: 2024-06-01 21:05+0200\n"
"POT-Creation-Date: 2024-08-21 09:50+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.10.3\n"
"Generated-By: Babel 2.16.0\n"

#: /home/dusanst/Projects/oarepo-dashboard/oarepo_dashboard/ui/dashboard_communities/__init__.py:42
msgid "Communities"
msgstr ""

#: /home/dusanst/Projects/oarepo-dashboard/oarepo_dashboard/ui/dashboard_records/__init__.py:49
#: /home/dusanst/Projects/oarepo-communities/oarepo_communities/ui/communities_landing/__init__.py:66
msgid "Records"
msgstr ""

#: /home/dusanst/Projects/oarepo-dashboard/oarepo_dashboard/ui/dashboard_records/__init__.py:58
msgid "User Dashboard"
msgstr ""

#: /home/dusanst/Projects/oarepo-dashboard/oarepo_dashboard/ui/dashboard_requests/__init__.py:47
msgid "Requests"
msgstr ""

msgid "profile"
msgstr ""

msgid "Search in my communities..."
msgstr ""

msgid "Restricted"
msgstr ""

msgid "Filter results"
msgstr ""

msgid "Create new draft"
msgstr ""

msgid "Search in my uploads..."
msgstr ""

msgid "No description"
msgstr ""

msgid "Opened by {{creatorName}} on {{created}}."
msgstr ""

msgid "Recepient: {{receiver}}."
msgstr ""

msgid "Expires at: {{- expiringDate}}"
msgstr ""

msgid "My"
msgstr ""

msgid "Others"
msgstr ""

msgid "Search in my requests..."
msgstr ""

msgid "Edit record"
#: /home/dusanst/Projects/oarepo-communities/oarepo_communities/ui/communities_landing/templates/CommunityRecordPage.jinja:2
msgid "Community"
msgstr ""

msgid "Delete record"
#: /home/dusanst/Projects/oarepo-communities/oarepo_communities/ui/communities_landing/templates/CommunityRecordPage.jinja:2
msgid "NR Document repository"
msgstr ""

msgid "Publish record"
msgid "Search inside the community..."
msgstr ""
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ long_description_content_type = text/markdown


[options]
python = >=3.9
python = >=3.10
install_requires =
invenio-communities # not setting version here, will be limited by oarepo
invenio-drafts-resources # not setting version here, will be limited by oarepo
Expand Down

0 comments on commit 54ab227

Please sign in to comment.