Ticket #1714 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

CPS site roots sometimes with wrong translations in French and in English

Reported by: madarche Assigned to: fguillaume
Priority: P2 Milestone: CPS 3.4.2
Component: CPS (global) Version: TRUNK
Severity: normal Keywords: l10n
Cc:

Description

This is really weird.

Just create a CPSDefault Site with some languages support. And then when one switches from one language to another, the titles of the workspaces and sections roots are wrongly translated in "workspaces" and "sections", instead of respectively "Workspaces" and "Sections" and "Espaces de travail" and "Espaces de publication".

What's really weird is that the Members root title is always well translated as one switches from one language to another, and that the problem doesn't show up with every CPSDefault installation. But once you have the problem on a site it doesn't go away.

It doesn't seem to be a portlet or theme cache problem since the situation doesn't improve after clearing all those caches.

Any idea on what might cause this ?

Just for reference #867 was about the same kind of problem before CPS switches do GenericSetup.

Change History

07/29/06 17:05:49 changed by atchertchian

The portlet displaying the sections and worspaces tabs is not the same than the one displaying the members tab.

There's a missing info in tree caches for this to work correctly (did not commit it: not sure that ob is always a proxy):

$ svn di TreesTool.py
Index: TreesTool.py
===================================================================
--- TreesTool.py        (revision 47572)
+++ TreesTool.py        (working copy)
@@ -260,6 +260,7 @@
             'id': ob.getId(),
             'rpath': self.getRpath(ob),
             'portal_type': ob.portal_type,
+            'l10n_titles': ob.getL10nTitles(),
             })
         info.update(self.getNodeSecurityInfo(ob))
         return info

But you'll also have to figure out why the english revision of each root does not hold its translated title... :( This is a regression in roots creation mechanism.

08/07/06 17:41:44 changed by gracinet

[48059] takes care of the tree cache stuff. [48071], [48072] and [48073] take care of the regression in language revisions creation introduced with #1608 solution.

NB: to add a language, do it in *ZMI* (see #1726) through tab properties of portal object), then rerun Localizer and Various Settings import steps from portal_setup.

08/07/06 18:31:56 changed by gracinet

  • status changed from new to closed.
  • resolution set to fixed.

Buildbot didn't protest