Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#14832 closed Bug (invalid)

CKeditor's toolbar language to be detected from browser settings

Reported by: SSM Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

Steps to reproduce

  1. On OS Windows 7, The system's location and format are set to Chinese. Display language is set to English. In IE, the Internet Options is set to English
  2. Bring up an instance of CKeditor

Expected result == Toolbar is displayed in English

Actual result == Toolbar is displayed in Chinese

Other details (browser, OS, CKEditor version, installed plugins)

I tried using navigator.userLanguage, it does not work. I also tried config.AutoDetectLanguage = true, but it does not work.

Attachments (1)

Ckeditor lang demo.PNG (329.7 KB) - added by SSM 8 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 8 years ago by Jakub Ś

Resolution: invalid
Status: newclosed
Version: 4.5.10 (GitHub - master)
  1. I did not find configuration option AutoDetectLanguage for CKEditor 4. Where did you find it?
  2. The language plugin does not auto-detect languages. You can set list of available languages for this plugin with this config option
  3. The CKEditor auto-detect browser locale so if you have English set - it will be set to English by default.

Changed 8 years ago by SSM

Attachment: Ckeditor lang demo.PNG added

comment:2 Changed 8 years ago by SSM

  1. I found the AutoDetectLanguage option here:

http://docs.cksource.com/CKEditor_3.x/Developers_Guide/FCKeditor_CKEditor_Configuration_Mapping. It is not for CKeditor4 , I understand that.

  1. I have attached the screenshot where the language on IE in English, OS location format is Chinese and the toolbar is shown in Chinese. When I google search something on the browser, it is displayed in english.

comment:3 Changed 8 years ago by Jakub Ś

The navigator.userLanguage or navigator.language will work but you need to follow few rulesto chnage language in IE/Win.

Please see this video: https://www.youtube.com/watch?v=_p7lwJF_Htg

In general, you need to

  • set localization to Chinese,
  • move Chinese up (in win10 you need to set it as default),
  • you need to download that language pack (it is not by default),
  • finally you need to restart your PC.

That way you will chnage language on IE/Windows.

comment:4 Changed 8 years ago by SSM

Thanks swiderski. I really appreciate this answer.

My situation is a little different. I do not want the toolbar to be displayed in Chinese even though my OS has locale set to Chinese. I am asking if CKeditor can ignore the OS language settings and display the toolbar in english. My IE has english set in its Internet Options.

In short, ignore OS language and respect IE browser's language. Is this possible?

comment:5 Changed 8 years ago by Jakub Ś

My IE has english set in its Internet Options.

From what I know IE languages settings are in fact OS language settings (at least in win 10). When you want to change the language in IE you change language in Windows. There should not be any difference between these two.

If you want to "lock" language you can use this setting - http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-language

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy