Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Price
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Aug 2021 at 09:22 UTC
Updated:
12 Nov 2021 at 04:29 UTC
Jump to comment: Most recent
Symbol placement for NOK should be "after" in includes/commerce.currency.inc.
Not "before" like it's now:
'NOK' => array(
...
'symbol_placement' => 'before',
...
),
Comments
Comment #2
bojanz commentedCLDR rules for the "no" locale indicate that the currency symbol goes before the amount, with a space in between.
However, CLDR also says that the symbol is "kr", but Commerce shows "NOK".
So, we should update the symbol to "kr", and users can use hook_commerce_currency_info() to modify the defaults to their preference.
(In 1.x the rules always match the currency's home locale, and are updated by the community. In 2.x the rules are per-locale and updated automatically).
Maintainer note: the 1.x currency list was last rebuilt in 2017: https://www.drupal.org/node/2889930
Comment #3
rszrama commentedAnd confirming from an existing Norwegian store that "before" placement is used in the wild: https://www.next.no/en/g7929s1/725309#725309
Comment #4
rszrama commentedCommitted the quick fix to just adjust the symbol to 'kr'.