-
Bug
-
Resolution: Fixed
-
Minor
-
4.1
-
MOODLE_401_STABLE
-
MOODLE_401_STABLE
-
MDL-76331-master -
Apparently AMOS gets upset if the langstring identifier is >= 100chars. This is an undocumented restriction so I wasn't aware of it.
Just need to modify the interim strings to keep them under the limit.
Because of the way in which we translate TinyMCE strings, this is a very limited change. To explain:
- TinyMCE uses English language strings for the entire UI
- each translation provides a mapping of the English string to a translated equivalent, for example "Bold" may be mapped to "Embolden" by creating a JS Object containing {{
{"Bold": "Embolden"}
}}
- we generate our langstrings by using a mapping in tinystrings.json which contains the langstring identifier => English language string. In our lang.php processor we then generate a JS object containing the English language string => translated string with the Moodle language identifier as an intermediary like a DB join
- Because both tinystrings.json and the lang/en/editor_tiny.php content are generated at the same time using the same data, they should always match
This should have minimal impact upon AMOS because only seven langstrings are modified, and all were over the 100 character limit so could not be imported into AMOS in the first place.
- blocks
-
MDL-76367 TinyMCE editor not supporting RTL language
- Closed