cancel
Showing results for 
Search instead for 
Did you mean: 

Translation of static HTML content

Former Member
0 Kudos

We have static HTML content called from .NET iViews and we now have a requirement to translate this HTML content. Our current process for displaying translated metadata (roles, worksets, pages, iView name, etc) works off the Users IE Language preference. We can insert javascript into the HTML page to re-direct to a translated version, but we can only get this to work using the PC locale and not the IE preferred language. Do you know if javascript can read the IE preferred language, or alternatively detect the logon language.

Accepted Solutions (0)

Answers (1)

Answers (1)

Oliver_S
Advisor
Advisor
0 Kudos

<SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">

<!--

document.write("<B>Language:</B> " + navigator.language);

//-->

</SCRIPT>

or

http://www.web-wise-wizard.com/javascript-reference/javascript-jscript-get-user-information.html

would be a nice feature request for the EP portal. Maybe you can post it to our Product Management.

BR,

Oliver

Former Member
0 Kudos

Thanks Oliver.

We have this script in place, however it works of the PC locale as opposed to the IE Preferred Language. We have users that share PC's (using different languages). They are pretty good at changing the IE language but not so good at changing the PC language.

Any further suggestions?

Kind Regards..........Will