Localization is not working in LFR 7

Juno ., modified 6 Years ago. Junior Member Posts: 39 Join Date: 7/23/15 Recent Posts

Hi All

 

Am using WAB approach to migrate the spring portlets from 6.2 to 7.1 version.

A single bundle (WAR file) contains more than one portlets and I have defined different language bundles in different packages in the portlet.xml.

Portlet A -> content.pckgA.portletA.properties

Portlet B -> content.pckgB.portletB.properties

Am using  "<liferay-ui:message>" tag in the JSP files. 

While rendering Portlet A could able to read the bundle and render the property key values correctly but the portlet B cant.

Is Liferay 7 version could read only one properties file? Can someone help?

 

 

thumbnail
Nagendra Kumar Busam, modified 6 Years ago. Liferay Master Posts: 678 Join Date: 7/7/09 Recent Posts
Even I kind of able to reproduce the same w/ quick sample portlets. Later what i did was kept controllers for two portlets in different packages - it workings fine. Worth a try, let us know once tried
Juno ., modified 6 Years ago. Junior Member Posts: 39 Join Date: 7/23/15 Recent Posts

Hi Nagendra 

 

Thanks for your response.

Am already having the Spring handlers in different packages.

thumbnail
Nagendra Kumar Busam, modified 6 Years ago. Liferay Master Posts: 678 Join Date: 7/7/09 Recent Posts
I added my code in github - cross check once, https://github.com/btnkumar/spring-mvc-multiple-languages
Juno ., modified 6 Years ago. Junior Member Posts: 39 Join Date: 7/23/15 Recent Posts

I have tried creating a bundle(WAR) with your code, the issue still exists. one portlet shows values from the properties file but the other one is not.

 

did you try deploying?

thumbnail
Nagendra Kumar Busam, modified 6 Years ago. Liferay Master Posts: 678 Join Date: 7/7/09 Recent Posts

Yes, I deployed on liferay-ce-portal-7.1.1-ga2. Exactly which version you are deploying to?

 

Thanks,

Nagendra

Juno ., modified 6 Years ago. Junior Member Posts: 39 Join Date: 7/23/15 Recent Posts
Am trying it in liferay-dxp-7.1.10-ga1
thumbnail
Nagendra Kumar Busam, modified 6 Years ago. Liferay Master Posts: 678 Join Date: 7/7/09 Recent Posts
You can give it a try on ce version once If you have handy. I don't have DXP installed handy at the moment.
thumbnail
Olaf Kock, modified 6 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts
Nagendra Kumar Busam:
You can give it a try on ce version once If you have handy. I don't have DXP installed handy at the moment.
Or alternatively, download the latest fixpack and install it, to get the fixes since GA1 release. At the time of me writing this, FP4 is the latest available version.
 
Juno ., modified 6 Years ago. Junior Member Posts: 39 Join Date: 7/23/15 Recent Posts

Hi Olaf

 

Am using DXP with the developer license. Is it possible to get the fixpacks for DXP?

thumbnail
Andrew Jardine, modified 6 Years ago. Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Assuming that you are a paying customer, and not working with a trial license at the moment, yes, you can find them in the customer portal. Liferay recently launched a new support site, in case you are not already aware. You can find it at https://help.liferay.com/hc/en-us
Juno ., modified 6 Years ago. Junior Member Posts: 39 Join Date: 7/23/15 Recent Posts
Thanks Andrew.
Juno ., modified 6 Years ago. Junior Member Posts: 39 Join Date: 7/23/15 Recent Posts
It Works in 7.1.ga2