Edgewall Software

Ticket #93 (new defect)

Opened 15 months ago

Last modified 10 months 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

Changed 12 months 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.

Changed 12 months 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>.

Changed 12 months 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.

Changed 12 months 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.

Changed 10 months ago by cmlenz

  • priority changed from critical to major
  • milestone changed from 0.9.4 to 1.0

Add/Change #93 (Wrong currency symbols for Romanian (ro) locale)

Author


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


Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from cmlenz. Next status will be 'new'
The owner will change from cmlenz to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.