Skip to main content

edX Internationalization Tools

Project description

Installing

python setup.py install

Running

Running commands from the edx-platform directory will default to loading the configuration at ./conf/locale/config.yaml. You can specify a different configuration file with the --config argument.

  • i18n_tool dummy

  • i18n_tool extract

  • i18n_tool generate

  • i18n_tool segment

  • i18n_tool transifex

  • i18n_tool validate

Configuration

Details of the config.yaml file are in edx-platform/conf/locale/config.yaml

Changes

v0.3.2

  • i18n_tool validate no longer complains about problems in both the component .po files and the combined .po files.

v0.3.1

  • i18n_tool extract will preserve existing django.po and djangojs.po files in the source directory.

v0.3

  • i18n_tool transifex push and i18n_tool transifex pull now can take optional resource names on the command line. If not provided, all resources are pushed/pulled.

v0.2.1

  • i18n_tool validate no longer leaves an unneeded messages.mo file behind.

Development

To work on this code:

  1. Install the requirements:

    $ pip install -r requirements.txt
  2. Run tests:

    $ nosetests

    If you have failures because msgcat failed, you may need to install it, and adjust your PATH to include it. On a Mac, for example:

    $ brew install gettext
    $ PATH=/usr/local/Cellar/gettext/0.19.3/bin/:$PATH nosetests

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

edx-i18n-tools-0.3.3.tar.gz (19.3 kB view hashes)

Uploaded Source

Built Distribution

edx_i18n_tools-0.3.3-py2.py3-none-any.whl (24.8 kB view hashes)

Uploaded Python 2 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