Feature #2887

Google Chrome offers translation

Added by Georg Baumann almost 9 years ago. Updated almost 9 years ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:



when we load our wt-application in Google Chrome the Browser offers to translate our page into german-language because of \"<html lang='en' ...>. Google offers the meta-tag

in order to tell Chrome to never offer translation on this page. Our problem now is that we have configured wt with false so it seems that we are not able to use WApplication::addMetaHeader(...) to solve the problem. We cannot change this to true in order to solve the problem. I know it is mentioned in the docs that addMetaHeader does not work with disabled progressive-bootstrap but i do not understand why it is restricted. Is there any solution to change "<html lang="en\" ..>\" or to add a meta-tag without changing the wt-sources in the "src/web/skeleton"?

Kind regards


Updated by Koen Deforche almost 9 years ago

  • Tracker changed from Support to Feature
  • Status changed from New to InProgress
  • Assignee set to Koen Deforche
  • Target version set to 3.3.3


There currently indeed is now way to do this, and this is a nuisance in many cases. The problem to solve is whether we want to only support static configuration of these tags (that would be easiest) or if it makes sense to provide API to add these tags based on a (partially populated) WEnvironment variable, which also makes sense since many of these tags are specific to browsers or environments.

Since in all these years none of the two options seems ideal by itself, I would propose to add both methods.




Updated by Georg Baumann almost 9 years ago


would really be great to have these methods.




Updated by Koen Deforche almost 9 years ago

  • Status changed from InProgress to Resolved

I've implemented configuration-based meta headers, with support for constraining the user-agents to which they apply using regular expressions. I think that's flexible already and perhaps then the API-based extensions are not necessary.


Updated by Koen Deforche almost 9 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF