Use current user's language
jhedstrom - July 28, 2009 - 00:56
| Project: | Wysiwyg |
| Version: | 6.x-2.x-dev |
| Component: | User interface |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
Jump to:
Description
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 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.
| Attachment | Size |
|---|---|
| wysiwyg.language.patch | 1.93 KB |

#1
This is blocked by #362318: Limit language selection to available languages
#2
As 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 :)