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-14.0.4.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: tutor_contrib_translations-14.0.4.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-14.0.4.tar.gz
Algorithm Hash digest
SHA256 0d7edae5cfa0ac3bb7d83b085afec4d988266232d6b99188f8615175fc841c91
MD5 7e14776ea84ad292f0b59aa5b3756354
BLAKE2b-256 dc30c52fcda9ed1eb6e870030ba5132933b5041415f69d2d8559ab3e9f19dee2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tutor_contrib_translations-14.0.4-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-14.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b8a5ed24db696b075bc0e37417be5c7aa0260e01c12642b0e56062d803f4a710
MD5 a62407ada35bab21adf5e64c2abd02be
BLAKE2b-256 38c0b102136d07ffbae51b322272cd6705616f1114d7e4e3770f07ca75a75179

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