Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-drag-and-drop-v2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
xblock-drag-and-drop-v2
Commits
34b145ad
Commit
34b145ad
authored
Mar 22, 2017
by
sanfordstudent
Committed by
GitHub
Mar 22, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #128 from edx-solutions/sstudent/new_release
new release 2.0.17
parents
5c5dc427
51e01221
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
14 deletions
+18
-14
.travis.yml
+1
-1
README.md
+16
-12
setup.py
+1
-1
No files found.
.travis.yml
View file @
34b145ad
...
...
@@ -12,7 +12,7 @@ install:
-
"
pip
install
selenium==2.53.0"
-
"
pip
uninstall
-y
xblock-drag-and-drop-v2"
-
"
python
setup.py
sdist"
-
"
pip
install
dist/xblock-drag-and-drop-v2-2.0.1
6
.tar.gz"
-
"
pip
install
dist/xblock-drag-and-drop-v2-2.0.1
7
.tar.gz"
script
:
-
pep8 drag_and_drop_v2 tests --max-line-length=120
-
pylint drag_and_drop_v2
...
...
README.md
View file @
34b145ad
...
...
@@ -475,20 +475,20 @@ $ python run_tests.py tests/integration/
i18n compatibility
==================
According to
[
edX docs on XBlock i18n
][
edx-docs-i18n
]
, LMS runtime is capable of supporting XBlock i18n and l10n.
To comply with l10n requirements, XBlock is supposed to provide translations in
According to
[
edX docs on XBlock i18n
][
edx-docs-i18n
]
, LMS runtime is capable of supporting XBlock i18n and l10n.
To comply with l10n requirements, XBlock is supposed to provide translations in
`xblock_package_root/translations/locale_code/LC_MESSAGES/text.po`
folder in GNU Gettext Portable Object file format.
[
edx-docs-i18n
]:
http://edx.readthedocs.io/projects/xblock-tutorial/en/latest/edx_platform/edx_lms.html#internationalization-support
Drag and Drop v2 XBlock aims to comply with i18n requirements for Open edX platform, including a stricter set of
Drag and Drop v2 XBlock aims to comply with i18n requirements for Open edX platform, including a stricter set of
requirements for
`edx.org`
itself, thus providing the required files. So far only two translations are available:
*
Default English translation
*
Fake "Esperanto" translation used to test i18n/l10n.
Updates to translated strings are supposed to be propagated to
`text.po`
files. Unfortunately, the process is mostly
manual. EdX
[
i18n_tools
][
edx-i18n-tools
]
might be helpful, but they are too tied to edx-platform, so as of Aug 2016
Updates to translated strings are supposed to be propagated to
`text.po`
files. Unfortunately, the process is mostly
manual. EdX
[
i18n_tools
][
edx-i18n-tools
]
might be helpful, but they are too tied to edx-platform, so as of Aug 2016
do not provide any benefits over manual approach.
[
edx-i18n-tools
]:
https://github.com/edx/i18n-tools
...
...
@@ -510,18 +510,18 @@ Javascript command is a little bit more verbose:
```
Note that both commands generate partial
`messages.po`
file - JS or python only, while
`text.po`
is supposed to contain
all translatable strings. Both commands can be modified to append to
*existing*
`messages.po`
file by adding
all translatable strings. Both commands can be modified to append to
*existing*
`messages.po`
file by adding
`--join-existing`
key.
To check if
`text.po`
is correct, one can run
`msgfmt`
to build a
`text.mo`
file:
```
~/xblock-drag-and-drop-v2/drag_and_drop_v2$ msgfmt translations/en/LC_MESSAGES/text.po -o translations/en/LC_MESSAGES/text.mo
~/xblock-drag-and-drop-v2/drag_and_drop_v2$ msgfmt translations/en/LC_MESSAGES/text.po -o translations/en/LC_MESSAGES/text.mo
```
If everything is correct, it will silently exit and create
`translations/en/LC_MESSAGES/text.mo`
file.
**Note:**
As of 2016-08-04, XBlock translation feature was (partially?) broken, so switching to other locale did not
**Note:**
As of 2016-08-04, XBlock translation feature was (partially?) broken, so switching to other locale did not
cause Drag and Drop v2 to be fully translated - only some strings that happen to exist in edx-platform translation
files are translated. There's an ongoing effort to fix this problem: https://openedx.atlassian.net/browse/WL-230.
...
...
@@ -535,17 +535,17 @@ i18n-tools.
To do so, in any virtualenv, install i18n-tools, i.e.
(virtualenv)$ pip install -e git+https://github.com/edx/i18n-tools.git
Then start python interpreter, import
`Dummy`
translator and follow instructions on
`Dummy`
docstring:
(virtualenv)$ python
>>> from i18n.dummy import Dummy
>>> help(Dummy)
# or just do
>>> conv = Dummy()
>>> print conv.convert("String to translate")
Then copy output and paste it into
`translations/eo/LC_MESSAGES/text.po`
.
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
```
[
transifex-client
]:
https://docs.transifex.com/client/installing-the-client
Releasing
-------------------------------------
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
View file @
34b145ad
...
...
@@ -23,7 +23,7 @@ def package_data(pkg, root_list):
setup
(
name
=
'xblock-drag-and-drop-v2'
,
version
=
'2.0.1
6
'
,
version
=
'2.0.1
7
'
,
description
=
'XBlock - Drag-and-Drop v2'
,
packages
=
[
'drag_and_drop_v2'
],
install_requires
=
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment