i18noverride with plone-XX.po doesn't work with Plone 3.3.1?

3 messages Options
Embed this post
Permalink
Daniel Dekany

i18noverride with plone-XX.po doesn't work with Plone 3.3.1?

Reply Threaded More More options
Print post
Permalink
For me, the recipe "installs" everything apparently right (into
zeocluster/parts/client<N>/i18n/plone-<XX>.po; that's the
INSTANCE_HOME AFAIK), yet my messages doesn't override those coming
from buildout-cache/eggs/plone.app.locales/.../plone-<XX>.po. Does it
work for someone else?

--
Best regards,
 Daniel Dekany


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Plone-i18n mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-i18n
Maurits van Rees-3

Re: i18noverride with plone-XX.po doesn't work with Plone 3.3.1?

Reply Threaded More More options
Print post
Permalink
Daniel Dekany, on 2009-10-21:
> For me, the recipe "installs" everything apparently right (into
> zeocluster/parts/client<N>/i18n/plone-<XX>.po; that's the
> INSTANCE_HOME AFAIK), yet my messages doesn't override those coming
> from buildout-cache/eggs/plone.app.locales/.../plone-<XX>.po. Does it
> work for someone else?

Yes, I just tried it with Plone 3.3.1.  I copied the
plone/app/locales/i18n/plone-nl.po file, changed a few translations,
ran the buildout, and the new translations appeared.

Sometimes a restart helps.

Or go to the Control Panel in the Zope root, remove everything from
the TranslationService and from the products and restart once or
twice.  See http://localhost:8080/Control_Panel/manage_main

Or check if the translations you changed have lines with '#fuzzy' in
them; remove those and restart.

In the TranslationService there should be a file called, in my case,
GlobalCatalogs-plone-nl.po

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


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Plone-i18n mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-i18n
Daniel Dekany

Re: i18noverride with plone-XX.po doesn't work with Plone 3.3.1?

Reply Threaded More More options
Print post
Permalink
Ugh, sorry... I forgot to chmod o+r the override, and the i18noverride
recipe doesn't set the rights, just copies it as is... Now it works.


Thursday, October 22, 2009, 5:06:10 PM, Maurits van Rees wrote:

> Daniel Dekany, on 2009-10-21:
>> For me, the recipe "installs" everything apparently right (into
>> zeocluster/parts/client<N>/i18n/plone-<XX>.po; that's the
>> INSTANCE_HOME AFAIK), yet my messages doesn't override those coming
>> from buildout-cache/eggs/plone.app.locales/.../plone-<XX>.po. Does it
>> work for someone else?
>
> Yes, I just tried it with Plone 3.3.1.  I copied the
> plone/app/locales/i18n/plone-nl.po file, changed a few translations,
> ran the buildout, and the new translations appeared.
>
> Sometimes a restart helps.
>
> Or go to the Control Panel in the Zope root, remove everything from
> the TranslationService and from the products and restart once or
> twice.  See http://localhost:8080/Control_Panel/manage_main

As a side note, the Zope TranslationService appears to me quite
strange... Now that the override works, I "downgraded" the patched
plone/app/locales/i18n/plone-hu.po to the original one. I pressed
"Reload this catalog" in the ZMI, restarted, then even deleted the
catalog in ZMI and restated, and whatnot... Zope still couldn't forget
the modified plone-hu.po. I guess because the original file that I put
back had an earlier date than the patched one it once loaded (and
apparently stored for itself somewhere). So I have set the
modification date of the original file to be now, and only then it
become the effective one... Maybe the typical mistake, where they
check for a newer date, not simply for a different date? /-:

> Or check if the translations you changed have lines with '#fuzzy' in
> them; remove those and restart.
>
> In the TranslationService there should be a file called, in my case,
> GlobalCatalogs-plone-nl.po

--
Best regards,
 Daniel Dekany


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Plone-i18n mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-i18n