Commit 72a2977a authored by Jérome Perrin's avatar Jérome Perrin

xhtml_style: don't allow google translate

Some users have been using google chrome builtin translation system with
ERP5 back office (xhtml style), but the way google translation changes
the DOM sometimes break ERP5 interface.
This also have data privacy issue as this translation is done on google
servers.

https://www.w3.org/International/questions/qa-translate-flag recommends
using translate=no but the approach of the meta tag might be preferable
for our case as it prevents sending the page content to translation
service.

/reviewed-on nexedi/erp5!879
parents 820d2fd1 9ba20cc6
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<html ${manifest_attribute}> <html ${manifest_attribute}>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="google" content="notranslate">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="favicon.ico"> <link rel="shortcut icon" href="favicon.ico">
<meta name="theme-color" content="#085078"> <meta name="theme-color" content="#085078">
......
...@@ -252,8 +252,8 @@ ...@@ -252,8 +252,8 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1557147532.09</float> <float>1562571179.69</float>
<string>UTC</string> <string>GMT+9</string>
</tuple> </tuple>
</state> </state>
</object> </object>
......
...@@ -24,6 +24,7 @@ DEPRECATION: ...@@ -24,6 +24,7 @@ DEPRECATION:
<meta name="generator" content="ERP5 - Copyright (C) 2001 - 2015. All rights reserved." /> <meta name="generator" content="ERP5 - Copyright (C) 2001 - 2015. All rights reserved." />
<meta name="robots" content="index, follow" /> <meta name="robots" content="index, follow" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="google" content="notranslate">
<tal:block metal:use-macro="global_definitions_macros/render_css_js" /> <tal:block metal:use-macro="global_definitions_macros/render_css_js" />
<tal:block metal:define-slot="head"></tal:block> <tal:block metal:define-slot="head"></tal:block>
</head> </head>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment