Define Headers
<div style="margin-left: auto; margin-right: auto; width: 325px;">
<html>
<head>
<meta name="google-translate- customization" content="49e11e77db2672b0- 6d7fbd6031db6171- g5af6bf4e37b7bc4b-9"></meta></ head>
<body>
<div id="google_translate_element"
style="font-family: 'Segoe UI'; color: #591434; font-size: small; "></div><script>
function googleTranslateElementInit() {
new google.translate. TranslateElement({
pageLanguage: 'en',
includedLanguages: 'hi,en,ta,te',
multilanguagePage: true,
layout: google.translate. TranslateElement.InlineLayout. SIMPLE
}, 'google_translate_element');
}
</script><script src="//translate.google.com/ translate_a/element.js?cb= googleTranslateElementInit"></ script>
</body>
</html></div><div>
Now append this code to the existing PSHDR2_SWAN code.
.goog-te-banner-frame. skiptranslate {
display: none !important;
}
body {
top: 0px !important;
}
<div style="margin-left: auto; margin-right: auto; width: 325px;">
<html>
<head>
<meta name="google-translate-
<body>
<div id="google_translate_element"
style="font-family: 'Segoe UI'; color: #591434; font-size: small; "></div><script>
</script><script src="//translate.google.com/
</body>
</html></div><div>
Pagelet Wizard
Create a Wizard by tagging this Header to it. Additionally, enable Homepage Pagelet to HRMS Portal Pack
This displays Google Translate in all the transactions.
To remove Google Translate from the pages, login to AD and navigate to
Default Style Sheet PSSTYLEDEF_SWAN. It is not possible to update
PSHDR2_SWAN under FreeFrom SubStyle Sheets. To enable updating this
page, goto GO > Definition Security and exclude PSSTYLEDEF_SWAN.
Now append this code to the existing PSHDR2_SWAN code.
.goog-te-banner-frame.
display: none !important;
}
body {
top: 0px !important;
}
Appending this code removes google translate
completely from the homepage. To handle this, add code to the appserver
to have an impact on sign on <will share the code later on>
Now,
choose language from sign on page - this is impacted across all
pagelets and menus. However for individual pages please call the above
pagelet html code.
Regards,
Harun Kumar
8976795365
Harun Kumar
8976795365
No comments:
Post a Comment