Skip to main content

Translations plugin for Tutor

Project description

This plugin allows adding or overriding translations strings easily from the config.yml.

Installation

pip install git+https://github.com/aulasneo/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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tutor_contrib_translations-16.0.1.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file tutor_contrib_translations-16.0.1.tar.gz.

File metadata

  • Download URL: tutor_contrib_translations-16.0.1.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for tutor_contrib_translations-16.0.1.tar.gz
Algorithm Hash digest
SHA256 71a423ac082462f8a22992b9ac6c368ac1831f6f1d2c88e5f3e2e9071801791b
MD5 6da2f78f8c4557cb93deee1e200d431a
BLAKE2b-256 262063dded1b9c2592caec5d16be0a2b1f69d3f8d9606d47c9a8fe03ddf1810b

See more details on using hashes here.

File details

Details for the file tutor_contrib_translations-16.0.1-py3-none-any.whl.

File metadata

  • Download URL: tutor_contrib_translations-16.0.1-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for tutor_contrib_translations-16.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 98cf36a31654e1af2a4b3dfc2720dbdccb798c1f698341af1cbe9cf1a4fc98e1
MD5 d6d1693b5992bcd52c3246aaa3a3e764
BLAKE2b-256 0a117718de9d9b7ac51f17764b5dd742171c20d1c2368c1d2b32033878fd8572

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page