Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n: extract messages #138

Merged
merged 1 commit into from
May 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ coverage.xml

# Translations
*.mo
*.pot

# Django stuff:
*.log
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ recursive-include docs Makefile
recursive-include examples *.py *.sh *.html *.txt
recursive-include invenio_userprofiles *.html
recursive-include invenio_userprofiles *.mo
recursive-include invenio_userprofiles *.po *.pot
recursive-include invenio_userprofiles *.po *.pot *.mo
recursive-include invenio_userprofiles *.py
recursive-include tests *.py
169 changes: 169 additions & 0 deletions invenio_userprofiles/translations/messages.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
# Translations template for invenio-userprofiles.
# Copyright (C) 2022 CERN
# This file is distributed under the same license as the
# invenio-userprofiles project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2022.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: invenio-userprofiles 2.0.0\n"
"Report-Msgid-Bugs-To: [email protected]\n"
"POT-Creation-Date: 2022-05-27 09:02+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.1\n"

#. NOTE: Form field label
#: invenio_userprofiles/forms.py:47
msgid "Username"
msgstr ""

#. NOTE: Form field help text
#: invenio_userprofiles/forms.py:49
#, python-format
msgid "Required. %(username_rules)s"
msgstr ""

#: invenio_userprofiles/forms.py:53
msgid "Username not provided."
msgstr ""

#. NOTE: Form label
#: invenio_userprofiles/forms.py:59
msgid "Full name"
msgstr ""

#. NOTE: Form label
#: invenio_userprofiles/forms.py:65
msgid "Affiliations"
msgstr ""

#. NOTE: Form validation error.
#: invenio_userprofiles/forms.py:83
msgid "Username is not available."
msgstr ""

#. NOTE: Form field label
#: invenio_userprofiles/forms.py:119
msgid "Email address"
msgstr ""

#. NOTE: Form field label
#: invenio_userprofiles/forms.py:131
msgid "Re-enter email address"
msgstr ""

#. NOTE: Form field help text
#: invenio_userprofiles/forms.py:133
msgid "Please re-enter your email address."
msgstr ""

#. NOTE: Form validation error.
#: invenio_userprofiles/forms.py:138
msgid "Email addresses do not match."
msgstr ""

#. NOTE: Form button label
#: invenio_userprofiles/forms.py:147
msgid "Resend verification email"
msgstr ""

#: invenio_userprofiles/forms.py:185
msgid "Profile visibility"
msgstr ""

#: invenio_userprofiles/forms.py:187 invenio_userprofiles/forms.py:200
msgid "Public"
msgstr ""

#: invenio_userprofiles/forms.py:188 invenio_userprofiles/forms.py:201
msgid "Hidden"
msgstr ""

#: invenio_userprofiles/forms.py:190
msgid ""
"Public profiles can be found by other users via searches on username, "
"full name and affiliation. Hidden profiles cannot be found by other "
"users."
msgstr ""

#: invenio_userprofiles/forms.py:198
msgid "Email visibility"
msgstr ""

#: invenio_userprofiles/forms.py:203
msgid ""
"Public email visibility enables your profile to be found by your email "
"address."
msgstr ""

#: invenio_userprofiles/validators.py:18
msgid ""
"Username must start with a letter, be at least three characters long and "
"only contain alphanumeric characters, dashes and underscores."
msgstr ""

#. NOTE: Menu item text (icon replaced by a user icon).
#: invenio_userprofiles/views.py:87
#, python-format
msgid "%(icon)s Profile"
msgstr ""

#: invenio_userprofiles/templates/invenio_userprofiles/settings/profile.html:13
#: invenio_userprofiles/templates/semantic-ui/invenio_userprofiles/settings/profile.html:13
#: invenio_userprofiles/views.py:92
msgid "Profile"
msgstr ""

#. NOTE: Flash message.
#: invenio_userprofiles/views.py:141
msgid "Verification email sent."
msgstr ""

#. NOTE: Flash message after successful update of profile.
#: invenio_userprofiles/views.py:166
#, python-format
msgid ""
"Profile was updated. We have sent a verification email to %(email)s. "
"Please check it."
msgstr ""

#. NOTE: Flash message after successful update of profile.
#: invenio_userprofiles/views.py:172
msgid "Profile was updated."
msgstr ""

#. NOTE: Flash message after successful update of profile.
#: invenio_userprofiles/views.py:187
msgid "Preferences were updated."
msgstr ""

#: invenio_userprofiles/templates/invenio_userprofiles/settings/profile.html:21
#: invenio_userprofiles/templates/semantic-ui/invenio_userprofiles/settings/profile.html:40
msgid "You have not yet verified your email address."
msgstr ""

#: invenio_userprofiles/templates/invenio_userprofiles/settings/profile.html:38
#: invenio_userprofiles/templates/semantic-ui/invenio_userprofiles/settings/profile.html:57
#: invenio_userprofiles/templates/semantic-ui/invenio_userprofiles/settings/profile.html:86
msgid "Cancel"
msgstr ""

#: invenio_userprofiles/templates/invenio_userprofiles/settings/profile.html:39
#: invenio_userprofiles/templates/semantic-ui/invenio_userprofiles/settings/profile.html:58
msgid "Update profile"
msgstr ""

#: invenio_userprofiles/templates/semantic-ui/invenio_userprofiles/settings/profile.html:71
msgid "Preferences"
msgstr ""

#: invenio_userprofiles/templates/semantic-ui/invenio_userprofiles/settings/profile.html:87
msgid "Update preferences"
msgstr ""

1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ universal = 1

[compile_catalog]
directory = invenio_userprofiles/translations/
use-fuzzy = True

[extract_messages]
copyright_holder = CERN
Expand Down