Click here to Skip to main content
15,891,431 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
we are developing a WPF application ,we want to display text in TextBox (user input text)in Hindi,But while storing to database we want to store it in English.with google translator we are able to do it. but out application will run in a system with out internet. How can we implement translation offline? and one more thing we don'd want to convert it to its Hindi meaning. We just want to show English word in Hindi. Eg: male should come as मेल.

What I have tried:

Tried this link http://www.purplegene.com/static/HindiTranslitration.html
but it is not converting properly
Posted
Updated 3-Mar-16 20:42pm
Comments
VR Karthikeyan 4-Mar-16 2:34am    
for any language conversion, you need language dictionary and database, we can't create it, its a very big task to collecting meanings for single words, single line and paragraph. you have to use online dictionaries from google, bing, other providers. this is the only option I know.

1 solution

Google Translator has a "huge" dictionary backing their service. That dictionary contains all the possible translations for a particular sentence in one language, to another language.

Offline is possible. But it would require that similar dictionary that would contain the translations for every word, every phrase, every sentence. Contexual translation means a lot in modern day applications. You don't want to translate them as, (Sorry for my Roman english, you won't understand Urdu font and I don't know how to write perfect Hindi):

He goes to school.
Woh jata hai school.


Correct, but in an incorrect order of words. Instead, the correct translation would be,
Woh school jata hai.

Similarly, the dictionary would hold the translations for each word and phrase. Which would be a really tough job, that is exactly why you would use a third-party service, like Google Translator.
 
Share this answer
 

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