Liferay.Language.get(key) doesn't look up in portlet context language resources

Components

Affects versions

Fix versions

None

Labels

Description

The problem is, that Liferay.Language.get( key ) ajax request hits LanguageServlet then LanguageImpl._get( ) and LanguageResources.getMessage( ) where it has only Portal language resources available, but not Portlet resources ... As a result, one have to store all portlet relevant localization messages into Portal language resources, which is very inconvenient.

Environment

LR r.78132

Activity

Show:

Marta Elicegui January 18, 2024 at 5:16 PM

This ticket is being closed due to inactivity.

Randy Zhu March 7, 2013 at 9:44 AM

In preparation for Ideation; we are moving this contributed solution tickets to “Feature Request”. Additional information to follow.

EdG February 13, 2013 at 4:30 PM

Hi there! We are in the process of updating our LPS Component Hierarchy in order to make component assignment more accurate. That said, the Javascript component will be updated to "UI > JavaScript & CSS". Please make you update your Javascript component based filters. Thanks for understanding!

EdG February 5, 2013 at 5:31 PM

HI Jakub! We are in the process of simplifying the contribution process. To do this, we plan to remove the "Community Resolved" state. This will directly affect your "Community Resolved" issues.

Where will your ticket go? It will be moved to "Contributed Solution". So this message is a notice that we will perform this move soon.

Once we do make the move, there will be one less step in getting your contribution implemented. Thanks for your hard work!

Jakub Liska April 15, 2011 at 2:26 AM

Btw, as you said that it worked for you for portlet context and portlet language resources, the only way how it could work was via this filter. I was always trying that in a JSP where language filtering is not allowed. If I did that in a *.js file, it would be resolved on server side and only the result would come back and I would be happy.

Inactive
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Branch Version/s

6.0.x

Zendesk Support

Created April 14, 2011 at 5:21 AM
Updated January 18, 2024 at 7:52 PM
Resolved January 18, 2024 at 5:16 PM