[ckan-changes] [okfn/ckan] 6335fa: [#1808] Initial version of dataset translation
GitHub
noreply at github.com
Wed Feb 22 18:28:42 UTC 2012
Branch: refs/heads/feature-1821-multilingual-extension
Home: https://github.com/okfn/ckan
Commit: 6335fa433450d5cbe198727fd134280b9daab7a1
https://github.com/okfn/ckan/commit/6335fa433450d5cbe198727fd134280b9daab7a1
Author: Sean Hammond <seanhammond at lavabit.com>
Date: 2012-02-22 (Wed, 22 Feb 2012)
Changed paths:
M ckan/lib/dictization/model_dictize.py
M ckan/logic/action/get.py
M ckan/logic/schema.py
M ckan/templates/_util.html
M ckan/tests/lib/test_dictization.py
M ckan/tests/lib/test_dictization_schema.py
M ckanext/multilingual/plugin.py
Log Message:
-----------
[#1808] Initial version of dataset translation
Always translates into German for now.
term_translation_show() Handle translating a list of terms in one database
query.
Add 'display name' (same as 'name') to every tag dict in package_dictize().
Also add 'display name' to default_tags_schema().
ckanext/multilingual/plugin.py:before_view()
For each tag, if a translation can be found, replace the tag's 'display
name' with the translated version.
templates/_util.html:tag_list() Show tag's 'display name' rather than
'name' (but still use 'name' in the hyperlink URL).
Commit: 808f09b3f718137a8d87f0035bc38cffc0a3d55f
https://github.com/okfn/ckan/commit/808f09b3f718137a8d87f0035bc38cffc0a3d55f
Author: Sean Hammond <seanhammond at lavabit.com>
Date: 2012-02-22 (Wed, 22 Feb 2012)
Changed paths:
M ckanext/multilingual/plugin.py
Log Message:
-----------
[#1808] Get lang_code from environ when translating datasets
Commit: c6b419272176c6e4555e50de51bb777bcbc19444
https://github.com/okfn/ckan/commit/c6b419272176c6e4555e50de51bb777bcbc19444
Author: Sean Hammond <seanhammond at lavabit.com>
Date: 2012-02-22 (Wed, 22 Feb 2012)
Changed paths:
M ckanext/multilingual/plugin.py
A ckanext/multilingual/tests/test_multilingual_plugin.py
Log Message:
-----------
[#1808] More work on dataset view translations and tests thereof
multilingual/plugin.py:
Translate all of a dataset's fields, not just the tags.
Add test_multilingual_plugin.py.
Still need to implement fallback language.
Compare: https://github.com/okfn/ckan/compare/b77af90...c6b4192
More information about the ckan-changes
mailing list