GNOME Bugzilla – Bug 506469
http://www.open-tran.eu/ integration
Last modified: 2008-01-21 20:50:31 UTC
A query section which can search a given string on open-tran.eu in predefined language(s) and show the results to the user. This feature can be implemented in a different way. For example selecting a string in the translation window and then right clicking to query this string on open-tran.eu (there would be an option in the right click menu). It can save time and supply a shortcut for a frequently used service by translators.
I like this idea, but i think we need to implement it as a search engine too and after that make the right click menu. I have some things neccesaries to use: URL-> "http://open-tran.eu/RPC2" command-> "suggest"
Created attachment 101873 [details] Example of client connection to open-tran server This just an example of how to connect to the open-tran server and get some suggestions with xmlrpc-c library.
Created attachment 102021 [details] libsoup implementation Another example implemented with libsoup.
Created attachment 102099 [details] [review] open-tran patch This patch is only to for configure.ac and Makefile patching. Next attach is for open-tran.
Created attachment 102101 [details] open-tran plugin This is the plugin that has to be added to src folder.
For the moment i couldn't get the type of the message (Gnome, kde, etc) I don't know why but i just get the number, the string and i get another int that i don't know for what it is, but i think that if that number is not what i want because it should be the ascii number of G, K ... and it is not.
Created attachment 102206 [details] open-tran plugin What do you think now Deniz?
Server sends back a result in the following form: * count: integer * text: string * value: integer * projects: list * path: string * original phrase: string Identical translations are grouped together as one suggestion - the 'count' tells you, how many of them there are. The value indicates, how good the result is - the lower, the better. And the list contains pairs: path and original phrase. As an example consider a call: suggest("save", "pl"). As a result, we get a list of elements: * count: 23 * text: Zapisz * value: 1 * projects[1]: * path: K/kdebase/kcmcolors.po * original phrase: Save * projects[3]: * path: M/editor/ui/chrome/composer/editor.properties.po * original phrase: Save * projects[9]: * path: G/anjuta/oc.po * original phrase: Save I hope, this helps. Jacek
That really help. Thanks a lot Jacek.
Created attachment 102215 [details] open-tran plugin Now it detect what kind of message it is (Gnome, Kde...) I just add only Gnome and Kde icons, if anybody wants is free to attach the missing icons.
Created attachment 102218 [details] Mozilla logo free to use
Created attachment 102219 [details] Debian logo - free to use
Thanks a lot for the icons Jacek, but i have to resquest you another one. Do you have another icon for open-tran? I mean, as you can see in this screenshot I use one icon for any plugin and i would like to have one for open-tran. http://bp3.blogger.com/_d2pc0IsKLgw/R3-0VJuOzkI/AAAAAAAAADM/9Cnk-HlUo9M/s1600-h/Captura+de+pantalla-Gtranslator.png
I'd like to have an icon for Open-Tran as well ;) Unfortunately, I have no talent to make any nice-looking images or design (which is also easy to see on the open-tran site). However, a logo has been contributed by someone else - you may find it here: http://babelwiki.babelzilla.org/index.php?title=Open-Tran I don't use it in the website, because it doesn't scale well (the letters are too small).
Created attachment 102240 [details] open-tran plugin I think that now it is pretty cool. Enjoy it.
Created attachment 102287 [details] open-tran plugin Minor fixes.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.