
tran phrase will
automatically submit a search query.
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.