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 !879
parents 820d2fd1 9ba20cc6
Pipeline #7280 failed with stage
in 0 seconds
......@@ -2,6 +2,7 @@
<html ${manifest_attribute}>
<head>
<meta charset="utf-8">
<meta name="google" content="notranslate">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="favicon.ico">
<meta name="theme-color" content="#085078">
......
......@@ -252,8 +252,8 @@
</tuple>
<state>
<tuple>
<float>1557147532.09</float>
<string>UTC</string>
<float>1562571179.69</float>
<string>GMT+9</string>
</tuple>
</state>
</object>
......
......@@ -24,6 +24,7 @@ DEPRECATION:
<meta name="generator" content="ERP5 - Copyright (C) 2001 - 2015. All rights reserved." />
<meta name="robots" content="index, follow" />
<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:define-slot="head"></tal:block>
</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