Skip to main content
Inspiring
March 12, 2019
Question

SetLocale and Europe/Euro

  • March 12, 2019
  • 1 reply
  • 1946 views

If have some code that sets multiple Locales -->

<cfset currentlocale = SetLocale("English (Canadian)")>

<cfset currentlocale = SetLocale("English (UK)")>

<cfset currentlocale = SetLocale("English (US)")>

In-between these different settings I have #LSCurrencyFormat(GetTotal.TotalValue)#

This displays the currency and the appropriate currency sign.

The question I have is how would I do this for Europe as I now have a need to support Euro's

Thanks

Mark

This topic has been closed for replies.

1 reply

WolfShade
Legend
March 12, 2019

Introducing the LSEuroCurrencyFormat tag.  This should help, I hope.

V/r,

^ _ ^

ACS LLCAuthor
Inspiring
March 12, 2019

unfortunately it didn't work. It is inheriting the last SetLocale, so if I setLocale to UK I get a pound sign, if I set it to US I get a dollar sign

WolfShade
Legend
March 12, 2019

Hmm.. maybe submit a bug ticket on that.. it's _supposed_ to include the Euro symbol if the locale is set to a country that has adapted the Euro.  Did you use all three arguments?

V/r,

^ _ ^