mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #19020
[Bug 1319243] Re: Translations for the new TinyMCE "toggle toolbar" button
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?
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1319243
Title:
Translations for the new TinyMCE "toggle toolbar" button
Status in Mahara ePortfolio:
Confirmed
Bug description:
In https://reviews.mahara.org/#/c/3289/ (part of bug 1282341), we're
adding a button that toggles the TinyMCE toolbar. By default it shows
just the most basic buttons. When you click this button, it toggles up
and displays everything.
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?
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1319243/+subscriptions
References