zeeshanhashmi — 2013-06-22T17:45:15-04:00 — #1
I want to get the language of a page. I know what are W3C recommendations for this and that this can be done by reading the source and parsing the HTML and META and XHTML tags.
But the issue is, that many sites do not follow the W3C standards and therefore, they do not have any meta information about the language. In such cases, is there a free API or something that I can use to get the langauge of a website ?
fretburner — 2013-06-25T05:41:50-04:00 — #2
Google allow you to use their translation API to do this sort of thing, but I couldn't see a free option on the [web site. An alternative you could try is the [URL="http://detectlanguage.com/"]Language Detection API](https://developers.google.com/translate/v2/pricing) site, which does have a free option, and they provide a client library for PHP.
zeeshanhashmi — 2013-06-30T01:58:31-04:00 — #3
Thank you ! I will try the other link you provided.