That said, I recently started testing the Google Translate script mentioned in the post below, and added it to the master page for a Webhelp Plus output.
http://forums.madcapsoftware.com/viewto ... te+#p84414
I also have a copyright variable on the master page, directly above the Google Translate toolbar. The Webhelp Plus Output is published to an IIS website hosted on an internal server. When I first connect to the website using IE 9.0, the copyright variable looks correct, even if I refresh or close/reopen the browser. But as soon as I navigate to another topic, the copyright variable displays "special characters".
For example:
Copyright © 2012 vs. Copyright © 2012
I looked at the source code the first time I launch, and this is how it appears:
Code: Select all
<p style="text-align: center;"><span class="CopyrightCopyright">Copyright © 2012</span> XYZ Corporation. All Rights Reserved.</p>
Code: Select all
<p style="text-align: center;"><span class="CopyrightCopyright">Copyright © 2012</span> XYZ Corporation. All Rights Reserved.</p>
I inserted the following within the <head> tags in the master page:
Code: Select all
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE">
</meta>
<script type="text/javascript">/*<![CDATA[*/ var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-xxxxxxxxx-1']);
_gaq.push(['_setDomainName', 'domainname']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();/*]]>*/</script>
Code: Select all
<div id="google_translate_element">
</div>
<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en'
}, 'google_translate_element');
}
</script>
<script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit">
</script>