Bug 12464 - Bootstrap XSLT view no longer displaying 505 correctly formatted
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / js / googleindictransliteration.js
1       // Load the Google Transliteration API
2       google.load("elements", "1", {
3             packages: "transliteration"
4           });
5
6         function onLoad() {
7         var options = {
8           sourceLanguage: 'en',
9           destinationLanguage: ['hi','kn','ml','ta','te'],
10           shortcutKey: 'ctrl+g',
11           transliterationEnabled: true
12         };
13
14         // Create an instance on TransliterationControl with the required
15         // options.
16         var control =
17             new google.elements.transliteration.TransliterationControl(options);
18
19         // Enable transliteration in the textfields with the given ids.
20         var ids = [ "transl1" ];
21         control.makeTransliteratable(ids);
22
23         // Show the transliteration control which can be used to toggle between
24         // English and Hindi and also choose other destination language.
25         control.showControl('translControl');
26       }
27       google.setOnLoadCallback(onLoad);