简体   繁体   中英

Using Google Translate API in Python, how do you indicate that some text is not to be translated?

Using Google Translate API in Python, how do you indicate that some text is not to be translated? The text I have includes variable names eg $name$ that should be left as is. I've tried wrapping these in quotes and angled brackets, but no success so far.

I just found something:

This contains <span class="notranslate">$code$</span>, which will be skipped.

Related:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM