[ckan-dev] Overwrite i18n strings from extensions
seb.bacon at gmail.com
Fri Jun 24 16:24:50 BST 2011
2011/6/24 Adrià Mercader <amercadero at gmail.com>:
> Well, in the case of IATI there are dozens of customized stings, .i.e.
> all of those who include "group" (per "publisher"), or "package" (per
> "activity file"). I don't see how can we can handle it parameterizing
> and the rewrite filter seems maybe is not flexible
OK, though why isn't the rewrite filter flexible? I think it's
probably *more* flexible as it's programmatic rather than just
I just don't like the fact that for this use-case we have to invent or
override a "language". Maybe this doesn't matter, but it seems wrong
> I also think that is not hard to think of a use case where i18n could
> be necessary, like an extension for a national catalog which uses
> custom strings and wants to support different languages.
> 2011/6/24 Seb Bacon <seb.bacon at gmail.com>:
>> Like I mentioned privately this morning, I'm not convinced this should
>> be supported in i18n.
>> The only use-case I've seen for this so far is, in fact, Groups and
>> Publishers (which I've come across twice); perhaps these should just
>> be parameterised?
>> Or we can rename them as a rewrite in a stream filter?
>> 2011/6/24 Adrià Mercader <amercadero at gmail.com>:
>>> Hi all,
>>> I was wondering if anybody has an idea regarding what is the best way
>>> for extensions to overwrite strings from ckan core.
>>> e.g. Someone wants "dataset" instead of "package" or "Publishers"
>>> instead of "Groups".
>>> Ideally, the mechanism should support:
>>> * i18ize the extension strings
>>> * Inherit from the ckan core i18n files, so you only have to define
>>> the strings you want to change.
>>> Or the only way is to modify the actual string on a custom template
>>> and not supporting i18n?
>>> ckan-dev mailing list
>>> ckan-dev at lists.okfn.org
>> skype: seb.bacon
>> mobile: 07790 939224
>> land: 01531 671074
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
mobile: 07790 939224
land: 01531 671074
More information about the ckan-dev