Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-Language Content (v2) should be supported #296

Open
klorinczi opened this issue May 12, 2022 · 2 comments
Open

Multi-Language Content (v2) should be supported #296

klorinczi opened this issue May 12, 2022 · 2 comments

Comments

@klorinczi
Copy link

Multi-Language Content (v2) should be supported
https://moodle.org/plugins/filter_multilang2

The
{mlang en}content in English{mlang}
should be supported.

@danmarsden
Copy link
Member

Thanks for the suggestion.

I suspect adding a format_text call around the $html here might do that:
https://github.com/catalyst/moodle-auth_outage/blob/MOODLE_39_STABLE/classes/output/renderer.php#L78
we'd probably want to pass 'noclean' and maybe even send the systemcontext id rather than allowing it to use page context..

Feel free to submit a PR for us to take a look/test.

thanks!

@brendanheywood
Copy link
Contributor

This will be a lot more involved. The outage pages are essentially static html and cannot use internal moodle apis during an outage, so we would have to pre-bake N versions of all the pages for each language which are installed and also do some http header based content negotiation to show each user the right language. We will not have their session either so it can only be based off what their browser is sending and not what they would have selected inside moodle. It's all possible but just not trivial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants