Disabling browser automatic translation on Chrome and Edge

Disabling browser automatic translation on Chrome and Edge

by Justin Hunt -
Number of replies: 0
Picture of Particularly helpful Moodlers Picture of Plugin developers

I was asked by a user this morning how to disable Google Translate on their Moodle site.

This has previously been talked about here: 
https://moodle.org/mod/forum/discuss.php?d=419424#p1690452

But I tested the method described there and it was only effective on Google Chrome, and Microsoft Edge translated it without any problem.

I did a bit of digging and it seems that if we follow these steps we can disable translation for both Edge and Chrome:

  1. Visit: Site Administration -> Appearance -> Additional HTML

  2. Enter in the text area labelled "When BODY is opened ":
    <div translate="no" class="notranslate">

  3. Enter in the text area labelled "Before BODY is closed: "
    </div>



Then at least Chrome and Edge will respect the no translate settings. Firefox does not seem to have a page translation option. I did not test on Safari. 
If somebody does that, please post back here how it goes.

It is of course only a small obstable to a student who is determined to translate.  But I thought it might help someone.

Average of ratings: Useful (4)