[ckan-dev] Migrating to CKAN 2.6 - Translation Problems

Michael Speth spethm at landcareresearch.co.nz
Wed Mar 15 00:06:36 UTC 2017


Greetings,

  I am trying to migrate from ckan 2.5 to ckan 2.6.  I have run into the following error:

TypeError: translation() got an unexpected keyword argument 'config'

I am using the ckanext-lcrnz extension which has a translation for NZ English.  I suspect there is some compatability with the transation and CKAN 2.6.

Any ideas of how I should update the translation file to make it compatible with 2.6?

https://github.com/okfn/ckanext-lcrnz/blob/master/i18n/en_NZ/LC_MESSAGES/ckan.po

Note, I re-compiled this file and I still get the same error.

Steps that I took to recompile

  *   sudo mkdir -p ckan/i18n/en_NZ/LC_MESSAGES
  *   . /usr/lib/ckan/default/bin/activate
  *   cd /usr/lib/ckan/default/src/ckan
  *   sudo cp ../ckanext-lcrnz/i18n/en_NZ/LC_MESSAGES/ckan.po ckan/i18n/en_NZ/LC_MESSAGES/.
  *   sudo python setup.py compile_catalog --locale en_NZ

output

running compile_catalog
773 of 995 messages (77%) translated in ckan/i18n/en_NZ/LC_MESSAGES/ckan.po
compiling catalog ckan/i18n/en_NZ/LC_MESSAGES/ckan.po to ckan/i18n/en_NZ/LC_MESSAGES/ckan.mo

  *   sudo cp ckan/i18n/en_NZ/LC_MESSAGES/ckan.mo ../ckanext-lcrnz/i18n/en_NZ/LC_MESSAGES/.
  *   sudo rm -rf ckan/i18n/en_NZ/
  *   sudo service apache2 restart

Thank you for your help

--
Michael Speth
DevOps Computer Engineer
Landcare Research Consultant

________________________________

Please consider the environment before printing this email
Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails.
The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20170315/827708fd/attachment-0002.html>


More information about the ckan-dev mailing list