Search code examples
internationalizationliferayliferay-6

How can I install new liferay-ui:message keys for my portlet to use in Liferay 6.0.6?


I have the ff. in my JSP:

<liferay-ui:message key="my-own-message-key" />

But when the JSP is rendered, I see "my-own-message-key" where I expect "My own message key." I have already tried the method described here and in the Overriding a Language.properties File section of the Liferay Developer's Guide.


Solution

  • Followed Overriding a Language.properties File section of the Liferay Developer's Guide. But this time, manually copied my Language-ext_xx_YY.properties into the portlet's classpath (e.g., docroot/WEB-INF/classes/content/Language-ext_xx_YY.properties) so it can be found by Liferay during runtime. Maybe it didn't work the first time because the Liferay IDE didn't copy it over automatically on build.