Community
Participate
Working Groups
I think it would be great to provide translations through a REST API as well for integration into clients (or other Babel installations scavenging the Babel resources). I think the REST API could be something like this: http://babel.eclipse.org/babel/query.php?nl=iso_code&string=string The API should return the first available translation (for now, we can do a fancy JSON array of all the translations for one english string later) as a plain text response.
This bug represents half of the work needed for 223036.
Created attachment 118243 [details] A first naive patch Here is a first naive patch that needs testing.
Committed to staging by mistake along with the fix for 241055.
Committed a small change to fix the page initialization. At this time things look good. Try it out with this simple string: http://babel.eclipse.org/staging/query.php?nl=fr&string=Synonym
Marking as fixed. Please reopen if you want more of it.
Thanks. Do we have a link to this from the Server tool? Or should we start a Babel doc page on the Wiki?
(In reply to comment #6) > Thanks. Do we have a link to this from the Server tool? Or should we start a > Babel doc page on the Wiki? > We have no doc for this. I will do one.
Fixed. I opened a page for the server API: http://wiki.eclipse.org/Babel_/_Server_Tool_API
Cool!