Foros de discusión

why LocaleUtil.getDefault() get the value?

thumbnail
Ramalingaiah. D, modificado hace 7 años.

why LocaleUtil.getDefault() get the value?

Expert Mensajes: 486 Fecha de incorporación: 16/08/14 Mensajes recientes
Hi,
i am doing document type in xml with tiff files maping
I'm confused where LocaleUtil.getDefault() get the value. I have two environments each of then has a default liferay.com portal instance created by the installation and my custom instance. Both have different locales under display settings.

When call LocaleUtil.getDefault() in a first env. it seems that the liferay.com locale will be red, but on another one MyCompany locale is a default one. Where exactly LocaleUtil.getDefault() comes from?

Thanks and regards,
Ram
thumbnail
David H Nebinger, modificado hace 7 años.

RE: why LocaleUtil.getDefault() get the value?

Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
I always recommend getting and keeping the portal source around for this and other purposes.

The default locale can be set during cluster sync, by the JVM and also by the company setting. Also journal article processing may change the default locale during title handling, but that is only temporary.





Come meet me at the LSNA!
thumbnail
Ramalingaiah. D, modificado hace 7 años.

RE: why LocaleUtil.getDefault() get the value?

Expert Mensajes: 486 Fecha de incorporación: 16/08/14 Mensajes recientes
Hi Nebinger

thank you for reply
ok

Regards
Ram