AnsweredAssumed Answered

Internationalization issue with webscritps in portlet

Question asked by strinchero on Oct 17, 2007
Latest reply on Oct 23, 2007 by kevinr
Hi all,
i need to provide some info via webscripts (contained in a portlet), and some parts needs to be language-aware.
I tried to read this via I18NUtil.getLocale() inside a java-backed WebScript (subclassing DeclarativeWebScript), but i get the wrong info: looks like i'm getting the server locale, and not the browser locale (browser is configured with a stranger language to be sure not to be testing the wrong thing). Test is done without a logged user, and without transaction.

Wich is the right way to obtain the locale code sent by the browser (or to simulate it) ?

Best regards