Translate text on internal SchemeServe pages
Recently a lot of people have been asking us about translating the internal system pages in SchemeServe (i.e. not those editable via the Admin > Questions editor). Here's some example code to do just that...
//
// CLIENT-SIDE TRANSLATION CODE
// The following example will translate 3 of the client fields seen during Get Quote into Italian.
// admNetwork 2012
//
// don't do anything until the page has fully loaded
document.observe('dom:loaded', function() {
// TRANSLATE
$$('table#ctl00_MainContentCell td.leftColumn h4')[0].update('Cliente');
$$('table#ctl00_MainContentCell label.subfirstname')[0].update('Nome');
$$('table#ctl00_MainContentCell label.subsurname')[0].update('Cognome');
// hide unwanted elements
$$('table#ctl00_MainContentCell label.sub')[3].hide(); // title heading
$('ctl00_MainContent_UserTitle')[0].hide(); // title input box
});
To try this out, add the code above to your SchemeServe under Admin > Website > Custom Javascript.
PS: You may also like to hide input boxes and headings which don't apply in your country. See: http://support.admnetwork.com/entries/21219213-hide-text-and-input-boxes-during-get-quote-process
Please sign in to leave a comment.
Comments
0 comments