cancel
Showing results for 
Search instead for 
Did you mean: 

How to change alfresco webclient language externally

dynamolalit
Champ on-the-rise
Champ on-the-rise
Hi,

I am using alfresco 3.1.1. with Liferay. Alfresco is supporting 3 languages: English, French & German. Liferay also supports these languages. There is a link to Alfresco on Liferay home page.Now requirement is like this :  when user is on Liferay & has selected German as language, & he clicks on Alfresco link, the Alfresco Web client UI should be rendered in German Language.

I tried this in index.jsp :

// set the language for the current session
      Application.setLanguage(FacesContext.getCurrentInstance(), language);

      // save user preference
      if (Application.getCurrentUser(FacesContext.getCurrentInstance()) != null)
      {
         PreferencesService.getPreferences().setValue(PREF_INTERFACELANGUAGE, language);
      }

But no success.I am struggling with this. Smiley Indifferent Does anyone has any idea?
1 REPLY 1

dpalmeira
Champ in-the-making
Champ in-the-making
I need the same thing, somebody knows how to change language into webscript??

I tried
PreferencesService.getPreferences().setValue(PREF_CONTENTFILTERLANGUAGE, locale);

But PreferencesService.getPreferences() is always null, and if I use PreferencesService.getPreferences(fc) ..
FacesContext fc = FacesContext.getCurrentInstance(); is null too!

So, I dont know how to get Preferences inside webscript….

Can somebody help me?

Thank you very much
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.