Issue
- When I add Hebrew(Israel) from the Available List to the Current List in the Localization settings, it is replaced with English(United States) in the Current Language List.
Environment
- Liferay 2024Q2 with Java 17
Resolution
- From Java 8 to Java 17, changes were made in locale support, specifically with the language codes for Hebrew(Israel) and Indonesian(Indonesia).
- The issue can be fixed by:
- Adding the locales portal property to portal-ext.properties with the updated language codes
-
#Locales
locales=\
ar_SA,\
eu_ES,\
bg_BG,\
km_KH,\
ca_AD,\
ca_ES,\
ca_ES_VALENCIA,\
zh_CN,\
zh_TW,\
hr_HR,\
cs_CZ,\
da_DK,\
nl_NL,\
nl_BE,\
en_US,\
en_GB,\
en_AU,\
en_CA,\
et_EE,\
fi_FI,\
fr_FR,\
fr_CA,\
gl_ES,\
de_DE,\
el_GR,\
he_IL,\
hi_IN,\
hu_HU,\
id_ID,\
it_IT,\
ja_JP,\
kk_KZ,\
ko_KR,\
lo_LA,\
lt_LT,\
ms_MY,\
nb_NO,\
fa_IR,\
pl_PL,\
pt_BR,\
pt_PT,\
ro_RO,\
ru_RU,\
sr_RS,\
sr_RS_latin,\
sl_SI,\
sk_SK,\
es_AR,\
es_CO,\
es_ES,\
es_MX,\
sv_SE,\
ta_IN,\
th_TH,\
tr_TR,\
uk_UA,\
vi_VN