CKEditorControl's language is not so right.

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
5/28/2013 1:03:57 AM
Gravatar
Total Posts 46

CKEditorControl's language is not so right.

  hi. joe

below code in file:  mojoportal\Web\Controls\Editors\CKEditor\CKEditorControl.cs, line: 266:

is not accurate for some cultures, e.g, if culture is zh-CN, there is a zh-cn.js for CKEditor, but mojoportal still use zh.js.

////////////////////////////////// Begin ////////////////////////////////////////////////////////////////////////////

​script.Append(",language:'" + culture.TwoLetterISOLanguageName + "'");

////////////////////////////////// End ////////////////////////////////////////////////////////////////////////////

So, I hope you can change the above line code to below code:

//////////////////////////////////// Begin /////////////////////////////////   

 
            string lang = culture.Name.ToLowerInvariant();
            if (!System.IO.File.Exists(System.Web.HttpContext.Current.Server.MapPath(basePath + "lang/" + lang + ".js")))
            {
                lang = culture.TwoLetterISOLanguageName;
            }

            script.Append(",language:'" + lang + "'");

///////////////////////////////// End //////////////////////////////////

Thanks;

5/28/2013 10:23:53 AM
Gravatar
Total Posts 18439

Re: CKEditorControl's language is not so right.

I just pushed a change to the source code repository that should fix this. Can you test it and confirm the fix?

Thanks,

Joe

5/28/2013 11:09:56 AM
Gravatar
Total Posts 46

Re: CKEditorControl's language is not so right.

yes, it works now. 

Thanks.

You must sign in to post in the forums. This thread is closed to new posts.