Details
Description
See MDL-7437.
We still need to:
1) Add a routine in the upgrade to convert old multilang tags to the new method:
<span lang="fr">Bonjour!</span> and <lang lang="fr">Bonjour!</lang>
to:
<span lang="fr" class="multilang">Bonjour!</span>
2) Modify the multilang filter to look for the new classes, and optionally to support the old tags as well (filter config setting).
I know these will be easy for you! ![]()
Attachments
Issue Links
| This issue has a non-specific relationship to: | ||||
| MDL-7437 | BIG: Extend HTML editor so it can "tag" passages as text with language |
|
|
|
Attaching first draft:
implemented - needs testing and minor fixes:
1/ old multilang renamed to multilangold
2/ multilang now handles only new syntax
3/ admin/multilangupgrade.php script uses similar technique as admin/replace.php; should be save to run repeatedly (todo: add check that table has id column)
not yet implemented:
4/ notification on admin/index.php that tells users to migrate to new syntax
5/ language strings in lang pack
6/ wiki docs
If somebody wants to use the old syntax:
I have also fixed whitespace problem after the multilang block in text in the new filter, the regex might be also a bit faster than before.
will continue tomorrow if the proposal above is approved
- should enable multilangold (can be used also after the new multilang filter)
- should not migrate the data in database
- should disable the new lang buttons in editor
I have also fixed whitespace problem after the multilang block in text in the new filter, the regex might be also a bit faster than before. will continue tomorrow if the proposal above is approved