[Zope3-dev] selecting the translation domain in ZCML

Jean-Marc Orliaguet jmo at ita.chalmers.se
Tue May 30 05:25:16 EDT 2006


Hi!

there is currently one i18n ZCML directive for registering translations:

 <i18n:registerTranslations directory="locales" />

it uses filenames (LC_MESSAGES/en/mydomain.po) to determine the domain 
name (here: 'mydomain').

this is OK for most use cases because packages manage their own domain, 
but there is a case which I don't know how to solve, i.e.  when a 
package is supposed to register translations into another package's 
translation domain?.

what is the solution? add an option in i18n:registerTranslations? such as:

 <i18n:registerTranslations directory="locales" domain="mydomain" />

and let the ZCML handler update existing catalogs?

Regards
/JM


More information about the Zope3-dev mailing list