翻译
数组请求中的"类别"属性是预定义的列表还是在请求期间打开以指定?
<TranslateArrayRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<AppId xsi:nil="true" />
<From>en</From>
<Options>
<Category xmlns="http://schemas.datacontract.org/2004/07/Microsoft.MT.Web.Service.V2">pets</Category>
<State>0</State>
</Options>
<Texts>
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">dog</string>
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">cat</string>
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/Arrays">fish</string>
</Texts>
<To>fr</To>
</TranslateArrayRequest>
生成以下响应:
<html>
<body>
<h1>Argument Exception</h1>
<p>Method: TranslateArray()</p>
<p>Parameter: category</p>
<p>Message: Invalid category
Parameter name: category</p>
<code></code>
<p>message id=0243.V2_Rest.TranslateArray.148495FA</p>
</body>
</html>
API 文档中的定义:
类别:包含 译本。默认为常规
但是如果这不是自定义字段,目前还不清楚还有哪些其他类别?
重复但重新发布评论中的回复,以防搜索显示某人:
农业动物艺术与娱乐汽车美商化学药品服装习惯教育电子学能源、水和公用事业财务美术食物地理学、人类学政府医疗历史家居与园艺互联网语言法律文献药军事科学音乐哲学政治学参考宗教科学购物社会科学社会与文化体育科技电信