Hi,

Currently you are able to set TinyMCE's language when editing a tinymce profile. It would be great if we have an option along with the language codes called "Based on user's profile" which would chose the language based of the user's own profile (if registered, otherwise the default language).

Comments

zmove’s picture

/signed.

It's so logical to adapt the language of tinyMCE in the following order :

  1. The user language defined in his profile page
  2. The current language of the website
  3. The default tinyMCE language set up in the tinyMCE setting page
geodaniel’s picture

Status: Active » Needs work

As a quick workaround, you can set TinyMCE to use the current interface language of the site by changing the following lines in tinymce.module:

global $language;

  // $init['language']           = $settings['language'] ? $settings['language'] : 'en';
  // Use current interface language, not language configured in settings
  $init['language']           = substr($language->language, 0, 2); // only take first two chars (e.g. 'pt', not 'pt-pt')

It would be good to have this as an option in the settings instead of just overriding though.

fleetcommand’s picture

Status: Needs work » Closed (won't fix)

Closed the issue since the module is deprecated now.