[ckan-dev] Antwort: Re: Using ckan.i18n.extra_directory

Florian.Brucker at mb.karlsruhe.de Florian.Brucker at mb.karlsruhe.de
Fri Mar 11 14:13:54 UTC 2016


For the record: This was due to a misspelling in the documentation's
example code ("18n" vs. "i18n"). I've submitted a fix
(https://github.com/ckan/ckan/pull/2892) that has already been merged.


Regards,
Florian
--
Stadt Karlsruhe, Medienbüro
Tel: 0721-133-1884
florian.brucker at mb.karlsruhe.de


"ckan-dev" <ckan-dev-bounces at lists.okfn.org> schrieb am 24.02.2016
10:05:39:

> Von: Florian.Brucker at mb.karlsruhe.de
> An: CKAN Development Discussions <ckan-dev at lists.okfn.org>,
> Datum: 24.02.2016 10:05
> Betreff: Re: [ckan-dev] Using ckan.i18n.extra_directory
> Gesendet von: "ckan-dev" <ckan-dev-bounces at lists.okfn.org>
>
> 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
>
> Florian.Brucker---23.02.2016 13:47:40---Hello everyone, I'm trying
> to override some of CKAN's default translations via the
>
> 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
> [Anhang "graycol.gif" gelöscht von Florian Brucker/MB/Stadt_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/20160311/2c3a61d5/attachment-0002.html>


More information about the ckan-dev mailing list