zberentey/liferay-portal — pull request #89 by danielreuther (2012-06-05 10:04:01+00:00)
Title: [TECH SUPPORT] LPS-27239

Hi Zsolt,

@KocsisDaniel asked me to send this to you since he's too caught up with escalations this week.

Anyway... so, the main problem here is that the getTitleMap method uses the system default language instead of the article default one. This is especially bad if the title is not localized (non-XML).

The first approach was to add a defaultLanguageId parameter to LocalizationImpl#getLocalization but this would've required us to change the API. After discussing it with Dániel we agreed that a LocaleThreadLocal approach would be the better option.

While testing it I have discovered another bug though (LPS-27751) but I will send a separate pull regarding that.

Thanks already!
Daniel