Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I had a website written in Chinese but works using English PHP language. I wish to translate it to Spanish, but when I try it in Google Translate, it translates the entire file to Spanish, including the English PHP language source code. How can I only translate the Chinese content inside the file?

share|improve this question
Why do you send the source file to GT, not the PHP output? – toscho Jun 13 '13 at 10:26

You need to separate the text you want to translate from the code. Google Translate can't do that for you. It simply tries to translate all of the text given to it.

(How to put your application together so that it's easier to translate the text of it into different languages is beyond the scope of this site.)

share|improve this answer

In the box on the left type the web address or drag and drop the address on to the page.

I just did it from English to Chinese for two different websites.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.