Ticket #955 (new defect)

Opened 14 years ago

Last modified 14 years ago

Vocabulary translations by widgets is weak

Reported by: atchertchian Owned by: fguillaume
Priority: P2 Milestone: unspecified
Component: CPSSchemas Version: TRUNK
Severity: normal Keywords: i18n vocabulary widget
Cc:

Description (last modified by atchertchian) (diff)

Vocabulary translations by widgets is weak

Some widgets do not translate vocabulary items taking care of the fact that translation may not exist (thus returning None). For instance :

escape(cpsmcat(vocabulary.getMsgid(value, value)).encode('ISO-8859-15', 'ignore'))

should be:

escape(cpsmcat(vocabulary.getMsgid(value, value), default=value).encode('ISO-8859-15', 'ignore'))

Change History

comment:1 Changed 14 years ago by atchertchian

  • Description modified (diff)
Note: See TracTickets for help on using tickets.