Foren
Change default currency that comes with language
Pablo M Mino, geändert vor 13 Jahren.
Change default currency that comes with language
Regular Member Beiträge: 135 Beitrittsdatum: 02.10.09 Neueste Beiträge
Hi,
I know how to change the language, but how can I change the currency? I talk spanish but we don't use €, we use USD
I know how to change the language, but how can I change the currency? I talk spanish but we don't use €, we use USD
Pablo M Mino, geändert vor 13 Jahren.
RE: Change default currency that comes with language
Regular Member Beiträge: 135 Beitrittsdatum: 02.10.09 Neueste Beiträge
Noone has ever had the need of this? I'm sure I'm wrong because I don't think currency is set with locale, but I can't find a propety called currency or something like it in portal.properties
juan meza, geändert vor 9 Jahren.
RE: Change default currency that comes with language
Regular Member Beiträge: 228 Beitrittsdatum: 06.01.14 Neueste Beiträge
i know this is old, but i actually need this now...
i have liferay 6.2 configured in spanish, so it takes spain... spain uses euros, but in america we use $ for spanish... the same format as US dollars...
so how can i achieve this? i tried the fmt:formatNumber tag, but it gives me euros even with the <fmt:setLocale value="en_US"/>
thanks!
i have liferay 6.2 configured in spanish, so it takes spain... spain uses euros, but in america we use $ for spanish... the same format as US dollars...
so how can i achieve this? i tried the fmt:formatNumber tag, but it gives me euros even with the <fmt:setLocale value="en_US"/>
thanks!
Andew Jardine, geändert vor 9 Jahren.
RE: Change default currency that comes with language
Liferay Legend Beiträge: 2416 Beitrittsdatum: 22.12.10 Neueste Beiträge
Never tried this before... but what happens if you set the locale to es-US?
juan meza, geändert vor 9 Jahren.
RE: Change default currency that comes with language
Regular Member Beiträge: 228 Beitrittsdatum: 06.01.14 Neueste Beiträge
i tried setting the locale of the fmt tag with this:
i also tried setting the format and currency symbol of the fmt:number tag... it works only for the symbol... but it gives me ##.###.###,## (europe style)... and i need ##,###,###.## (american style)
that doesnt work... is that what you are asking?
thanks for your answer
<fmt:setlocale value="en_US" />
i also tried setting the format and currency symbol of the fmt:number tag... it works only for the symbol... but it gives me ##.###.###,## (europe style)... and i need ##,###,###.## (american style)
that doesnt work... is that what you are asking?
thanks for your answer
Andew Jardine, geändert vor 9 Jahren.
RE: Change default currency that comes with language
Liferay Legend Beiträge: 2416 Beitrittsdatum: 22.12.10 Neueste Beiträge
Ack! Sorry -- forgot to follow up on this. No, I meant -- what happens if you use --
<fmt:setLocale value="es_US"/>
... I'm not sure that it's actually a supported locale to be honest. Last resort, you might be left making your own taglib?
<fmt:setLocale value="es_US"/>
... I'm not sure that it's actually a supported locale to be honest. Last resort, you might be left making your own taglib?
juan meza, geändert vor 9 Jahren.
RE: Change default currency that comes with language
Regular Member Beiträge: 228 Beitrittsdatum: 06.01.14 Neueste Beiträge
yeah, i tried that, but doesnt work.. liferay langauge overrides it
ill try the custom taglib and see what happens
thank you!
ill try the custom taglib and see what happens
thank you!