Maurits van Rees | 8 Jun 22:40
Picon
Favicon

Recipe for overriding translations

Hi,

I created a buildout recipe for overriding translations:
http://pypi.python.org/pypi/collective.recipe.i18noverrides

It creates an i18n directory within one or more zope 2 instances in
your buildout.  It copies some .po files to those directories.  The
translations in those .po files will override any other translations.
This only works for overriding i18n directories, not for locales.

See that pypi page for details, but if your buildout.cfg has two zope
instances (two zeo clients most likely) the configuration can be
something like this:

[buildout]
parts = instance1 instance2 i18noverrides
...

[i18noverrides]
recipe = collective.recipe.i18noverrides
source = ${buildout:directory}/translations
destinations =
    ${instance1:location}
    ${instance2:location}

Create a translations directory in your buildout and put some po files
in it.  Run bin/buildout and the recipe will create an i18n directory
in each of the instances and copy those po files there.  Restart the
instances and those translations will be used.

--

-- 
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects

Gmane