Do better specifying currencies where the code is at the decimal separator

Description

Split from

Mark suggested amending the CLDR spec to say something along the lines of:

> If a currency decimal pattern does not contain a currency symbol placeholder, then the currency symbol should be placed where the decimal symbol would otherwise be placed.

This change would then replace the hacks that are currently used to put the symbol as the decimal separator.

xpath

None

locale

None

Activity

Show:
Mark Davis
October 1, 2020, 11:03 PM

changing to cldr v39 so we can coordinate with ICU.

Shane Carr
September 19, 2020, 6:42 AM

No; I haven't done any work on this. I'll schedule it for ICU 69.

Mark Davis
September 19, 2020, 3:40 AM

Shane, were changes made in ICU, or should we hold off on this until 39?

Mark Davis
March 27, 2020, 10:28 PM
Edited

Text to use at that point (rescued from PR)

A currency decimal pattern must contain a currency symbol placeholder (¤). The currency symbol placeholder may occur before the first digit, after the last digit symbol, or where the decimal symbol would otherwise be placed. That is, the first example below is invalid, while the others are all valid.

  • #,##0.00

  • ¤#,##0.00

  • ¤-#,##0.00

  • -¤#,##0.00

  • #,##0.00¤

  • #,##0.00-¤

  • #,##0.00¤-

  • #,##0¤00

 

Shane Carr
March 27, 2020, 10:01 PM

Agreed

Fixed

Priority

major

Assignee

Mark Davis

Reporter

Shane Carr

Reviewer

Shane Carr

Fix versions

Components

Labels