From: Maurits v. R. <m.v...@ze...> - 2011-11-18 23:07:57
|
Op 18-11-11 23:49, Vincent Fretin schreef: > On Fri, Nov 18, 2011 at 11:39 PM, Vincent Fretin > <vin...@gm... > <mailto:vin...@gm...>> wrote: > > Ah! You're right, there is an issue here. Some translations in the > plone domain in the i18n folder of plone.app.discussion doesn't show > up in Plone 4.2, like the Commentators criteria and its description. :( > > > The translations do show up with plone.app.discussion 1.0b12 with Plone > 4.0.9. The package does have <five:registerPackage package="." /> and > the header of the po file didn't change. In Plone 4.1, it doesn't work. Bingo. Products/CMFQuickInstallerTool/utils.py has the necessary code that should be used in PlacelessTranslationService too: try: # Zope 2.13+ from OFS.metaconfigure import get_registered_packages except ImportError: def get_registered_packages(): import Products return getattr(Products, '_registered_packages', ()) The old code is still used in the spot in PTS that wants to look for i18n directories in packages that have five:registerPackage. I will make the change. -- Maurits van Rees http://maurits.vanrees.org/ Web App Programmer at Zest Software: http://zestsoftware.nl "Logical thinking shows conclusively that logical thinking is inconclusive." - My summary of Gödel, Escher, Bach |