Google Translate: do not translate HTML tags <br>

Asked

Viewed 888 times

0

I am using the Google translator to do sets of translations of HTML documents in Portuguese into English. Is there any way to teach Google to realize that HTML tags are not meant to be translated? This without using a Google account to fix all cases individually (I am not using the Paid API)...

I leave the example: https://translate.google.com/#pt/en/%3Cbr%3E

The tag <br> is directly translated to Filmography for some reason in almost every case (<br><br> leaves a <br>)... tag <code><br></code> traduzida para Filmography

  • 1

    Very strange...

  • If you are an "API" to do this, then you can use DOM manipulation to pick up the texts only, translate them and then subsist the originals by the translated ones

  • @Guilhermenascimento right, I’m already resorting to substitutions... But it would be much simpler not to have to do it, the tags I am using are quite short, but they are all replaced (capitalized or spaced out) and frankly it is a bit absurd (since they are not valid words in any human language)...

  • 1

    I understand the nonsense, I just gave a suggestion how to get around the problem

  • 1

    Another thing, about the <br> appear the word Filmography is due to google-translator being a community tool, IE, users like me and you can give suggestions for better translations and sometimes such suggestions appear to other users and they end up "accepting", because sometimes when translating long texts barely realize the flaws, note that many users know only one language, hardly realize the error, a situation that shows a "dirty" collaboration was this: ...

  • ... http://dailypicksandflicks.com/wp-content/uploads/2012/04/pikachu-batman-google-translate-from-filipino-tagalog-to-english.jpg

  • @Guilhermenascimento Very good... Well, thanks for the clarification! Really has logic.

Show 2 more comments
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.