设置Lang后,将页面保持不变 [英] Once Lang is set, keeping it from page to page

查看:123
本文介绍了设置Lang后,将页面保持不变的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在设置后保留选定的语言?当从一个页面移动到另一个页面时,用户每次都必须重新选择翻译按钮。事实上,如果他们发布了一些数据并且我在服务器端验证脚本中发回了错误消息,那么它也会丢失所选语言。

你是否正在尝试使用cookie而这在我的环境还是你不保存所选择的语言?

我正在使用WIDGET。

解决方案

语言选择应该是presist - 但它与自动翻译后续页面不同。这是"自动"的我们在其他线程上讨论过的功能,也是即将推出的功能集的一部分。

只是为了理解这种情况 - 您希望提供一种体验,如果有人来到一个安装了小部件并且"打开"的页面。翻译,即使他们转到不同的页面,也应保持打开状态(基本上是指每次点击进入新页面都应自动触发翻译)。这是否正确?

我们打算提供此选项,如果我们检测到用户的浏览器语言设置为您的网站语言之外的其他内容,您还可以设置自动进行翻译。

Is it possible to keep the language selected once set?  When moving from page to page the user has to re-select the translate button each time.  In fact if they post some data and I send back an error message in a server side validation script then it also loses the selected language.

Are you trying to use a cookie and that is not working in my environment or do you just not save the selected language?

I am using the WIDGET.

解决方案

The language selection should presist - but it is different from auto translating the subsequent pages. This is the "auto" feature we have discussed on other threads and is also part of the upcoming set of features.

Just to understand this scenario - you would like to provide an experience where if someone comes to a page that has the widget installed and "turns on" the translation, it should stay turned on even if they go to a different page (basically means every click through to a new page should automatically trigger a translation). Is this correct?

We intend to offer this as an option, where you can also set that the translation should occur automatically if we detect that the user's browser language is set to something other than your site language.


这篇关于设置Lang后,将页面保持不变的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