<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Portlet translation language properties files</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111606458" />
  <subtitle>Portlet translation language properties files</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=111606458</id>
  <updated>2026-04-03T21:48:12Z</updated>
  <dc:date>2026-04-03T21:48:12Z</dc:date>
  <entry>
    <title>RE: Portlet translation language properties files</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111620969" />
    <author>
      <name>Ervinas Marocka</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111620969</id>
    <updated>2018-11-21T07:00:53Z</updated>
    <published>2018-11-21T07:00:53Z</published>
    <summary type="html">Any help?</summary>
    <dc:creator>Ervinas Marocka</dc:creator>
    <dc:date>2018-11-21T07:00:53Z</dc:date>
  </entry>
  <entry>
    <title>Portlet translation language properties files</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111606457" />
    <author>
      <name>Ervinas Marocka</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=111606457</id>
    <updated>2018-11-20T12:26:53Z</updated>
    <published>2018-11-20T12:26:53Z</published>
    <summary type="html">Hello,&lt;br /&gt;
&lt;br /&gt;
  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. &lt;br /&gt;
&lt;br /&gt;
  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;br /&gt;
&lt;br /&gt;
  lt_LT,&lt;br /&gt;
  en_EN,&lt;br /&gt;
  lt,&lt;br /&gt;
  en.&lt;br /&gt;
&lt;br /&gt;
  Portlet.xml file is configured like :&lt;br /&gt;
&lt;br /&gt;
          &amp;lt;supported-locale&amp;gt;lt_LT&amp;lt;/supported-locale&amp;gt;&lt;br /&gt;
          &amp;lt;supported-locale&amp;gt;en_US&amp;lt;/supported-locale&amp;gt;&lt;br /&gt;
          &amp;lt;resource-bundle&amp;gt;content.ExcisesLanguage&amp;lt;/resource-bundle&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  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? &lt;br /&gt;
   </summary>
    <dc:creator>Ervinas Marocka</dc:creator>
    <dc:date>2018-11-20T12:26:53Z</dc:date>
  </entry>
</feed>
