showing results for - "javascript program german to english translation"
Johanna
24 Jul 2019
1<html>
2<head>
3    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4    <script type="text/javascript" src="https://www.google.com/jsapi"></script>
5    <script type="text/javascript">
6        // Load the Google Transliterate API
7        google.load("elements", "1", {
8            packages: "transliteration"
9        });
10
11        function onLoad() {
12            var options = {
13                sourceLanguage: 'en',
14                destinationLanguage: ['hi', 'kn', 'ml', 'ta', 'te'],
15                shortcutKey: 'ctrl+g',
16                transliterationEnabled: true
17            };
18
19            // Create an instance on TransliterationControl with the required
20            // options.
21            var control =
22                new
23            google.elements.transliteration.TransliterationControl(options);
24
25            // Enable transliteration in the textfields with the given ids.
26            var ids = ["transl1", "transl2"];
27            control.makeTransliteratable(ids);
28
29            // Show the transliteration control which can be used to toggle 
30            between
31            // English and Hindi and also choose other destination language.
32            control.showControl('translControl');
33        }
34        google.setOnLoadCallback(onLoad);
35    </script>
36</head>
37<body>
38    <!-- <center>Type in Indian languages (Press Ctrl+g to toggle between English and Hindi)</center> -->
39    <div id='translControl'></div>
40    <br />Title:
41    <input type='textbox' id="transl1" />
42    <br />Body
43    <br />
44    <textarea id="transl2" style="width:600px;height:200px"></textarea>
45</body>
46</html>
Basil
27 Jun 2017
1<html>
2
3<head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <script type="text/javascript" src="https://www.google.com/jsapi">
6    </script>
7    <script type="text/javascript">
8        // Load the Google Transliterate API
9        google.load("elements", "1", {
10            packages: "transliteration"
11        });
12
13        function onLoad() {
14            var options = {
15                sourceLanguage: 'en',
16                destinationLanguage: ['hi', 'kn', 'ml', 'ta', 'te'],
17                shortcutKey: 'ctrl+g',
18                transliterationEnabled: true
19            };
20
21            // Create an instance on TransliterationControl with the required
22            // options.
23            var control =
24                new google.elements.transliteration.TransliterationControl(options);
25
26            // Enable transliteration in the textfields with the given ids.
27            var ids = ["transl1", "transl2"];
28            control.makeTransliteratable(ids);
29
30            // Show the transliteration control which can be used to toggle between
31            // English and Hindi and also choose other destination language.
32            control.showControl('translControl');
33        }
34        google.setOnLoadCallback(onLoad);
35    </script>
36</head>
37
38<body>
39    <center>Type in Indian languages (Press Ctrl+g to toggle between English and Hindi)</center>
40    <div id='translControl'></div>
41    <br>Title : <input type='textbox' id="transl1" />
42    <br>Body<br><textarea id="transl2" style="width:600px;height:200px"></textarea>
43</body>
44
45</html>