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

Arturo Bernal commented on JSPWIKI-625:
---------------------------------------

Tried with the current code (master plus an unrelated parser change, Tomcat 
10.1, Chrome with browser language en-US). FCKeditor is not in the default 
templates any more; the wysiwyg editor of the default template is MooEditable. 
I set the language of the user preferences to Dutch and the editor to wysiwyg. 
The page turned Dutch (the title of the edit page is Bewerk, and the html 
element has lang nl), but the titles of the toolbar buttons stayed in English: 
Bold, Italic, Block Formatting, Align Left, and so on.

In the sources, the labels of the toolbar are defined in English in 
MooEditable.Extras.js with MooEditable.Locale.define, and nothing there reads 
the language of the user preferences or of the browser. So today the toolbar is 
always English while the rest of the page follows the preference, which is the 
mismatch of the report in another form. Changing the language of the browser 
was not tried, so I cannot say whether the toolbar would follow it.

Limits: only the tooltips of the toolbar were read, not the drop down of block 
formats. A possible change is to define the labels for the languages of the 
wiki and choose them from the language preference; I have not tried it. Leaving 
the issue open.

> 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 was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to