You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Dirk Frederickx (JIRA)" <ji...@apache.org> on 2010/01/12 19:10:06 UTC

[jira] Commented: (JSPWIKI-625) FCK language settings and JSPWiki user preferences

    [ https://issues.apache.org/jira/browse/JSPWIKI-625?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12799300#action_12799300 ] 

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.

{noformat}

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

<script type="text/javascript">
//<![CDATA[

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

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

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

   oFCKeditor.Create();

//]]>
</script>

{noformat}

dirk

> FCK language settings and JSPWiki user preferences
> --------------------------------------------------
>
>                 Key: JSPWIKI-625
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-625
>             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.