<?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>(resolved)Internationalize in Spring plugin portlet</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=5371859" />
  <subtitle>(resolved)Internationalize in Spring plugin portlet</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=5371859</id>
  <updated>2026-06-12T04:59:41Z</updated>
  <dc:date>2026-06-12T04:59:41Z</dc:date>
  <entry>
    <title>RE: (resolved)Internationalize in Spring plugin portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117784982" />
    <author>
      <name>Aravinth Kumar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117784982</id>
    <updated>2019-11-15T09:40:19Z</updated>
    <published>2019-11-15T09:40:19Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi All,I want to use spring message tag instead of liferay ui message tag. I want to read the global keys such as control panel but its throwing&amp;nbsp; " No message found under code 'control-panel' for locale 'en_US' ".&amp;nbsp;&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;spring:message code="control-panel" /&amp;gt;&amp;amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Do we need to add anything in messagesource in portlet-application-context.xml.&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource"&amp;gt;
&amp;amp;nbsp; &amp;lt;property name="basenames"&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;lt;list&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;lt;value&amp;gt;????&amp;lt;/value&amp;gt;
&amp;amp;nbsp;&amp;amp;nbsp; &amp;lt;/list&amp;gt;
&amp;amp;nbsp; &amp;lt;/property&amp;gt;
&amp;amp;nbsp; &amp;lt;property name="defaultEncoding" value="UTF-8" /&amp;gt;
&amp;lt;/bean&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;Thanks in Advance.&amp;nbsp;&lt;br&gt;&lt;br&gt;Regards,&lt;br&gt;Aravinth&lt;br&gt;&lt;pre&gt;&lt;code&gt;

&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Aravinth Kumar</dc:creator>
    <dc:date>2019-11-15T09:40:19Z</dc:date>
  </entry>
  <entry>
    <title>RE: Internationalize in Spring plugin portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5382716" />
    <author>
      <name>Sam E</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5382716</id>
    <updated>2010-07-22T12:24:35Z</updated>
    <published>2010-07-22T12:24:35Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Julien Deruere:&lt;/div&gt;&lt;blockquote&gt;Where did you put your message_en_US.properties and can I see your configuration in your name-portlet.xml?&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;I have fixed the error. The problem was because the path.filenameis different to the filename.properties file.&lt;br /&gt;&lt;br /&gt;Thank you Julien.&lt;br /&gt;&lt;br /&gt;Sam.</summary>
    <dc:creator>Sam E</dc:creator>
    <dc:date>2010-07-22T12:24:35Z</dc:date>
  </entry>
  <entry>
    <title>RE: Internationalize in Spring plugin portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5382679" />
    <author>
      <name>Julien Deruère</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5382679</id>
    <updated>2010-07-22T12:20:21Z</updated>
    <published>2010-07-22T12:20:21Z</published>
    <summary type="html">Where did you put your message_en_US.properties and can I see your configuration in your name-portlet.xml?</summary>
    <dc:creator>Julien Deruère</dc:creator>
    <dc:date>2010-07-22T12:20:21Z</dc:date>
  </entry>
  <entry>
    <title>RE: Internationalize in Spring plugin portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5378083" />
    <author>
      <name>Sam E</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5378083</id>
    <updated>2010-07-22T01:57:53Z</updated>
    <published>2010-07-22T01:57:53Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div class="quote-title"&gt;Julien Deruere:&lt;/div&gt;&lt;blockquote&gt;In your name-portlet.xml spring context you can define something like this :&lt;br&gt;&lt;br&gt;&amp;lt;bean id="messageSource" class="org.springframework.context.support.ResourceBundleMessageSource"&amp;gt;&lt;br&gt;	&amp;lt;property name="basename" value="com/project/locale/message" /&amp;gt;&lt;br&gt;&amp;lt;/bean&amp;gt;&lt;br&gt;&lt;br&gt;And in you com/project/locale/ folder you can have a message_fr.properties, message_en.properties, etc.&lt;br&gt;&lt;br&gt;Another thing, in your jsp : it's not &amp;lt;liferay-ui:message key="mpp-username" /&amp;gt; anymore but&lt;br&gt;&lt;br&gt;&amp;lt;spring:message code="mpp-username" /&amp;gt;&lt;/blockquote&gt;&lt;br&gt;&lt;br&gt;I thought this is very simple, but I am getting the following error:&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;
01:55:33,369 WARN  [ResourceBundleMessageSource:219] ResourceBundle [au.com.xyz.messages] not found for MessageSource: Can't find bundle for base name au.com.xyz.messages, locale en_US
01:55:33,369 ERROR [MessageTag:80] No message found under code 'login-details' for locale 'en_US'.
javax.servlet.jsp.JspTagException: No message found under code 'login-details' for locale 'en_US'.
        at org.springframework.web.servlet.tags.MessageTag.doStartTagInternal(MessageTag.java:183)
        at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:77)
        at org.apache.jsp.jsp.wizUserProfile_jsp._jspx_meth_spring_005fmessage_005f0(wizUserProfile_jsp.java:654)
        at org.apache.jsp.jsp.wizUserProfile_jsp._jspService(wizUserProfile_jsp.java:437)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)

