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.0.tar.gz (16.2 kB view hashes)

Uploaded Source

Built Distribution

tutor_contrib_translations-16.0.0-py3-none-any.whl (19.5 kB view hashes)

Uploaded Python 3

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