Ticket #867 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

CPSDefault installer should handle l10n properly

Reported by: atchertchian Assigned to: trac
Priority: P2 Milestone: CPS 3.4.0
Component: CPSDefault Version: TRUNK
Severity: normal Keywords: i18n translation l10n
Cc:

Description

CPSDefault installer should handle l10n properly

Revisions are set for some languages even if they shouldn't be, see [7091] and [21516]. Especially, if only one language is chosen when creating the portal, only one revision for default roots should be set.

This is problematic for other products that do not handle l10n properly, they should nevertheless be able to work if only one language is used (see #866).

Change History

08/04/05 11:15:16 changed by bdelbosc

The correct way to i18n a folder that is part of the application like "/workspaces", "/worspaces/members" or "~/Favorites" is to use the "use_mcat" proxy property.

This makes Title() method use the translation service to handle the "title" property like a msgid, same for Description method.

08/05/05 01:59:25 changed by atchertchian

Ok, I tried the following (assuming 'label_workspaces' is translated "Workspaces" in English and "Espaces de travail" in French for instance):

workspaces.setTitle('label_workspaces')
workspaces.use_mcat = 1

It's working in view mode, but users won't understand why they get the msgid in edit mode, and where to set the translations properly. And I would prefer being able to use an API like "setUseMcat", "getUseMcat" with appropriate security checks than just setting the property like that. And this should probably be editable when editing the doc, no ?

So I suggest fixing it for 3.3.5 by just creating the appropriate language revisions (querying the message catalog to get chosen languages and corresponding translated titles).

08/05/05 12:06:55 changed by bdelbosc

Yep applicative folders should have a read only title and description, with a explanation saying that they are not editable because they use the message catalog.

Having an option in all folder to use the message catalog is too technical for basic users, the use_mcat should be set programaticly.

Until we have a good solution it is fine to create a revision for each supported languages.

08/05/05 16:13:21 changed by atchertchian

  • severity changed from major to normal.
  • milestone changed from CPS 3.3.5 to CPS 3.3.6.

Approriate language revisions are now set: [25492]. Milestone set to 3.3.6 for a better fix.

09/15/05 20:26:18 changed by fguillaume

  • milestone changed from CPS 3.3.6 to CPS 3.4.0.

01/03/06 19:55:40 changed by fguillaume

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

Default folders (roots) are now i18n by the GenericSetup-based installer.