- edited description
Add multilang support for custom header menu
The custom Header Menus don't support multilang.
Using the Moodle format as suggested doesn't work. Example 1:
Moodle Docs|http://docs.moodle.org|Moodle Docs|en
German Docs|http://docs.moodle.org/de|Documentation in German|de
Result: both entries are displayed in the menu.
Using the multilang-filter syntax for the menu title doesn't work. Example 2:
<span class="multilang" lang="en">Utilities</span><span class="multilang" lang="de">Nützliches</span>
Result: "UtilitiesNützliches" (and HTML-Markup in the tooltip)
Comments (5)
-
reporter -
reporter Suggestion for fix (file renderers.php, function get_top_menus(), line 1510):
$custommenuitems = $this->parse_custom_menu($menu, format_string($title)); $custommenu = new custom_menu($custommenuitems, current_language());
-
Could you create a PR with the change? We will test it and publish in next release.
This is in the queue of pending tasks from long time ago (from BCU)
Thanks for your collaboration
-
- changed status to resolved
fix issue
#609: multilang support for custom header menu→ <<cset 5687cefbfa4a>>
-
Merged in bjoern_bettzueche/moodle-theme_adaptable_mintfit/feature/
#609(pull request #29)fix issue
#609: multilang support for custom header menu→ <<cset 0849ab21e4d9>>
- Log in to comment