Skip to content

Commit 34b145a

Browse files
author
sanfordstudent
authored
Merge pull request #128 from edx-solutions/sstudent/new_release
new release 2.0.17
2 parents 5c5dc42 + 51e0122 commit 34b145a

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ install:
1212
- "pip install selenium==2.53.0"
1313
- "pip uninstall -y xblock-drag-and-drop-v2"
1414
- "python setup.py sdist"
15-
- "pip install dist/xblock-drag-and-drop-v2-2.0.16.tar.gz"
15+
- "pip install dist/xblock-drag-and-drop-v2-2.0.17.tar.gz"
1616
script:
1717
- pep8 drag_and_drop_v2 tests --max-line-length=120
1818
- pylint drag_and_drop_v2

README.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -475,20 +475,20 @@ $ python run_tests.py tests/integration/
475475
i18n compatibility
476476
==================
477477

478-
According to [edX docs on XBlock i18n][edx-docs-i18n], LMS runtime is capable of supporting XBlock i18n and l10n.
479-
To comply with l10n requirements, XBlock is supposed to provide translations in
478+
According to [edX docs on XBlock i18n][edx-docs-i18n], LMS runtime is capable of supporting XBlock i18n and l10n.
479+
To comply with l10n requirements, XBlock is supposed to provide translations in
480480
`xblock_package_root/translations/locale_code/LC_MESSAGES/text.po` folder in GNU Gettext Portable Object file format.
481481

482482
[edx-docs-i18n]: http://edx.readthedocs.io/projects/xblock-tutorial/en/latest/edx_platform/edx_lms.html#internationalization-support
483483

484-
Drag and Drop v2 XBlock aims to comply with i18n requirements for Open edX platform, including a stricter set of
484+
Drag and Drop v2 XBlock aims to comply with i18n requirements for Open edX platform, including a stricter set of
485485
requirements for `edx.org` itself, thus providing the required files. So far only two translations are available:
486486

487487
* Default English translation
488488
* Fake "Esperanto" translation used to test i18n/l10n.
489489

490-
Updates to translated strings are supposed to be propagated to `text.po` files. Unfortunately, the process is mostly
491-
manual. EdX [i18n_tools][edx-i18n-tools] might be helpful, but they are too tied to edx-platform, so as of Aug 2016
490+
Updates to translated strings are supposed to be propagated to `text.po` files. Unfortunately, the process is mostly
491+
manual. EdX [i18n_tools][edx-i18n-tools] might be helpful, but they are too tied to edx-platform, so as of Aug 2016
492492
do not provide any benefits over manual approach.
493493

494494
[edx-i18n-tools]: https://github.com/edx/i18n-tools
@@ -510,18 +510,18 @@ Javascript command is a little bit more verbose:
510510
```
511511

512512
Note that both commands generate partial `messages.po` file - JS or python only, while `text.po` is supposed to contain
513-
all translatable strings. Both commands can be modified to append to *existing* `messages.po` file by adding
513+
all translatable strings. Both commands can be modified to append to *existing* `messages.po` file by adding
514514
`--join-existing` key.
515515

516516
To check if `text.po` is correct, one can run `msgfmt` to build a `text.mo` file:
517517

518518
```
519-
~/xblock-drag-and-drop-v2/drag_and_drop_v2$ msgfmt translations/en/LC_MESSAGES/text.po -o translations/en/LC_MESSAGES/text.mo
519+
~/xblock-drag-and-drop-v2/drag_and_drop_v2$ msgfmt translations/en/LC_MESSAGES/text.po -o translations/en/LC_MESSAGES/text.mo
520520
```
521521

522522
If everything is correct, it will silently exit and create `translations/en/LC_MESSAGES/text.mo` file.
523523

524-
**Note:** As of 2016-08-04, XBlock translation feature was (partially?) broken, so switching to other locale did not
524+
**Note:** As of 2016-08-04, XBlock translation feature was (partially?) broken, so switching to other locale did not
525525
cause Drag and Drop v2 to be fully translated - only some strings that happen to exist in edx-platform translation
526526
files are translated. There's an ongoing effort to fix this problem: https://openedx.atlassian.net/browse/WL-230.
527527

@@ -535,17 +535,17 @@ i18n-tools.
535535
To do so, in any virtualenv, install i18n-tools, i.e.
536536

537537
(virtualenv)$ pip install -e git+https://github.com/edx/i18n-tools.git
538-
538+
539539
Then start python interpreter, import `Dummy` translator and follow instructions on `Dummy` docstring:
540-
540+
541541
(virtualenv)$ python
542542
>>> from i18n.dummy import Dummy
543543
>>> help(Dummy)
544-
544+
545545
# or just do
546546
>>> conv = Dummy()
547547
>>> print conv.convert("String to translate")
548-
548+
549549
Then copy output and paste it into `translations/eo/LC_MESSAGES/text.po`.
550550

551551
Downloading translations from Transifex
@@ -558,3 +558,7 @@ $ tx pull -f --mode=reviewed -l en,ar,es_419,fr,he,hi,ko_KR,pt_BR,ru,zh_CN
558558
```
559559

560560
[transifex-client]: https://docs.transifex.com/client/installing-the-client
561+
562+
Releasing
563+
-------------------------------------
564+
To release a new version, update .travis.yml and setup.py to point to your new intended version number and create a new release with that version tag via Github.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def package_data(pkg, root_list):
2323

2424
setup(
2525
name='xblock-drag-and-drop-v2',
26-
version='2.0.16',
26+
version='2.0.17',
2727
description='XBlock - Drag-and-Drop v2',
2828
packages=['drag_and_drop_v2'],
2929
install_requires=[

0 commit comments

Comments
 (0)