I18n website and URL prefix iso639

Posted by trante on Pro Webmasters See other posts from Pro Webmasters or by trante
Published on 2014-04-23T06:46:19Z Indexed on 2014/08/23 22:36 UTC
Read the original article Hit count: 216

Filed under:

I'm adding i18n to my website. For translated pages I add iso639 code of the language like this:

http://example.com/en/mypage.php

But I'm curious about language code. Should I use iso639-1 (en) or iso639-2 (eng) code ? http://en.wikipedia.org/wiki/ISO_639#Relations_between_the_parts

When I check, I see that most of the websites including Wikipedia, uses 2 character language code ? What is the standart or most widely used option for language codes ?

© Pro Webmasters or respective owner

Related posts about internationalization