http://api.microsofttranslator.com/V2
http://api.microsofttranslator.com/V2 / AddTranslation Element
In This Topic
    AddTranslation Element
    In This Topic
    Namespace http://api.microsofttranslator.com/V2
    Diagram
    uri Element user Element category Element contentType Element rating Element to Element from Element translatedText Element originalText Element appId Element Sequence AddTranslation Element
    Overview
    Sequence
    appId optional xs:string
    A string containing "Bearer" + " " + access token.
    originalText optional xs:string
    A string containing the text to translate from. The string has a maximum length of 1000 characters.
    translatedText optional xs:string
    A string containing translated text in the target language. The string has a maximum length of 2000 characters.
    from optional xs:string
    A string containing the language code of the source language. Must be a valid culture name.
    to optional xs:string
    A string containing the language code of the target language. Must be a valid culture name.
    rating optional xs:int
    An int representing the quality rating for this string. Value between -10 and 10. Defaults to 1.
    contentType optional xs:string
    The format of the text being translated. The supported formats are "text/plain" and "text/html". Any HTML needs to be well-formed.
    category optional xs:string
    A string containing the category (domain) of the translation. Defaults to "general".
    user optional xs:string
    A string used to track the originator of the submission.
    uri optional xs:string
    A string containing the content location of this translation.
    Source
    <xs:element name="AddTranslation" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:complexType>
        <xs:sequence>
          <xs:element minOccurs="0" name="appId" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="originalText" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="translatedText" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="from" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="to" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="rating" type="xs:int" />
          <xs:element minOccurs="0" name="contentType" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="category" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="user" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="uri" nillable="true" type="xs:string" />
        </xs:sequence>
      </xs:complexType>
    </xs:element>
    See Also