&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;Sam&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Sam E</dc:creator>
    <dc:date>2010-07-22T01:57:53Z</dc:date>
  </entry>
  <entry>
    <title>RE: Internationalize in Spring plugin portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5376585" />
    <author>
      <name>Sam E</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5376585</id>
    <updated>2010-07-21T23:52:42Z</updated>
    <published>2010-07-21T23:52:42Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;div class="quote-title"&gt;Sam Wan:&lt;/div&gt;&lt;blockquote&gt;Hi,&lt;br&gt;&lt;br&gt;I want to translate the following dash words into "words", like the one in language-ext.properties written for Struts protlet.&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;

  	&amp;lt;b&amp;gt;&amp;lt;liferay-ui:message key="login-details" /&amp;gt;&amp;lt;/b&amp;gt;
  


  &amp;lt;liferay-ui:message key="mpp-username" /&amp;gt;
  
	&amp;lt;input name="userName" type="text" size="25" style="width: 200px;" value="${companyDetails.userName}"&amp;gt;
  

&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;I have tried to put a language-ext.properties file under WEB-INF/ directory, but there is no translation happening. I am still seeing the dash keywords in webpage.&lt;br&gt;&lt;br&gt;Thsi is a spring portlet. &lt;br&gt;Can anyone please tell me how to resove this problem in Spring?&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;Sam&lt;/blockquote&gt;&lt;br&gt;&lt;br&gt;Thank you very much for the suggestion.&lt;br&gt;That works well.&lt;br&gt;&lt;br&gt;Thanks again.&lt;br&gt;Sam&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Sam E</dc:creator>
    <dc:date>2010-07-21T23:52:42Z</dc:date>
  </entry>
  <entry>
    <title>RE: Internationalize in Spring plugin portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5372933" />
    <author>
      <name>Julien Deruère</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5372933</id>
    <updated>2010-07-21T14:36:23Z</updated>
    <published>2010-07-21T14:36:23Z</published>
    <summary type="html">In your name-portlet.xml spring context you can define something like this :&lt;br /&gt;&lt;br /&gt;&amp;lt;bean id=&amp;#34;messageSource&amp;#34; class=&amp;#34;org.springframework.context.support.ResourceBundleMessageSource&amp;#34;&amp;gt;&lt;br /&gt;	&amp;lt;property name=&amp;#34;basename&amp;#34; value=&amp;#34;com/project/locale/message&amp;#34; /&amp;gt;&lt;br /&gt;&amp;lt;/bean&amp;gt;&lt;br /&gt;&lt;br /&gt;And in you com/project/locale/ folder you can have a message_fr.properties, message_en.properties, etc.&lt;br /&gt;&lt;br /&gt;Another thing, in your jsp : it&amp;#39;s not &amp;lt;liferay-ui:message key=&amp;#34;mpp-username&amp;#34; /&amp;gt; anymore but&lt;br /&gt;&lt;br /&gt;&amp;lt;spring:message code=&amp;#34;mpp-username&amp;#34; /&amp;gt;</summary>
    <dc:creator>Julien Deruère</dc:creator>
    <dc:date>2010-07-21T14:36:23Z</dc:date>
  </entry>
  <entry>
    <title>(resolved)Internationalize in Spring plugin portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5371858" />
    <author>
      <name>Sam E</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5371858</id>
    <updated>2010-07-21T13:07:44Z</updated>
    <published>2010-07-21T13:07:44Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi,&lt;br&gt;&lt;br&gt;I want to translate the following dash words into "words", like the one in language-ext.properties written for Struts protlet.&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt;

  	&amp;lt;b&amp;gt;&amp;lt;liferay-ui:message key="login-details" /&amp;gt;&amp;lt;/b&amp;gt;
  


  &amp;lt;liferay-ui:message key="mpp-username" /&amp;gt;
  
	&amp;lt;input name="userName" type="text" size="25" style="width: 200px;" value="${companyDetails.userName}"&amp;gt;
  

&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;I have tried to put a language-ext.properties file under WEB-INF/ directory, but there is no translation happening. I am still seeing the dash keywords in webpage.&lt;br&gt;&lt;br&gt;Thsi is a spring portlet. &lt;br&gt;Can anyone please tell me how to resove this problem in Spring?&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;Sam&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Sam E</dc:creator>
    <dc:date>2010-07-21T13:07:44Z</dc:date>
  </entry>
</feed>
