Forums de discussion

why LocaleUtil.getDefault() get the value?

thumbnail
Ramalingaiah. D, modifié il y a 7 années.

why LocaleUtil.getDefault() get the value?

Expert Publications: 486 Date d'inscription: 16/08/14 Publications récentes
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, modifié il y a 7 années.

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

Liferay Legend Publications: 14915 Date d'inscription: 02/09/06 Publications récentes
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, modifié il y a 7 années.

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

Expert Publications: 486 Date d'inscription: 16/08/14 Publications récentes
Hi Nebinger

thank you for reply
ok

Regards
Ram