[ckan-dev] Using ckan.i18n.extra_directory

Florian.Brucker at mb.karlsruhe.de Florian.Brucker at mb.karlsruhe.de
Tue Feb 23 12:29:30 UTC 2016



Hello everyone,

I'm trying to override some of CKAN's default translations via the
`ckan.i18n.extra_directory` option, but I can't get it to work.


Here are the steps that I've taken:

1) Set 'ckan.i18n.extra_directory = "/path/to/my/extra/translations/"'
in /etc/ckan/default/development.ini

2) Copy CKAN's src/ckan/ckan/i18n/de/LC_MESSAGES/ckan.po
to /path/to/my/extra/translations/de/LC_MESSAGES/ckan.po

3) Comment out everything but the things that I want to change

4) Make my changes

5) Compile ckan.po to ckan.mo via the `msgfmt` tool from the gettext
package.

5) Restart the server (I'm running CKAN 2.5.1 via (`paster serve`)


However, the original translations are still in place. I haven't found any
status or error messages related to this in the paster output, so I am
unsure where I went wrong.


Regards,
Florian

--
Florian Brucker
Stadt Karlsruhe, Medienbüro
Tel: 0721-133-1884
florian.brucker at mb.karlsruhe.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160223/090d042e/attachment-0002.html>


More information about the ckan-dev mailing list