incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dirk Frederickx (JIRA)" <>
Subject [jira] Commented: (JSPWIKI-625) FCK language settings and JSPWiki user preferences
Date Tue, 12 Jan 2010 18:10:06 GMT


Dirk Frederickx commented on JSPWIKI-625:

JSPWiki uses a mix of browser-language and user-preference (cookie) to manage the language.

By default, the browser preference is used.  Clear UserPreferences, and you should see that
the JSPWiki language is set according to the browser setting. 

The user can overwrite this language by choosen another language in the UserPreference.

FCK.jsp does not (yet) use the JSPWiki language, but uses its build in preferences.  (ref.
corresponding documentation)

You should be able to overwrite this as follows in FCK.jsp : 
NOTE I didn't test the below code cause I have no running FCK editor at the moment. Feedback
appreciated to confirm/correct the below code snippet.


<c:set var="prefLanguage" ><c:out value="${prefs.Language}" default="<%=request.getLocale().toString()%>"

<script type="text/javascript">

   var oFCKeditor = new FCKeditor( 'htmlPageText' );
   oFCKeditor.BasePath = 'scripts/fckeditor/';

   oFCKeditor.Config['SmileyPath'] = oFCKeditor.Config['BaseHref'] + .... ;

   oFCKeditor.Config.AutoDetectLanguage = false ;
   oFCKeditor.Config.DefaultLanguage = '<%=prefLanguage%>' ;





> FCK language settings and JSPWiki user preferences
> --------------------------------------------------
>                 Key: JSPWIKI-625
>                 URL:
>             Project: JSPWiki
>          Issue Type: Bug
>          Components: Editors
>    Affects Versions: 2.8.2
>         Environment: JSPWiki 2.8.2 svn 13 with Websphere; FCK editor 2.6.3 build 19836
>            Reporter: Bruno Peeters
>            Priority: Minor
> We noticed that the language of the toolbar of the FCK editor depends on the language
setting of the browser (in our case IE7). In the company I work for (in Belgium), this is
either Dutch (NL) or French (FR). 
> In JSPWiki a user can specify his prefered language in the user preferences interface.
The default language is derived from the language setting of the browser (NL or FR). We offer
the choice between NL, FR and English.
> Has anyone else noticed that the language of the FCK toolbar and the JSPWiki interface
can be inconsistent ? 
> Is there a possibility to synchronize the languages settings in both JSPWiki and FCK
editor ?

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message