translations plugin for Tutor
This plugin allows adding or overriding translations strings easily from the config.yml.
Installation
pip install tutor-contrib-translations
Usage
First, enable the plugin with
tutor plugins enable translations
Translations are handled in a different way in the legacy Django HTML pages and and in the MFEs.
Translating DJANGO legacy pages
Add a TRANSLATIONS_OPENEDX entry to the configuration file. Then add a key for each language in lower case. Finally add as many items as needed using the original string in english as key and the translated text as value.
E.g.:
TRANSLATIONS_OPENEDX:
es:
"Courses": "Cursos"
"Certificate": "Certificado"
Translating MFE
Similarly, create an entry named TRANSLATIONS_MFE_<mfe name>. Then add a key for each language in lower case. Finally add as many items as needed using the original string in english as key and the translated text as value.
E.g.:
TRANSLATIONS_MFE_LEARNING:
es:
"Courses": "Cursos"
"Certificate": "Certificado"
Save the configuration to apply the translations. Finally, rebuild the openedx and or mfe images where the translations have changed.
License
This software is licensed under the terms of the AGPLv3.
Metadata
Release files for tutor-contrib-translations 17.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tutor_contrib_translations-17.0.0.tar.gz | 16.3 kB | Without provenance | Details for tutor_contrib_translations-17.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tutor_contrib_translations-17.0.0-py3-none-any.whl | Python 3 | none | any | Details for tutor_contrib_translations-17.0.0-py3-none-any.whl |
Total release size: 37.2 kB
Release files / tutor_contrib_translations-17.0.0.tar.gz
| Download URL | tutor_contrib_translations-17.0.0.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e36d5efd59db0d54fe52c71f9116a76a3910fb04a1b721d2f767b635093d1503
|
|
BLAKE2b-256 checksum How to use checksums |
4905e24e634ad4f63cf3ba3b08f835cffcb47cf4a23f3029b1cd66a2e5515429
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6
|
Release files / tutor_contrib_translations-17.0.0-py3-none-any.whl
| Download URL | tutor_contrib_translations-17.0.0-py3-none-any.whl |
|---|---|
| Size | 20.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2bb2c9373510b6189c73fafd6ae60a31d729f2e5a438c7deac7a0f196ad7f227
|
|
BLAKE2b-256 checksum How to use checksums |
05606fcf09aedb6395bbf6589481ac24db865e9005b78d738836022c50c7e3f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.6
|
Security for tutor-contrib-translations 17.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.