Quote from: acriis at Jun 08, 2006, 08:11 AM
Hi,
Just installed the plugin and it works fine except that I need norwegian language for tinymce - and I just can not get anything but english. The language file for MODx manager comes up ok, but tinymce appears in english even if I hardcode the language name in the tinyMCE.init code in plugin.tinymce.tpl.
I would also like the content from Tiny to be utf-8 encoded.
Could someone with tinymce knowledge please tell me how to fix this? (yes, I already looked for solution in moxiecode.com forum without finding the solution.)
-And thank’s for MODx !
Hi there!
Actually, the language files referenced in the TinyMCE plugin code is correct. When you select Norsk in the language setting under System Configuration / Site Settings, TinyMCE will be set to use the correct Norwegian language files (nn.js). Keep in mind that this only applies to the manager itself; language settings are not currently implemented for front-end use. Just to be sure that it’s working right, I retested the plugin in both Firefox 1.5 and Internet Explorer 6.0 on Windows XP...works fine for me. Now, in regards to the language settings used to describe some of the manager related configuration features, I do need to have that particular language file translated. You can find it here:
assets/plugins/tinymce/lang/norsk.inc.php
If you’d like, feel free to translate it for me, zip it up, and post it here so I can include it in the next release.
Now, in regards to UTF-8 encoding, I’m not 100% sure but according to this post on the Moxiecode site (
http://tinymce.moxiecode.com/punbb/viewtopic.php?id=1288) I think you might be able to add some entities in so that the characters are displayed properly. I’ll add in a parameter to the plugin that allows for adding in the entities without the need for editing the plugin code directly. But for now you could try adding in the entities parameter to the tinyMCE.init lines in the plugin code. According to the above post, this parameter could be added in to allow for some UTF-8 support:
entities : "38,amp,34,quot,60,lt,62,gt",
Try adding it in just below one of the other parameter lines in the tinyMCE.init lines for the $fullScript parameter. I’ll be curious as to whether this works or not.
Hope this helps!
Jeff