PHP Trasnlate HTML page using google translate
- by John Jones
Afternoon,
Bit of a tricky question this one, I have a website and need to translate the pages into french, I am using google translate API to do the translation. What I am doing is loading in the HTML templates into a string using PHP and then need to translate the text copy on the pages and then save as for example:
fr_master_header.html
de_master_header.html
The problem I have is identifying the text copy on the page ignoring the HTML, replacing the copy in the extact place and then saving the file with the HTML tags and trasnlated text copy.
Cheers in advanced.