Recently, for my job, we upgraded our server to ColdFusion 8.0.1, and I decided to make use of the new "built-in" rich-text editor function, which uses FCKeditor 2.5.
The site is predominately for people in China, even though I work on it from the US... so I was a bit confused when one of the users asked me why the new Rich Text Editor was in Traditional Chinese. That's how I found out that FCKeditor has language autodetect (my OS and browsers are all set to use English as default, so everything I saw was in English).
So I did some testing by adding "Chinese (China) [zh-cn]" to my browsers, and setting that to the default language, and in both IE 6 and IE 7, even when I've got Simplified Chinese set as the default language, the menu text from the editor shows up in Traditional Chinese, while in Firefox 3.5, Opera, and Google Chrome, the menu showed up correctly in Simplified Chinese. According to my users in China, Firefox 3.0 also shows the menu in Traditional Chinese.
I've updated the server to use FCKeditor 2.6.4.1, as well as try to set FCKConfig.AutoDetectLanguage to false in fckconfig.js, but it still tries to autodetect, and IE continues to display the menu in Traditional Chinese...
Does anyone know how to resolve this issue? I'm not sure if it's a problem with FCKeditor itself, or in the way it was integrated into ColdFusion 8, any help would be greatly appreciated.
Here's a test page with the form.
Sat, 08/29/2009 - 02:55
#1
Re: Language Autodetect, IE, and possibly ColdFusion issue
Actually, strike that. I wasn't paying close enough attention during testing, and thought the smaller text (which made some of the strokes "disappear") were Simplified Chinese... They're actually all showing up as Traditional Chinese. So the language autodetect is not working for me for Simplified Chinese.
Re: Language Autodetect, IE, and possibly ColdFusion issue
I've set up for example "en-US" or "es-ES" as my preferred language, but in the data that it's sent to create the editor is sending only the language code, without including the locale, so they become "en" and "es".
So if anyone is using "zh-cn", they will get "zh".
In that situation I would try to disable any autodetection done at the server and let FCKeditor pick it up by itself as it should be able to detect it properly, or even if you prefer it that way, you can hardcode it to "zh-cn"
if you have any further question about how to do it: I'm sorry but I have no idea about CF or how FCKeditor is integrated there.
Re: Language Autodetect, IE, and possibly ColdFusion issue