GALAglobal / translationapi

The API is for anyone who wants to adopt best practices for a translation services API to interact with counterparts directly from your application or content management system. The API helps ensure interoperability for the most common tasks.
https://translate.taus.net/translate/taus-translation-api
MIT License
12 stars 3 forks source link

Content type of "source" and "target" limited to plain text #1

Open achimr opened 10 years ago

achimr commented 10 years ago

The v2.0 specification defines the "source" and "target" parameters in the translation request as "Text is interpreted as plain text.". This under specifies whether the plain text could contain inline markup and in which format the inline markup would be. Such under specification can create issues between different implementers of the API. An option would be to add a contentType field like in the Translate method of the Microsoft Translator API: http://msdn.microsoft.com/en-us/library/ff512421.aspx