English
open-tran

Translating Single Phrases

  1. You can add a search engine (check out suggested translations) to any modern web browser.
    Open Search
  2. It's not a secret that the search form enters a URL of the following format: http://xx.open-tran.eu/suggest/search engine.
  3. Firefox users may add a bookmark with a keyword. In order to do this one needs to open the "Organize Bookmarks" window from the "Bookmarks" menu and add a new one as follows:

    screenshot

    Now, entering a URL of the form tran phrase will automatically submit a search query.

XML RPC

You can use this service with any program that is capable of calling a remote procedure via the XML RPC protocol. You should use the method suggest, which takes two arguments: a phrase to be translated and a destination language code.

In Python, you can use it in the following way:

      from xmlrpclib import ServerProxy

      lang = "pt_BR" # replace with your language code
      server = ServerProxy("http://open-tran.eu/RPC2")
      for sugg in server.suggest("save as", lang):
          print sugg
    

I will try to upload a simple .po editor soon that will be able to fetch suggestions from the server using this mechanism.