Translator
-
sorry i mean i wanna create a simple translator program in qt4 from english to chinese. any ideas to start??????? or examples i can use to implement.......
-
Look at http://goldendict.org/ It contains work with dictionaries.
-
thanks for the link. however, i need it to be a standalone application that just provide a simple translation from english to chinese.something similar like google translate. however, i just wanna create a simple translator program...... just the steps needed will be enough of a good start for me....
-
In Qt installation in examples directory just look on webkit\previewer and richtext\textobject
But it is not exactly what you want. It is just examples of UI.
Work with dictionary is implemented, as I said above, in GoldenDict. Sources are available and it is Qt-based.
Translation-engine is not Qt-related part, I do not know about any free implementation.
-
i tried searching for an example of any sample translation program in qt4 that translates a word from one language to another ; but to no avail.please help
-
No such example. To translate the word you need a dictionary. Dictionary is not a part of Qt.
I show you above one example that already does it, but it is rather complex.
-
Which dictionary do you want to use? online?
-
yea.maybe using the google translate api or some kind of dictionary integrated into a simple translator program ..
-
i used 2 textedit to write the word,2 combox for selection of one language to another and a push button called "Translate" to translate the word based from the 2 combobox... now my idea is that is there any api or something i could use to integrate with this simple program... an example of how to create it would be helpful or beneficial
-
anyways.i have a source code of a translator program a friend of mines did.apparently it did not produce the translated word.... but it gave this application output
"
QMetaObject::connectSlotsByName: No matching signal for on_translate_clicked()
Langs setted
Lang flags configured...
Last pair loaded
All buttons are connected
"anyone that is willing to help , i can send the source code with the folder.....an email will be preferable
-
is it gpl or commercial program ?
-
tunde, looks like there was a button named translate (I think it was main button of app and it did actual translating) and it was renamed. Try to rename it back to translate.
-
gpl program
-
actually "Translate" was the push button for the application and on_translate_clicked() was the function to translate from a text edit to another text edit with the languages provided
-
i can provide the source code but it is kinda large
-
tunde, use a source code hosting service (e.g. "gitorious":http://gitorious.org/, "github":https://github.com/, etc) then just post the link here :-)
-
tunde, I'm not saying about title but about its name in .ui file.
-
You have the shell of the app which is a good start, now you need the 'meat', the actual text translating functionality. I recommned you implement Google Translate API "from here":http://code.google.com/apis/language/translate/overview.html to do the translation for you. They have documentation and example source code as well.
-
Yes, use Google API, is the simple way!
Something like this "Qt App":http://qt-apps.org/content/show.php/QGoogleTranslator?content=135221
-
i created a little english to chinese translator using the google translate api;however, it does not show the translated text..the source code can be seen on
https://github.com/tigertown/chinese-translatorhelp will be appreciated