Translations for the new TinyMCE "toggle toolbar" button
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mahara |
Fix Released
|
Medium
|
Robert Lyon |
Bug Description
In https:/
The problem is that this plugin only contains translations for English, Spanish, German, and French. And, it stores its language strings in Javascript files, so they can't be fixed as part of a standard Mahara langpack. There is only one language string in this plugin. It's a tooltip that says "Toggle toolbars" when you mouseover the button. So, just the one string, but on the other hand it's a very prominent string, because we use TinyMCE so widely.
What's the best solution for this?
Changed in mahara: | |
status: | Fix Committed → Fix Released |
Some ideas:
1. Change the tooltoggle lang files into PHP scripts that can use standard Mahara language strings. The problem is that this would require patching TinyMCE's language code, because it's hardcoded to look for files following a certain naming pattern ending in "*.js". Although, maybe it could be as simple as changing that code so that it looks for *.js or *.php?
2. Eliminate the lang string. Change the icon so that it is more obvious what it does even without a tooltip, and then eliminate the tooltip. This may cause accessibility issues, though, because then a screenreader can't tell what this button does? Although I can't recall whether screenreaders can actually use TinyMCE in the first place.
3. Pass in this lang string via some other method. Does TinyMCE's localization API let us pass in lang strings via some other method, which could be accessed by some Javascript printed directly to the page by the smarty() method in web.php?