Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#10046 closed Bug (invalid)

AutoDetectLanguage option isn't working

Reported by: Criss Owned by:
Priority: Normal Milestone:
Component: UI : Language Version: 4.0
Keywords: Cc:

Description

I'm using ckeditor 4.0 in an .net mvc application, testing UI language I realized an issue with AutoDetectLanguage, that is because when user change browser language, ckeditor doesn't update language toolbar; Could you help me?

Change History (2)

comment:1 Changed 7 years ago by Jakub Ś

Keywords: language removed
Resolution: invalid
Status: newclosed

AutoDetectLanguage option was used in FCKeditor http://docs.cksource.com/CKEditor_3.x/Developers_Guide/FCKeditor_CKEditor_Configuration_Mapping and I don't think it was doing what you want.

I don't fully understand question but you have only three options:

"that is because when user change browser language" if by this you mean chnaging language in browsers options then AFAIK browser doesn't fire any events for that. You would have to check in interval navigator.language
navigator.browserLanguage
  1. If you meant changing language in UI in Ajax way without reloading the page then either config file or code on your page should update editor language e.g.
    var editor = CKEDITOR.replace('abc');
    
    function changeLang(){
    editor.config.language = your_code_here;
    }
    
  2. If you mean changing language in app and reloading the page then you can set locale and pass it to editor code :
    CKEDITOR.replace('abc'{
    language: server_side_tag_that_on_page_load_will_change_to_locale_string
    });
    

Please also note that CKEditor 4 for ASP.NET is not out yet so you can either use JS version or 3.6.4. Mixing them will not work.

comment:2 Changed 7 years ago by Criss

Thanks for the information, but testing ckeditor language I saw in google chrome (v24) working well but in IE9 isn't working I consider this an issue... try yourself testing demo page http://ckeditor.com/demo in IE9 changing language (Internet Option-Languages).

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy