Re: plone4: how to override translations in plone.app.locales?
Maurits van Rees <m.van.rees-1kr/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.internationalization |
|---|---|
| Organization | Zest Software |
| Message-ID | <[email protected]> |
Op 24-08-10 22:56, Hanno Schlichting schreef: > On Tue, Aug 24, 2010 at 6:00 PM, Maurits van Rees > <m.van.rees-1kr/[email protected]> wrote: >> But if you want to override some translations for a third party product >> that still uses an i18n folder, then an i18n folder in the instance home >> would still work, right? > > No. You would use the same approach as for a locales folder. In Plone > 4 both these folder structures internally produce the same sort of > standard zope.i18n translation domain utilities. You can mix and match > between the two structures as you like now. > > Nothing will read an i18n folder in the instance home anymore, though. Okay. I have added a note to collective.recipe.i18noverrides that mentions this, and released version 1.0 on pypi: http://pypi.python.org/pypi/collective.recipe.i18noverrides No further changes compared to the previous 0.4 of almost a year ago, except minor changes in the tests. >> Getting slightly off-topic, but does it still make sense for a third >> party product (let's say one for Plone 4 only) to use i18n instead of >> locales. As far as I know, both work. For a new package I would surely >> use locales, but I'm not sure it makes sense to restructure an existing >> package. >> >> I expect that the old i18n way won't work anymore in Plone 5 (perhaps >> pending on okay from the framework team), is that correct? That might >> be a good enough reason. > > The idea is of course to remove the i18n folder support for good in > Plone 5. Consider the i18n folder format to be deprecated with Plone > 4.0. > > If you have an add-on that only targets Plone 4, you should only use > locales folders. Right, I'll move Products.Poi trunk (2.0) to uses locales then, as it is for Plone 4 only. > If you target Plone 3 and 4 at the same time, you should use a locales > folder for your own domain and an i18n folder for the plone domain. Thanks for the info. -- Maurits van Rees Programmer, Zest Software ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d