After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 506469 - http://www.open-tran.eu/ integration
http://www.open-tran.eu/ integration
Status: RESOLVED FIXED
Product: gtranslator
Classification: Other
Component: general
HEAD
Other All
: Normal enhancement
: 2.0
Assigned To: Ignacio Casal Quinteiro (nacho)
gtranslator-maint
Depends on:
Blocks:
 
 
Reported: 2007-12-30 20:26 UTC by Deniz Koçak
Modified: 2008-01-21 20:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Example of client connection to open-tran server (1.92 KB, text/plain)
2007-12-30 23:07 UTC, Ignacio Casal Quinteiro (nacho)
  Details
libsoup implementation (2.83 KB, text/plain)
2008-01-02 22:56 UTC, Ignacio Casal Quinteiro (nacho)
  Details
open-tran patch (3.02 KB, patch)
2008-01-04 11:44 UTC, Ignacio Casal Quinteiro (nacho)
none Details | Review
open-tran plugin (23.22 KB, application/x-compressed-tar)
2008-01-04 11:47 UTC, Ignacio Casal Quinteiro (nacho)
  Details
open-tran plugin (23.30 KB, application/x-compressed-tar)
2008-01-05 12:06 UTC, Ignacio Casal Quinteiro (nacho)
  Details
open-tran plugin (26.14 KB, application/x-compressed-tar)
2008-01-05 16:26 UTC, Ignacio Casal Quinteiro (nacho)
  Details
Mozilla logo free to use (580 bytes, image/png)
2008-01-05 17:15 UTC, Jacek Sliwerski
  Details
Debian logo - free to use (357 bytes, image/png)
2008-01-05 17:15 UTC, Jacek Sliwerski
  Details
open-tran plugin (28.49 KB, application/x-compressed-tar)
2008-01-05 23:02 UTC, Ignacio Casal Quinteiro (nacho)
  Details
open-tran plugin (29.87 KB, application/x-compressed-tar)
2008-01-06 21:25 UTC, Ignacio Casal Quinteiro (nacho)
  Details

Description Deniz Koçak 2007-12-30 20:26:15 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.
Comment 1 Ignacio Casal Quinteiro (nacho) 2007-12-30 20:52:18 UTC
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"

Comment 2 Ignacio Casal Quinteiro (nacho) 2007-12-30 23:07:31 UTC
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.
Comment 3 Ignacio Casal Quinteiro (nacho) 2008-01-02 22:56:48 UTC
Created attachment 102021 [details]
libsoup implementation

Another example implemented with libsoup.
Comment 4 Ignacio Casal Quinteiro (nacho) 2008-01-04 11:44:56 UTC
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.
Comment 5 Ignacio Casal Quinteiro (nacho) 2008-01-04 11:47:44 UTC
Created attachment 102101 [details]
open-tran plugin

This is the plugin that has to be added to src folder.
Comment 6 Ignacio Casal Quinteiro (nacho) 2008-01-04 11:50:25 UTC
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.
Comment 7 Ignacio Casal Quinteiro (nacho) 2008-01-05 12:06:21 UTC
Created attachment 102206 [details]
open-tran plugin

What do you think now Deniz?
Comment 8 Jacek Sliwerski 2008-01-05 12:22:31 UTC
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
Comment 9 Ignacio Casal Quinteiro (nacho) 2008-01-05 12:30:30 UTC
That really help.

Thanks a lot Jacek.
Comment 10 Ignacio Casal Quinteiro (nacho) 2008-01-05 16:26:19 UTC
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.
Comment 11 Jacek Sliwerski 2008-01-05 17:15:12 UTC
Created attachment 102218 [details]
Mozilla logo free to use
Comment 12 Jacek Sliwerski 2008-01-05 17:15:44 UTC
Created attachment 102219 [details]
Debian logo - free to use
Comment 13 Ignacio Casal Quinteiro (nacho) 2008-01-05 19:22:21 UTC
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
Comment 14 Jacek Sliwerski 2008-01-05 21:26:13 UTC
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).
Comment 15 Ignacio Casal Quinteiro (nacho) 2008-01-05 23:02:16 UTC
Created attachment 102240 [details]
open-tran plugin

I think that now it is pretty cool.
Enjoy it.
Comment 16 Ignacio Casal Quinteiro (nacho) 2008-01-06 21:25:12 UTC
Created attachment 102287 [details]
open-tran plugin

Minor fixes.
Comment 17 Ignacio Casal Quinteiro (nacho) 2008-01-21 20:50:31 UTC
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.