Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Portlet translation language properties files
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?
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?
Any help?
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™