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

Uploaded Source

Built Distribution

File details

Details for the file tutor-contrib-translations-15.0.0.tar.gz.

File metadata

  • Download URL: tutor-contrib-translations-15.0.0.tar.gz
  • Upload date:
  • Size: 16.1 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-15.0.0.tar.gz
Algorithm Hash digest
SHA256 859fa4920f3ba51cffcc18803639f087e4245edd80ae10c8a192776611ceefa0
MD5 9749b897ccb3141d3d421ce0e8b82bc7
BLAKE2b-256 da65f3808efb9dcc59c36bdf51c14188307d7e84bd00922fe7908e397fd90174

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tutor_contrib_translations-15.0.0-py3-none-any.whl
  • Upload date:
  • Size: 19.5 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-15.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cbfa73617156fc8407d94dcf041bf85213d0d2dfb1f528bd8380ea50063745d1
MD5 d68da49e3a4850cb00e38902f3d6ab4c
BLAKE2b-256 8a5988d68e2904ceda30523a30fcb99d38f563314517cf737325c9c52e161a78

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