1

I do have the following entry in config.yml

framework:
      translator: { fallback: de }

When I go to my index page. Chrome always tells me that the website is in french and want to translate. How can I get rid of it that it is in french?

I don't want to disable the function in chrome.

I can't see anything else in the config-files that would solve my problem.

4

2 回答 2

1

尝试在标签上设置lang属性:html

<html lang="{{ app.request.locale }}">
于 2013-03-21T12:42:24.960 回答
1

由于您已经拥有@Elnur 建议的内容,因此也可以尝试以下操作:

<META HTTP-EQUIV="Content-Language" content="{{ app.request.locale}}"/>

然后,再次阅读这个StackExchange 问题

于 2013-03-21T14:06:52.907 回答