michael-milette / moodle-filter_filtercodes

FilterCodes filter for Moodle enables content creators to easily customize and personalize course and site content using plain text tags (no HTML). For premium support, contact us at https://www.tngconsulting.ca/contact
https://moodle.org/plugins/filter_filtercodes
GNU General Public License v3.0
32 stars 45 forks source link

Add extra fields for preferred language and timezone #135

Closed davefoord closed 3 years ago

davefoord commented 4 years ago

I work on a multi-language global Moodle, where people see different content based on their preferred language, and also we use tools like the scheduler activity a lot, which converts times into people's timezones - but both these only work, if the person's language and timezone is set correctly. I would love to use the filtercodes plugin to highlight to them what their timezone is currently set to (e.g. within each scheduler activity), and highlight what language they are set to e.g. at the top of each course - so they can change these easily if necessary.

Thanks in advance,

michael-milette commented 4 years ago

That is an excellent use case. I will definitely look this. Thank you @davefoord !

michael-milette commented 4 years ago

Would you want the ISO language code or the full name? I am assuming the full name in the current UI language.

davefoord commented 4 years ago

I would want the full name - as the ISO code won't mean much to the user. e.g. if someone has chosen Espanol (Colombian) I would want to see either:

Espanol - Colombia (es_co) Espanol - Colombia

Thanks

michael-milette commented 3 years ago

Hi @davefoord , a new tag {timezone} has been added to FilterCodes and will be included in the next release within the next couple of days. Thank you for the suggestion!

(preferred language will be coming soon)

michael-milette commented 3 years ago

Hi @davefoord , a new tag {preferredlanguage} has been added to FilterCodes and will be included in the next release within the next couple of days.

Note: Because the language will be displayed in the that language and not in Moodle's current language, it will be enclosed in a span tag with an appropriate lang="..." attribute so that screen readers pronounce it correctly.

Feel free to try out the new {timezone} and {preferredlanguage} tags before that by downloading and installing FilterCodes directly from GitHub.

Thank you again for your suggestion!

Best regards,

Michael

davefoord commented 3 years ago

Hi Michael, thanks for adding in the filter codes for {timezone} and {preferredlanguage} I have tested these on my test moodle and they work great.

When are you going to release this update to the plugins page? My host company for my live moodle prefers to only apply plugin updates once they are published there.

michael-milette commented 3 years ago

Hi @davefoord ,

You are very welcome. I am just in the process of doing compatibility testing with the recently released Moodle 3.10. I hope to have the new release available on Moodle.org by sometime this coming weekend.

Best regards,

Michael

michael-milette commented 3 years ago

The latest version, including these new tags, has been released on Moodle.org.

davefoord commented 3 years ago

Yes – thanks for this, I have downloaded, installed and already using – looks great.

Dave Foord

A6 Training and Consultancy Ltd

Email: mailto:dave@a6training.co.uk dave@a6training.co.uk

Tel: 07922115678

Web: http://www.a6training.co.uk/ www.a6training.co.uk

Twitter: @davefoord

From: Michael Milette notifications@github.com Sent: 25 November 2020 01:30 To: michael-milette/moodle-filter_filtercodes moodle-filter_filtercodes@noreply.github.com Cc: davefoord dave@a6training.co.uk; Mention mention@noreply.github.com Subject: Re: [michael-milette/moodle-filter_filtercodes] Add extra fields for preferred language and timezone (#135)

The latest version, including these new tags, has been released on Moodle.org.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/michael-milette/moodle-filter_filtercodes/issues/135#issuecomment-733405027 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AG4E3XVWZROPQUGN76RTD7TSRRM3HANCNFSM4S2YYUPA . https://github.com/notifications/beacon/AG4E3XST5FDHDDE7BS3OLHTSRRM3HA5CNFSM4S2YYUPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFO3N6YY.gif