cancel
Showing results for 
Search instead for 
Did you mean: 

Internationalization issue with webscritps in portlet

strinchero
Champ in-the-making
Champ in-the-making
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
1 REPLY 1

kevinr
Star Contributor
Star Contributor
This is a bug in the webscript framework -it should automatically set the current locale for the request based on the browser locale code if present. We are looking into this.

Kevin
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.