Legacy Knowledge Base
Published Jun. 30, 2025

Hebrew(Israel) is replaced with English(United States) in Localization Settings

Written By

Ally McGill

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

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

 

 

 

Did this article resolve your issue ?

Legacy Knowledge Base