Welcome Guest Search | Active Topics | Sign In | Register

EO.WebBrowser Language Change? Options
hmireault
Posted: Monday, November 24, 2014 1:08:00 PM
Rank: Advanced Member
Groups: Member

Joined: 7/14/2014
Posts: 52
Hello,

Is there any way to change the language of the webbrowser, like how in Google Chrome you can go in Settings > Languages, and change the language settings?

Thank you in advance.
eo_support
Posted: Monday, November 24, 2014 1:39:44 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

There are two different properties related to languages. The first one is this one:

http://www.essentialobjects.com/doc/6/eo.webbrowser.runtime.uilanguage.aspx

This one affects the language used in the UI elements. For example, if you set this property to "es", then the title of a JavaScript alert message box will be in Spanish. See here for more details about this property:

http://www.essentialobjects.com/doc/6/customize/localization.aspx

The default value for this property is your current OS language.

Another property is this one:

http://www.essentialobjects.com/doc/6/eo.webbrowser.webview.acceptlanguage.aspx

This property controls the "Accept-Language" HTTP header that is sent from EO.WebBrowser to the server. The server can examine this value and acts accordingly or it can ignore it completely. For example, Google examines this value and if you set it to "de-DE" and load Google's home page, then the German version of Google's homepage will be loaded. However our website is only in English, so it does not examine this value so no matter what value you set, you will always load the English version of our website.

Hope this helps. Please feel free to let us know if you still have any more questions.

Thanks!
hmireault
Posted: Monday, November 24, 2014 1:56:30 PM
Rank: Advanced Member
Groups: Member

Joined: 7/14/2014
Posts: 52
This is perfect, the AcceptLanguage property was exactly what we were looking for.

Thank you for your quick reply once again.
eo_support
Posted: Monday, November 24, 2014 2:00:00 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
You are very welcome. Please feel free to let us know if there is anything else.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.