andrewhancox / moodle-filter_translations

8 stars 8 forks source link

UX improvement: Inform user when a language cannot be translated #158

Closed rjnl closed 1 year ago

rjnl commented 1 year ago

https://github.com/andrewhancox/moodle-filter_translations/commit/1dfe6c0919ae9e2216a89209457854df5b00d236 introduced an option to exclude selected languages from being translated. Currently, when a language is selected for exclusion, the translation menu icon in the navbar is not displayed. A user will not be aware why that is the case, and may consider that the translation filter is not working.

It would be better to show a message to the user if the selected language cannot be translated, instead of completely hiding the translation menu icon. I'm thinking something like this...

image

rjnl commented 1 year ago

This commits adds this: https://github.com/rjnl/moodle-filter_translations/commit/2d82d058617feb09bd0476d454c693a8044a644d