Hi all,
I try to create my first plugin. Everything work weel, but I can't retreive localized text. I do not receive any error!
When my dialog box is displayed, the text defined in language files (en.js, fr.js) is never retreived.
I thing that FCKLang["MyText"] do not find the language files, nor oEditor.FCKLanguageManager.TranslatePage(document).
FYI, I have the same problem with the findreplace sample. Do I miss a param somewhere?
Thanks,
Gilles
I try to create my first plugin. Everything work weel, but I can't retreive localized text. I do not receive any error!
When my dialog box is displayed, the text defined in language files (en.js, fr.js) is never retreived.
I thing that FCKLang["MyText"] do not find the language files, nor oEditor.FCKLanguageManager.TranslatePage(document).
FYI, I have the same problem with the findreplace sample. Do I miss a param somewhere?
Thanks,
Gilles
Re: FCKLang problem
Hi,
I have the solution!
The fckplugin.js class return an empty array for the property AvailableLangs if you don't have defined available languages when you register your plugin with FCKConfig.Plugins.Add(). In other words, when you register your plugin define at least one language (en), like this: FCKConfig.Plugins.Add('MyPlugin', 'en').
Note to the core team: It will be better to add at least 'en' in the array when no language is defined in the constructor.
Gilles