Ticket #4799 (closed Bug: fixed)

Opened 11 years ago

PTS: Upgrade from 2.1 to 2.1.1 breaks all message catalogs

Reported by: naro Owned by:
Priority: minor Milestone: Past
Component: Upgrade/Migration Version:
Keywords: Cc:


After upgrade to Plone 2.1.1 are all message catalogs broken. Message catalogs are repaired on subsequent restart (sometimes more than one restart is needed, weird).

Reason: PlacelessTranslationService was upgraded to version 1.2.2. There was introduced a new format of self._pofile variable (tuple of two strings instead of one string only). PTS stores some informations about all message catalogs in ZODB and reads these informations on each Zope restart. On each Zope restart are all message catalogs reloaded and this reload() raises traceback attached below. self._pofile (initiated from ZODB - PTS<1.2.2) contains string, but (prefix,pofile) tuple is expected. Such catalog is marked as Broken and disabled. On subsequent Zope restart is such catalog re-initialized (init is called and self._pofile gets right value) and catalog works again. I don't know why sometimes more than one restart is needed.

2005-10-13T19:29:15 INFO PlacelessTranslationService adding kupu.i18n-kupuconfig-fr.po: Broken Gettext Message Catalog

2005-10-13T19:29:15 WARNING PlacelessTranslationService Message Catalog has errors kupuconfig-ja.po Traceback (most recent call last):

File "/zope/plone/Products/PlacelessTranslationService/PlacelessTranslationService.py", line 309, in _load_catalog_file


File "/zope/plone/Products/PlacelessTranslationService/PlacelessTranslationService.py", line 425, in reloadCatalog


File "/zope/plone/Products/PlacelessTranslationService/GettextMessageCatalog.py", line 283, in reload


File "/zope/plone/Products/PlacelessTranslationService/GettextMessageCatalog.py", line 369, in _getPoFile

prefix, pofile = self._pofile

ValueError: too many values to unpack

Change History

comment:1 Changed 11 years ago by hannosch

  • Status changed from new to closed
  • Resolution set to fixed

This has been fixed in SVN for PTS 1.2.3 and tested successfully by naro :)

Note: See TracTickets for help on using tickets.