Edgewall Software
Modify

Ticket #93 (new defect)

Opened 4 years ago

Last modified 3 years ago

Wrong currency symbols for Romanian (ro) locale

Reported by: jarek.zgoda@… Owned by: cmlenz
Priority: major Milestone: 1.0
Component: CLDR Import Version: 0.9.2
Keywords: Cc:

Description

Romanian locale has broken currency symbols in formatting for RON and ROL currencies:

>>> format_currency(123.56, 'RON', locale='ro_RO')
>>> u'123,56 0\u2264lei noi|1\u2264leu nou|1<lei noi'
>>> format_currency(123.56, 'ROL', locale='ro_RO')
>>> u'123,56 0\u2264lei vechi|1\u2264leu vechi|1<lei vechi'

Compare this to Polish locale:

>>> format_currency(123.56, 'PLN', locale='pl_PL')
>>> u'123,56 z\u0142'

In Polish locale, currency symbol is properly displayed using local currency name (zł).

Standard locale.localeconv() returns 'zł' for curr_symbol in Polish and 'Lei' in Romanian locale.

Attachments

Change History

comment:1 Changed 4 years ago by jruigrok

  • Owner changed from jonas to jruigrok
  • Status changed from new to assigned

This is taken from the CLDR data, so any changes will have to be made there. Good chance that 1.6, due to be released soon, will have this fixed.

comment:2 Changed 4 years ago by cmlenz

  • Owner changed from jruigrok to cmlenz
  • Priority changed from major to critical
  • Status changed from assigned to new
  • Component changed from Number Formatting to CLDR Import
  • Milestone set to 0.9.4

This is actually a bug in the CLDR import script. It uses the <symbol choice="true"> element instead of <displayName>.

comment:3 Changed 4 years ago by cmlenz

No, the real problem is that we don't support choice patterns for currency symbols, which will return a different symbol based on the value.

comment:4 Changed 4 years ago by cmlenz

[425] changed the CLDR import process to ignore currency symbol definitions that include choice patterns, which is the only sensible thing to do as long as we don't support them at runtime.

comment:5 Changed 3 years ago by cmlenz

  • Priority changed from critical to major
  • Milestone changed from 0.9.4 to 1.0
View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will be changed from cmlenz. Next status will be 'new'
The owner will be changed from cmlenz to anonymous. Next status will be 'assigned'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.