[
https://issues.apache.org/jira/browse/SLING-7559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konrad Windszus updated SLING-7559:
-----------------------------------
Description:
Currently for the default and number formatting a locale must be given as
otherwise formatting is done without an explicit locale context.
That means that {{Locale.getDefault()}} is taken. Since this is heavily
environment specific it is not a wise default. Instead the default locale
should rather be similar to the locale being used for i18n purposes (i.e.
determined by request's locale).
was:Currently for the default and number formatting a locale must be given as
otherwise formatting is done with a locale context. Since formatting numbers
and dates without a locale can lead to surprising effects the default locale
should rather be similar to the locale being used for i18n purposes (by default
determined by request's locale).
> The default locale for date and number formatting should be similar to the
> one used for i18n
> --------------------------------------------------------------------------------------------
>
> Key: SLING-7559
> URL: https://issues.apache.org/jira/browse/SLING-7559
> Project: Sling
> Issue Type: Improvement
> Components: Scripting
> Affects Versions: Scripting HTL Engine 1.0.52-1.3.1
> Reporter: Konrad Windszus
> Priority: Major
>
> Currently for the default and number formatting a locale must be given as
> otherwise formatting is done without an explicit locale context.
> That means that {{Locale.getDefault()}} is taken. Since this is heavily
> environment specific it is not a wise default. Instead the default locale
> should rather be similar to the locale being used for i18n purposes (i.e.
> determined by request's locale).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)