[ckan-dev] How to activate and compile CKAN internationalization files within an extension

Ian Ward ian at excess.org
Sun Nov 3 23:56:41 UTC 2013


On Sun, Nov 3, 2013 at 5:38 PM, Stefan Oderbolz <stefan.oderbolz at liip.ch> wrote:
>>
>> 2) Is it valid to compile the .mo files by using the "msgfmt" tool from
>> gettext package? I used something like
>
>
>  Although I never tried this before, but I would be really surprised of this
> doesn't work. "gettext" is a standard format and it shouldn't matter how you
> compile your files.

Yes, this is what we had to do as well. We're using msgcat to combine
(and partially override) the core CKAN French translations then
replacing the generated .mo file:
https://github.com/open-data/ckanext-canada/blob/master/bin/build-combined-ckan-mo.sh




More information about the ckan-dev mailing list