Click here to Skip to main content
15,879,474 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Friends,
I am developing a translation tool. First I want the develop a glossary from existing translations so I developed a GUI which has 2 panes. left side has english and right side has hindi. For hindi its easy to find a new line using '|' however for english its a bit challenge since . can be anywhere between lines also. i.e. Order No.

Now I am done with first part and looking to seek your help on second part which is using this glossary for translating new document. so now when i have a line from new document, it may match partially with the line in glossary i.e.
'The new order 121234/123/21 has bee placed 20th sep 2018 at New Delhi, India' whereas in glossary entire sentence will be same except the order no and date and place. Now I need your help to understand how i can find the best matching sentence here while performing translation keeping the other values as they are.

Kindly suggest.

What I have tried:

I had a tool way back however it has place holders to match sentences like %name%, %publish_date% and may not be suitable here.
Posted
Comments
TommoDotCommo 21-Sep-18 0:13am    
How many different English sentences can there be in the documents?

You could loop through your entire glossary and do a find and replace for every glossary item.

ie. "The new order", "has been placed", and "at" will all be different glossary entries.
VarunSharma43 21-Sep-18 23:18pm    
Thanks for your help here and appreciate the same. Practically today i write the hindi translation of the English document since the orders need to be publish in English and Hindi both. The document is about 50 pages and has many lines so if i find exact sentence then its ok otherwise i am looking to find closest match.

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