-
Notifications
You must be signed in to change notification settings - Fork 92
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: Mark Strings for Translations #1894
base: master
Are you sure you want to change the base?
Conversation
165b1b4
to
88ae05f
Compare
88ae05f
to
5adaf45
Compare
2fef4f0
to
8928a1a
Compare
* Checked the spelling or embargoes here: https://dictionary.cambridge.org/dictionary/english/embargoes
9cd7025
to
0061ba3
Compare
* As of the Invenio docs, f strings are not supported, see: https://inveniordm.docs.cern.ch/develop/howtos/i18n/#python issue: python-babel/babel#594 * Remove f string usage in: - invenio_rdm_records/requests/access/requests.py - invenio_rdm_records/services/pids/errors.py
* Update string formatting for compatibility with i18n the following strings were updated: resources/serializers/utils.py services/pids/errors.py
0061ba3
to
a416b7f
Compare
@@ -55,7 +57,7 @@ def metadata(self): | |||
{ | |||
"person_or_org": { | |||
"type": "personal", | |||
"family_name": "Unknown", | |||
"family_name": _("Unknown"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is that Unknown
really a to translatable string? it seems like an item of a controlled vocabulary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Controlled vocabularies should not be translated since they serve as language-agnostic identifiers. However, in this case, the code seems to be setting a fallback value specifically for display purposes, meaning it is intended for end users. or?
❤️ Thank you for your contribution!
Description
Mark missing strings for translations
Checklist
Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:
Frontend
Reminder
By using GitHub, you have already agreed to the GitHub’s Terms of Service including that: