[ckan-dev] Using ckan.i18n.extra_directory
Florian.Brucker at mb.karlsruhe.de
Florian.Brucker at mb.karlsruhe.de
Wed Feb 24 09:05:39 UTC 2016
I've just noticed the other `ckan.i18n.extra_*` configuration options, so
I've set
ckan.i18n.extra_gettext_domain = ckan
ckan.i18n.extra_locales = de
I've also used pybabel to compile the MO file:
pybabel compile -f -i ckan.po -o ckan.mo
However, the translation overrides are still not used.
Regards,
Florian
--
Florian Brucker
Stadt Karlsruhe, Medienbüro
Tel: 0721-133-1884
florian.brucker at mb.karlsruhe.de
Von: Florian.Brucker at mb.karlsruhe.de
An: ckan-dev at lists.okfn.org,
Datum: 23.02.2016 13:47
Betreff: [ckan-dev] Using ckan.i18n.extra_directory
Gesendet von: "ckan-dev" <ckan-dev-bounces at lists.okfn.org>
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
_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160224/10a98efe/attachment-0003.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160224/10a98efe/attachment-0003.gif>
More information about the ckan-dev
mailing list