Ticket #193 (assigned defect)

Opened 5 years ago

Last modified 3 years ago

refactoring vocabularies for i18n

Reported by: bdelbosc Assigned to: fguillaume (accepted)
Priority: P2 Milestone: CPS 3.5.0
Component: CPSSchemas Version: unspecified
Severity: normal Keywords: vocabularies
Cc:

Description (Last modified by fguillaume)

Refactoring for i18n

  • instead of storing 3 strings: key, value and msgid we should store 2 strings: key, value and a boolean is_i18n
  • the get accessor should i18n the value if is_i18n
  • the getDocumentVocabularies should looks like this: the addVocabularies should eat it easily
vocabularies = {
    'theme_voc': [ ('key': 'society',
                    'value': 'cpsdoc_theme_voc_society',
                    'is_i18n': 1),
                   ('key': 'news',
                    'value': 'News',
                    ),
                   ('key': 'techno',
                    'value': 'Technology'),
                   ],
    }

Change History

09/23/03 13:48:16 changed by fguillaume

  • status changed from new to assigned.

Ok, but I prefer to have the is_i18n field global to the vocabulary and not specific to one entry. Having it entry by entry doesn't make much sense to me.

But you want i18n done by the get accessor directly? Not by the display method, in the ZPT, as we usually do?

02/20/04 16:35:09 changed by bdelbosc

  • severity changed from normal to enhancement.

05/05/04 11:13:07 changed by disabled-hc@nuxeo.com

  • summary changed from refactoring for i18n to refactoring vocabularies for i18n.

Was: refactoring for i18n

05/05/04 11:59:12 changed by disabled-hc@nuxeo.com

I'm in the mood for doing it. Is it still on schedule?

05/26/04 09:49:56 changed by bdelbosc

  • priority changed from P2 to P1.

this is a requirement if we want to be i18n when using layout

06/21/04 13:24:40 changed by edegoute

I have made a first step of i18n for vocabularies. Just test it for validation.

10/25/04 17:14:10 changed by fguillaume

  • cc set to edegoute@nuxeo.com.

What's the status of this bug? Encolpe, what is your refactoring? CVS diff info ?

09/14/05 13:05:34 changed by fguillaume

  • priority changed from P1 to P2.
  • severity changed from enhancement to normal.
  • description changed.
  • milestone changed from unspecified to CPS 3.5.0.

Note that by the time refactor implement this, we'll have get rid of dict-based config and will use CMFSetup.

09/14/05 13:05:52 changed by fguillaume

  • description changed.