Commit 651c0ef6 by Zia Fazal Committed by GitHub

Merge pull request #113 from edx-solutions/ziafazal/WL-581

added translation files and transifex config
parents 292c2baf 2825ae76
...@@ -12,7 +12,7 @@ install: ...@@ -12,7 +12,7 @@ install:
- "pip install selenium==2.53.0" - "pip install selenium==2.53.0"
- "pip uninstall -y xblock-drag-and-drop-v2" - "pip uninstall -y xblock-drag-and-drop-v2"
- "python setup.py sdist" - "python setup.py sdist"
- "pip install dist/xblock-drag-and-drop-v2-2.0.12.tar.gz" - "pip install dist/xblock-drag-and-drop-v2-2.0.13.tar.gz"
script: script:
- pep8 drag_and_drop_v2 tests --max-line-length=120 - pep8 drag_and_drop_v2 tests --max-line-length=120
- pylint drag_and_drop_v2 - pylint drag_and_drop_v2
......
[main]
host = https://www.transifex.com
[xblocks.drag-and-drop-v2]
file_filter = drag_and_drop_v2/translations/<lang>/LC_MESSAGES/text.po
source_file = drag_and_drop_v2/translations/en/LC_MESSAGES/text.po
source_lang = en
type = PO
...@@ -547,3 +547,14 @@ Then start python interpreter, import `Dummy` translator and follow instructions ...@@ -547,3 +547,14 @@ Then start python interpreter, import `Dummy` translator and follow instructions
>>> print conv.convert("String to translate") >>> print conv.convert("String to translate")
Then copy output and paste it into `translations/eo/LC_MESSAGES/text.po`. Then copy output and paste it into `translations/eo/LC_MESSAGES/text.po`.
Downloading translations from Transifex
-------------------------------------
If you want to download translations from Transifex install [Transifex client][transifex-client] and run this command while inside project root directory
```bash
$ tx pull -f --mode=reviewed -l en,ar,es_419,fr,he,hi,ko_KR,pt_BR,ru,zh_CN
```
[transifex-client]: https://docs.transifex.com/client/installing-the-client
...@@ -23,7 +23,7 @@ def package_data(pkg, root_list): ...@@ -23,7 +23,7 @@ def package_data(pkg, root_list):
setup( setup(
name='xblock-drag-and-drop-v2', name='xblock-drag-and-drop-v2',
version='2.0.12', version='2.0.13',
description='XBlock - Drag-and-Drop v2', description='XBlock - Drag-and-Drop v2',
packages=['drag_and_drop_v2'], packages=['drag_and_drop_v2'],
install_requires=[ install_requires=[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment