Translation Service 翻訳サービス خدمة الترجمة Сервис Переводов Übersetzungsservice שרותי תרגום Service de Traduction Servicio de Traducción Servizio di traduzioni Serviço de Tradução Vertaalservice Υπηρεσία Μετάφρασης
Welcome Login | Register
View product registrations View information about the subscriptions you own and update payment information for ongoing subscribtions. Learn More

Content Formats (API)

Following are the content formats that are supported by OneHourTranslation™ Remote API and may be submitted as the project's content when creating a new project.

Plain Text

The most simple, straightforward method of submitting text for translation is just by submitting the text itself. The text will be received as-is and will not be parsed or processed in any way.
Once translated, the translation will be submitted to the customer as plain text as well.

We will automatically detect if you send plain text. However, we still recommend setting the 'content_type' field to 'text/plain' on the original request as proposed here.

XML

For translating complex and parameterized content we recommend using XML formatted text.
Following are some guidelines regarding XML translation:

  1. We accept any XML format you submit and translate only the texts within the XML tags. Tags and tags' attributes are not translated.
  2. The translated XML will maintain the same format and hierarchy of the original XML.
  3. For maximum efficiency and compatibility, submitted XML should be well formed. If your XML contains non-standard or XML-reserved characters, we encourage you to wrap it with CDATA notation.
  4. You may also submit HTML for translation. The best way to do so is to wrap it inside a XML CDATA element and add a ' type="text/html" ' attribute to the containing element. Please see below examples for HTML formatting.
  5. We will automatically detect if you send XML text. However, we still recommend setting the 'content_type' field to 'text/xml' on the original request as proposed here.

Examples:

The following demonstrate a simple XML document:

<forum> <thread t_id="1"> <item item_id="1"> <title>Hello world</title> <author>David</author> <description>This is my first post.</description> </item> <item item_id="2"> <title>Re: Hello world</title> <author>Sarah</author> <description>Hi David, Welcome to our forum!</description> </item> </thread> </forum>

We encourage wrapping translatable text with CDATA notation, to ensure correct parsing of your XML on OneHourTranslation™ as well as parsing the translated XML on your side:

<forum> <thread t_id="1"> <item item_id="1"> <title><![CDATA[Hello world]]></title> <author><![CDATA[David]]></author> <description><![CDATA[This is my first post.]]></description> </item> <item item_id="2"> <title><![CDATA[Re: Hello world]]></title> <author><![CDATA[Sarah]]></author> <description><![CDATA[Hi David, Welcome to our forum!]]></description> </item> </thread> </forum>

To submit HTML, we recommend using the following format:

<forum> <thread t_id="1"> <item item_id="1"> <title><![CDATA[Hello world]]></title> <author><![CDATA[David]]></author> <description type="text/html" ><![CDATA[This is my first post.]]></description> </item> <item item_id="2"> <title><![CDATA[Re: Hello world]]></title> <author><![CDATA[Sarah]]></author> <description type="text/html"><![CDATA[ Hi <b>David</b>, Welcome to our forum! <br /> We would like to refer you to our <a href="http://example.com/terms">terms and conditions</a><br /> Please follow those guidelines:<br /> <ol> <li>Always be polite.</li> <li>Be patient.</li> </ol> ]]></description> </item> </thread> </forum>

One Hour Translation provides professional, fast and affordable human translation services, available 24/7.

Our community of over 10000 professional certified translators around the world guarantee you will get high quality translation FAST!
One Hour Translation is the leading web-based Professional Translation Agency.
All rights reserved. © 2008-2014 OneHourTranslation™