Search found 3 matches

by mrmasoud
Wed Nov 26, 2014 2:34 pm
Forum: Translation
Topic: Get Current Language in JavaCode
Replies: 2
Views: 4226

Re: Get Current Language in JavaCode

Hi,
jllort Thanks, It's works:)
by mrmasoud
Tue Nov 25, 2014 11:08 am
Forum: Customization & Improvements
Topic: BUG - Multilingual?
Replies: 1
Views: 1018

BUG - Multilingual?

Hi,
After changeing language in Tools->Languages, Cookie Not set!
Is this a bug?
by mrmasoud
Mon Nov 24, 2014 12:22 pm
Forum: Translation
Topic: Get Current Language in JavaCode
Replies: 2
Views: 4226

Get Current Language in JavaCode

Hi,

How can I get current Language in Java Source Code of openKM?

I am trying

Code: Select all

Locale locale = pageContext.getRequest().getLocale();
String lang = locale.getLanguage() + "-" + locale.getCountry() + "(" +locale.getDisplayLanguage() + ")";
but this code always shows "en-US(English)"