-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
5.0
-
MOODLE_500_STABLE
Integrate Multilang v2 filter into core
THIS IS AN MUA PROJECT PROPOSAL THAT WILL BE OR HAS BEEN SUBMITTED FOR POSSIBLE MUA FUNDING. ANY EXISTING TRACKER ITEMS THAT THIS MIGHT DUPLICATE SHOULD BE LINKED TO BELOW.
Overview
The multilang v2 filter is more flexible than the standard multilang <span> tags that Moodle offers in core so far. Some advantages are:
- Easier syntax with just {mlang <iso>} instead of HTML.
- Allows blocks (e.g. two language versions can be in different paragraphs)
- Allows a fallback language
- Support for the TinyMCE (via a separate plugin)
Summary
- Project size: medium
- Audience: primary schools, universities, work places
- Target users: teachers
Goals
The integration in core would make it easier for trainers to edit multi language elements because the filter v2 is a lot easier to use and less error prone for the inexperienced user.
User Stories
As a teacher I can easily add multi language content without having to know any HTML.
As a teacher I can add one specific language content in my most important language and a fall back content for all other users without having to define a language string for each language of my site.
As a teacher I can cluster my language specific content more precisely in several paragraphs to have a better text structure in my multi language content elements.
Requirements
The following plugin code must be integrated in the Moodle core:
- https://moodle.org/plugins/filter_multilang2 (VCS: https://github.com/iarenaza/moodle-filter_multilang2)
- https://moodle.org/plugins/tiny_multilang2 (VCS: https://github.com/bfh/moodle-tiny_multilang2)
The old <span> syntax should be preserved for backward compatibility. In some special circumstances the <span> syntax works only because the content is not passed via the filters. However, the old <span> syntax should not be promoted anymore and should disappear from the documentation to discourage users from sticking to the old syntax.