Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorHow to localize Fckeditor Dialog?How to localize Fckeditor Dialog?
Previous
 
Next
New Post
2/6/2007 7:36 PM
 

Maybe you will need the following information too:

1) The provider can tell the editor to use the source version of the js by changing the UseFCKSource at the web.config

2) Remember to package the .js files again before changing the UseFCKSource again (Instructions included in the link I already gave you)


Locopon
Free modules: E-commerce, Complete localization (Portal, page, module settings, skins, etc.), Secure Login, and more
http://dnn.tiendaboliviana.com
 
New Post
2/7/2007 1:33 AM
 

Thanks,locopon!Follow your information and read source code,I think I find where the problem lies, It's the case sensitive who cause the bug.

The fckeditor provider set AutoDetectLanguage=false under HtmlEditorProviders\FckhtmlEditorProvider\Custom\fckconfig.js ,And set it as below in FCKHtmlEditorProvider.vb ( in Sub Initialize() )

            cntlFck.AutoDetectLanguage = False
            Dim myLangFile As String = System.Web.HttpContext.Current.Server.MapPath(bpath & "FCKeditor/editor/lang/" & System.Threading.Thread.CurrentThread.CurrentUICulture.Name & ".js")
            'Let's check xx-YY
            If IO.File.Exists(myLangFile) Then
                cntlFck.DefaultLanguage = IO.Path.GetFileNameWithoutExtension(myLangFile)
            Else
                'Full locale name does not exist as a file, so use language code only
                cntlFck.DefaultLanguage = Left(System.Threading.Thread.CurrentThread.CurrentUICulture.Name, 2)
            End If

          Here is the problem ,since System.Threading.Thread.CurrentThread.CurrentUICulture.Name will get "zh-CN" in my case. But in FCKLanguageManager.AvailableLanguages settings(lies in FCKeditor\editor\_source\internals\fcklanguagemanager.js) ,the value are all lower case ( zh-cn for example).So , the cntlFck.DefaultLanguage = IO.Path.GetFileNameWithoutExtension(myLangFile) doesn't work.

        Here is my way to solve this problem

        :open HtmlEditorProviders\FckhtmlEditorProvider\FCKeditor\editor\js\fckeditorcode_ie.js and  HtmlEditorProviders\FckhtmlEditorProvider\FCKeditor\editor\js\fckeditorcode_gecko.js ,Replace the related string . In my case ,I find and replace "zh-cn" as "zh-CN". the problem fixed.This is what I have done.

       Here is my suggestion for code modification
       Change cntlFck.DefaultLanguage = IO.Path.GetFileNameWithoutExtension(myLangFile)  as cntlFck.DefaultLanguage = IO.Path.GetFileNameWithoutExtension(myLangFile).ToLower()

       And although System.Threading.Thread.CurrentThread.CurrentUICulture.Name always get the right answer, it's better to set DefaultLanguage like  PageBase.vb did so user can see a consistent localization.


Over 20 + professional dnn modules for News Article, Store, Video Gallery, Photo Gallery, Ultra Flash Player,YouTube Video, Image Slide show, Skin Chameleon and much more from DnnModule.com
 
New Post
2/7/2007 2:58 PM
 

please log this into the public issue tracker at support.dotnetnuke.com, so it won't get lost.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorHow to localize Fckeditor Dialog?How to localize Fckeditor Dialog?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out