1

I use Microsoft Translator widget on my site, and it generally works. However, some items on my page are not translated:

Item1

<asp:FileUpload />, which becomes:
<input type="file" />, which is displayed as untranslated English:
* Chrome: "Choose a File..." | No file chosen
* IE: Browse...
I guess this one depends on the browser's display language.

Item2

<asp:Button Text="Submit something", which becomes:
<input (...) type="submit" value="Submit something",
in which "Submit something" is not translated.

Is there any way I can get Microsoft Translator to translate these? I guess I could do the widget's work, call MT API myself and update the value (in the second case), but I'd really rather not.

4

1 回答 1

1

微软翻译仅支持<Button id="Button1" runat="server">My Button</ Button>翻译。它不会翻译输入 type=button、asp:Button 或 telerik:Button 或任何其他风格的按钮,即您没有将按钮的文本放在标签之间。看看这篇文章。

http://social.msdn.microsoft.com/Forums/en-US/a840884b-4efe-4cd4-a598-0ca81842404c/widget-does-not-translate-button-text

我一直在寻找与您类似的解决方案,但我一无所获。

因此,除了将所有按钮更改为这种类型之外,我假设我们需要使用 api 来进行翻译。

于 2013-08-21T20:27:22.003 回答