#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
- 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
- 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)
Change History (6)
comment:1 Changed 8 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Version: | 4.5.10 (GitHub - master) |
- I did not find configuration option AutoDetectLanguage for CKEditor 4. Where did you find it?
- The language plugin does not auto-detect languages. You can set list of available languages for this plugin with this config option
- 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
Attachment: | Ckeditor lang demo.PNG added |
---|
comment:2 Changed 8 years ago by
- 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.
- 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
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
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
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