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

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: tutor_contrib_translations-15.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-15.0.1.tar.gz
Algorithm Hash digest
SHA256 d96d9bc51ceb6b67978b8407a9fcc378fe602d7df660a1ca40a56fab6dad3898
MD5 05bf7624ac3c466c8bd55b69b666f82b
BLAKE2b-256 c48c21ff8d6dd0739ecb7af39fd743f7550084a59acf29c5540b80feec7f1bfd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tutor_contrib_translations-15.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-15.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7f7184ffb1ec82649f3e5d87ab313037c4c98c66c9628dbcddd0959e5f8236c7
MD5 261096f16f2a398681ac02a06acbce13
BLAKE2b-256 07f05ae3b7ab5992ee603743f3d93a74b23ca9edb6c69ce4c1d459a1ab9d2ecc

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