Thanks, I'm interested in trying to pull the language that an html document is in because I'm trying to write a script that will a) pull the language, b) pull the current URL (I'm currently doing this with PHP), and c) feed it to a translate engine, such as Google Translate. Would I have to deal with the language attribute through PHP as well? — 7777 over 8 years ago

Where are the documents? locally? or are you getting them from the web? have you looked at the google translate API - that seems to do the get text, see what language it is, translate it, all on the fly using Javascript.
http://code.google.com/apis/ajaxlanguage/ — Tony Crockford over 8 years ago

I'm trying to include it as part of a Wordpress theme I'm developing. I've looked through the source code, but it doesn't look like WP includes that in the html tags. So the Google API is probably a good place for me to start looking for solutions, thanks :-) — 7777 over 8 years ago

Oh I should also add that I'm hoping to find a solution that doesn't involve AJAX/Javascript but I'm not sure if there is one yet. — 7777 over 8 years ago