Html Extraction For Language Translation
Posted: Thu Oct 21, 2010 5:29 pm
Here's the situation we have language strings in our database mixed with html.
We need to be able to extract the language from between the tags, and present them to the translator for translation.
Then before we save the new translation content, replace the old language strings with new language strings.
Whatever this extraction tool is, it has to replace the original language with the new language and save it without modifying the tags already there.
I've tried DOM but it's a bit fickle and alters the HTML. Does anyone have a suggestion for a library that could be of use here?
Or a whole different approach, that'd be great.
We need to be able to extract the language from between the tags, and present them to the translator for translation.
Then before we save the new translation content, replace the old language strings with new language strings.
Whatever this extraction tool is, it has to replace the original language with the new language and save it without modifying the tags already there.
I've tried DOM but it's a bit fickle and alters the HTML. Does anyone have a suggestion for a library that could be of use here?
Or a whole different approach, that'd be great.