dev/core#3095 Permit setting of format_locale, prefer if set
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 3 Mar 2022 23:17:19 +0000 (12:17 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 3 Mar 2022 23:17:21 +0000 (12:17 +1300)
commit57eda25db5a2e1efe1fcd328c75262fa70d9274a
tree7044441fc7a6f062061837085b82441c6370c946
parent6bdd617151dc647ac76ddcacbf2d3e8beab7ac98
dev/core#3095 Permit setting of format_locale, prefer if set

This is a minimal patch to address https://lab.civicrm.org/dev/core/-/issues/3095
in time for 5.47. With this set it is possible to change the format locale to
English, Canada or English, Australian (but not NZ!)
and the currency will only be displayed before dollar amounts NOT of that
currency.

This should be enough to mitigate that regression feeling but missing are
1) fixing the admin form to hide irrelevant settings if format_locale is set
2) the psuedoconstant is cludgey - existing stuff doesn't seem to work so
I added a function - also - if we ARE going to use this option group we
should .... add NZ to it
CRM/Admin/Form/Setting/Localization.php
CRM/Core/I18n.php
Civi/Core/Format.php
settings/Localization.setting.php
templates/CRM/Admin/Form/Setting/Localization.tpl