Ticket #93 (new defect)
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
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.

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.