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