Postponed
Project:
Wysiwyg
Version:
7.x-2.2
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Jul 2009 at 00:56 UTC
Updated:
28 Mar 2013 at 14:43 UTC
The attached patch adds a 'USER_DEFAULT' language (could probably use some work) option on the configuration screen, and then, if a profile is set with that as the language, swaps in the global $language->language parameter at page load.
For all the reasons mentioned in #362318: Limit wysiwyg language selection to available languages, this needs work because there is no guarantee that a user's configured language would have been installed on the 3rd-party wysiwyg library.
| Comment | File | Size | Author |
|---|---|---|---|
| wysiwyg.language.patch | 1.93 KB | jhedstrom |
Comments
Comment #1
sunThis is blocked by #362318: Limit wysiwyg language selection to available languages
Comment #2
markus_petrux commentedAs soon as #362318 gets in, we can use the list of languages available per editor to see if the user interface language (*) is in the list, if so, we could tell the editor to use that one dynamically. Hence the language defined at editor profile level may end up as a fall back resource, in case user interface languages are not available per editor profile.
(*) by "user interface languages" I probably mean, the current language, if not available, try with the site default language. Or something like that. :P :)
Comment #3
markus_petrux commentedSince we can alter the editor settings, this is now easy to achieve from a little custom module.
Comment #4
NaX commentedThanks markus_petrux you saved we working this out myself.
This is how I ended up doing it. It includes language direction because I needed Arabic, but for it to work it looks like you need to enable the Right-to-left and Left-to-right plugins/button that seem to come from the directionality plugin.
Comment #5
zilverdistel commentedsubscribing
Comment #6
twodThis is also blocked by #1055298: Limit language selection to installed languages.
Comment #7
attiks commentedThanks @markus_petrux and @NaX works like a charm even for chinese
Comment #8
stevieegee commentedHi All
I used @NaX's code on Wysiwyg 7.x-2.2 and it worked a treat. The only change I did, was due to TinyMCE now having codes zh-cn for Simplified Chinese and zh-tw for Traditional Chinese.
Thank you all for your help.
Stephen