Click here to Skip to main content
15,912,205 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear All,

I want to develop a web application in which i have to store valued in English and Hindi

i am using google api

XML
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <script type="text/javascript" src="https://www.google.com/jsapi">
    </script>
    <script type="text/javascript">

      // Load the Google Transliterate API
      google.load("elements", "1", {
            packages: "transliteration"
          });

      function onLoad() {
        var options = {
            sourceLanguage:
                google.elements.transliteration.LanguageCode.ENGLISH,
            destinationLanguage:
                [google.elements.transliteration.LanguageCode.HINDI],
            shortcutKey: 'ctrl+g',
            transliterationEnabled: true
        };

        // Create an instance on TransliterationControl with the required
        // options.
        var control =
            new google.elements.transliteration.TransliterationControl(options);

        // Enable transliteration in the textbox with id
        // 'transliterateTextarea'.
        control.makeTransliteratable(['transliterateTextarea']);
      }
      google.setOnLoadCallback(onLoad);
    </script>
  </head>
  <body>
    Type in Hindi (Press Ctrl+g to toggle between English and Hindi)<br>
    <textarea id="transliterateTextarea" style="width:600px;height:200px"></textarea>
    <textarea id="transliterateTextareaHindi" style="width:600px;height:200px"></textarea>
  </body>
</html>

--->i want the text of transliterateTextarea should remain same as i type
--->the text of transliterateTextareaHindi Should Converted into hindi
Posted
Comments
Sudhakar Shinde 8-Apr-13 3:32am    
What is the problem/question?
Member 3015492 8-Apr-13 4:51am    
I AM TYPING IN FIRST TEXT BOX AND I WANT THE TRANSLATION SHOULD BE INVOKE AUTOMATICALLY IN THE SECOND TEXT BOX. FIRST TEXT BOX REMAIN SAME.
[no name] 8-Apr-13 8:39am    
Why are you screaming at the poor person that just asked a simple question?

1 solution

Hi,

Take a look into the below link to convert your text from English to Hindi. For Hindi the language code is "hi".

Maps expedited.[^]

Regards,
Manoj
 
Share this answer
 
Comments
Member 3015492 26-Apr-13 16:43pm    
thanks for reply.
but i want conversion not translation
like gulab to गुलाब
rose to रोज not गुलाब

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900