hello,
Can somebody help me with creating language support for the filemanager?
What I have so far, and I want to translate "Create new folder" as an example in frmcreatefolder.html:
- added fcklang class for the button
<span fckLang="DlgCreateDir">Create New Folder</span>
- added "DlgCreateDir" to the language file (nl.js in my case)
- added to the window.onload = function()
// First of all, translate the dialog box texts
oEditor.FCKLanguageManager.TranslatePage(document) ;
I get "oEditor is not defined" which I understand but can someone pinpoint me to which javascript file I need to include in frmcreatefolder.html
and how to define oEditor var?
Thanks and kind regards Fred Stuurman.
Can somebody help me with creating language support for the filemanager?
What I have so far, and I want to translate "Create new folder" as an example in frmcreatefolder.html:
- added fcklang class for the button
<span fckLang="DlgCreateDir">Create New Folder</span>
- added "DlgCreateDir" to the language file (nl.js in my case)
- added to the window.onload = function()
// First of all, translate the dialog box texts
oEditor.FCKLanguageManager.TranslatePage(document) ;
I get "oEditor is not defined" which I understand but can someone pinpoint me to which javascript file I need to include in frmcreatefolder.html
and how to define oEditor var?
Thanks and kind regards Fred Stuurman.
Re: language support filemanager
var oEditor = window.top.opener.oEditor ;
var FCKLang = oEditor.FCKLang ;
window.onload = function()
{
// Translate the dialog box texts.
oEditor.FCKLanguageManager.TranslatePage(document) ;
window.top.IsLoadedResourcesList = true ;
}
This reuses the same oEditor object instantiated by "fck_image.html" (or the appropiated caller dialog).