<?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>Upgrade LanguageUtil.get method</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121357128" />
  <subtitle>Upgrade LanguageUtil.get method</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=121357128</id>
  <updated>2026-04-07T05:55:53Z</updated>
  <dc:date>2026-04-07T05:55:53Z</dc:date>
  <entry>
    <title>RE: Upgrade LanguageUtil.get method</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121357870" />
    <author>
      <name>Fernando Fernandez</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121357870</id>
    <updated>2022-02-10T12:59:58Z</updated>
    <published>2022-02-10T12:59:57Z</published>
    <summary type="html">&lt;p&gt;Hi Jorge,&lt;/p&gt;
&lt;p&gt;I think it will be easier to use the ui taglib as stated &lt;a href="https://help.liferay.com/hc/en-us/articles/360028746692-Localizing-Your-Application"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;JSP example:&lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-html"&gt;&amp;lt;%@ taglib uri=&amp;quot;http://liferay.com/tld/ui&amp;quot; prefix=&amp;quot;liferay-ui&amp;quot; %&amp;gt; 
...
&amp;lt;liferay-ui:message key=&amp;quot;howdy-partner&amp;quot; /&amp;gt;
...&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Fernando Fernandez</dc:creator>
    <dc:date>2022-02-10T12:59:57Z</dc:date>
  </entry>
  <entry>
    <title>Upgrade LanguageUtil.get method</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121357127" />
    <author>
      <name>Jorge F</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121357127</id>
    <updated>2022-02-09T15:54:03Z</updated>
    <published>2022-02-09T14:54:52Z</published>
    <summary type="html">&lt;pre id="tw-target-text"&gt;
Good afternoon, I am new to liferay and I am trying to migrate the code of a portlet from 6.2 to 7.4, I need to know how to use the LanguageUtil.get() method in liferay 7.x, currently it is implemented like this in my JSP LanguageUtil.get(pageContext, &amp;quot;key&amp;quot;), but I get an error &amp;quot;PortletConfig get/format methods&amp;quot; I have tried some ways like LanguageUtil.get(themeDisplay.getLocale(), &amp;quot;key&amp;quot;) but I can't get the error to go away, any suggestion or correct way is appreciated to do it. &lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&amp;lt;p
  class=&amp;quot;customFormInfo&amp;quot;&amp;gt;&amp;lt;%=LanguageUtil.get(themeDisplay.getLocale(), &amp;quot;complaints.info.1&amp;quot;)%&amp;gt;&amp;lt;/p&amp;gt;&lt;/p&gt;
&lt;pre id="tw-target-rmn"&gt;

 &lt;/pre&gt;</summary>
    <dc:creator>Jorge F</dc:creator>
    <dc:date>2022-02-09T14:54:52Z</dc:date>
  </entry>
</feed>
