Revolution: Google Chrome translates parts of the Manager it shouldn't

Created on 30 Nov 2016  路  3Comments  路  Source: modxcms/revolution

Summary

Google Chrome translates parts of the Manager it shouldn't.

Step to reproduce

Set the manager language to a language other than your primary language. For example, change it from English to Dutch. Chrome will now ask you if you want to translate the Manager page. Say yes. Notice that not only the interface, but the content itself is also translated. This means that if you save the resource your client's content could get translated! Yikes.

Observed behavior

Client gets mad. Or laughs if they have a good since of humor.

Expected behavior

MODX should prevent Chrome from translating certain parts, such as the content area, of the Manager.

Environment

All environments, Google Chrome.

There is a fix for this, and I'll try and work on a PR but this might be something to just keep in mind when the Manager is rebuilt. There is a special class you can use that tells Google translate to leave that part of the DOM alone.

area-a11y

Most helpful comment

Here https://support.google.com/webmasters/answer/79812?hl=en said

When we recognize that the contents of a page are not in the language that the user is likely to want to read, we often provide a link to a translation in the search results. In general, this gives you the chance to provide your unique and compelling content to a much larger group of users. However, there may be situations where this is not desired. This meta tag tells Google that you don't want us to provide a translation for this page.

So, adding <meta name="google" content="notranslate" /> to the manager pages should solve the issue.

All 3 comments

If this can be implemented in todays manager, that would be welcome.

There is an HTML attribute we can use to solve this: HTML's translate attribute

Here https://support.google.com/webmasters/answer/79812?hl=en said

When we recognize that the contents of a page are not in the language that the user is likely to want to read, we often provide a link to a translation in the search results. In general, this gives you the chance to provide your unique and compelling content to a much larger group of users. However, there may be situations where this is not desired. This meta tag tells Google that you don't want us to provide a translation for this page.

So, adding <meta name="google" content="notranslate" /> to the manager pages should solve the issue.

Was this page helpful?
0 / 5 - 0 ratings