RE: Portlet translation language properties files

Ervinas Marocka, modified 6 Years ago. Junior Member Posts: 31 Join Date: 10/8/18 Recent Posts
Hello,

I'm using Liferay CE 7.0.6 GA7 version and facing kinda strange problem. I'm migrating portlets from 6.2 and I managed to do them to work on liferay 7. That's okay, it's what I wanted. 

The main problem I'm facing is translation to other languages. My portlets have variable names in which they are translated from language files. I have a .war file with ~20 portlets, every single one of them have to use their own xxxLanguage.properties file in /content directory. So, what have i done now: created for every portlet a language file in :

lt_LT,
en_EN,
lt,
en.

Portlet.xml file is configured like :

        <supported-locale>lt_LT</supported-locale>
        <supported-locale>en_US</supported-locale>
        <resource-bundle>content.ExcisesLanguage</resource-bundle>

So the problem is about picking the file. Seems the portlet can't pick any of these languages unless i put every single language file in one. How to make it work? 
 
Ervinas Marocka, modified 6 Years ago. Junior Member Posts: 31 Join Date: 10/8/18 Recent Posts
Any help?