我有一个用asp.net设计的网页,我正在使用Google网站翻译小工具将我的整个网页翻译成不同的languages.But,我的一些页面只需要网页的一部分作为translated.for示例,在我的网页中我显示了一个列表框control.Now,我只想翻译列表框的内容。
这与Google网站翻译Gadget有可能吗?
请指导我一个摆脱这个问题的方法?
发布于 2016-06-09 00:42:40
是的,使用class="notranslate"
。
它适用于我:
<body>
<span class="notranslate">
content...
</span>
<select>
<option value="1">One</option>
<option value="2">Two</option>
</select>
<span class="notranslate">
other content...
</span>
</body>
在本例中,"content...
“和"other content...
”将不被翻译,选中框中的"One
“和"Two
”将被翻译。
结果:
<body>
<span class="notranslate">
content...
</span>
<select>
<option value="1">یک</option>
<option value="2">دو</option>
</select>
<span class="notranslate">
other content...
</span>
</body>
https://stackoverflow.com/questions/17447429
复制相似问题