Liferay jsf (primefaces) portlet localization problem

Zoltan Szilagyi, modified 14 Days ago.

Liferay jsf (primefaces) portlet localization problem

New Member Post: 1 Join Date: 2/15/23 Recent Posts

Hi,

I have a jsf portlet localization problem..

In src/main/resources directory:

Language_hu.properties

Language_en.properties

My faces.config file:

<application>
  <locale-config>
    <default-locale>hu</default-locale>
    <supported-locale>en</supported-locale>
  </locale-config>

  <resource-bundle>
    <base-name>Language</base-name>
    <var>msg</var>
  </resource-bundle>

  <message-bundle>Language</message-bundle>

</application>

porlet.xml :

<supported-locale>hu</supported-locale>
<supported-locale>en</supported-locale>
<resource-bundle>Language</resource-bundle>

 

lifarey-hook.xml:

<hook>
  <language-properties>Language_hu.properties</language-properties>
</hook>

 

I got this error:

Can't find bundle for base name Language, locale hu_HU

 

 

 

 

Community
Company
Feedback