Change Language TinyMCE

18 posts by 5 authors in: Forums > CMS Builder
Last Post: December 18, 2008   (RSS)

By gleert - May 22, 2008

Hello,

I have downloaded the Spanish languagefiles from TinyMCE and uploaded them to their coresponding folders. I just can't figure out how to get it working...
Hope somebody can help me!

Kind Regards,

Geert

Re: [gleert] Change Language TinyMCE

By Dave - May 22, 2008

Hi Geert, welcome to the CMS Builder forum!

This page on tinymce says you can change the language by adding language : "es", to the config.
http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/language

In CMS Builder, this is in /lib/menus/default/edit_functions.php. So create a backup copy of that file and than edit and search for "tinyMCE.init" and add the text in red:

tinyMCE.init({
mode : "exact",
language : "es",
theme : "advanced",


Let me know if that works for you.

Hope that helps! :)
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Change Language TinyMCE

By gleert - May 22, 2008

Hi Dave,

Thanx for your quick response! I have tried it, but it doesn't work. See the attached image to see the result...

Hope you can solve this for me.

Kind Regards,

Geert
Attachments:

tinymce.jpg 12K

Re: [gleert] Change Language TinyMCE

By Dave - May 22, 2008

I'll have to do some research on this and see what's going on. I'll do that and post an update when I have some answers. Stay tuned.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Change Language TinyMCE

By Dave - May 22, 2008

Ok, here's how to do it for anyone who wants to change the language of the wysiwyg (TinyMCE).

Download your language file from this url: http://services.moxiecode.com/i18n/. Check the checkbox and then click download. Don't download the XML file, that won't work.

Next, unzip the file you download to the /tinymce3/ folder.

Next, create a backup and then edit /lib/menus/default/edit_functions.php. Search for "tinyMCE.init" and add the text in red. Be sure to use your language code, not just "es" unless it's Spanish.

tinyMCE.init({
mode : "exact",
language : "es",
theme : "advanced",


Finally, (and this is the step I missed the first time) backup and edit this file /lib/menus/default/edit.php, search for "languages" and change the language code in red:

...
themes : 'advanced',
languages : 'es',
disk_cache : true,
...


Then reload (and clear your browser cache if needed) and the wysiwyg should be in a new language.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Change Language TinyMCE

By aev - May 23, 2008

Just a tought...

Maybe you could add this as a setting in the web admin interface?
Then we could change language simply be selecting from a drop down menu.

-aev-

Re: [aev] Change Language TinyMCE

By Dave - May 23, 2008

aev,

Sure, I've added that to the next version (v1.16 in development) under: "Admin > Regional Settings" and packaged these languages: English, Spanish, Dutch, and German.

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com

Re: [aev] Change Language TinyMCE

By Dave - May 26, 2008

We can, looking at this page http://services.moxiecode.com/i18n/ I see two Norwegians:

nb - Bokmål, Norwegian; Norwegian Bokmål
nn - Norwegian Nynorsk; Nynorsk, Norwegian

Which one would you like (or both)? Which is the main Norwegian?
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Change Language TinyMCE

By aev - May 26, 2008

Hi,

"nb" is the main Norwegian.

-aev-