pouncer Posted August 19, 2007 Share Posted August 19, 2007 i use a chat server where we can set iso codes for our rooms, so en-gb is English great britain but how do i set other languages like french, or spanish or something, the format must be like xx-yy Quote Link to comment https://forums.phpfreaks.com/topic/65674-iso-codes/ Share on other sites More sharing options...
Daniel0 Posted August 19, 2007 Share Posted August 19, 2007 Are you looking for the ISO 639-1 codes? Quote Link to comment https://forums.phpfreaks.com/topic/65674-iso-codes/#findComment-328044 Share on other sites More sharing options...
pouncer Posted August 19, 2007 Author Share Posted August 19, 2007 Thanks but theres something i don't understand en-gb that means, english-great britain? so we specfiy like this? language-country so is it possible to have fr-gb french/great britain? i'm a bit confused about the syntax and stuff guys! Quote Link to comment https://forums.phpfreaks.com/topic/65674-iso-codes/#findComment-328278 Share on other sites More sharing options...
Daniel0 Posted August 19, 2007 Share Posted August 19, 2007 No, there is no such thing as fr-gb or es-de or ja-fr or whatever... Or perhaps you're looking for the IETF language code and not ISO? It has the syntax you are requesting... first a required ISO-639(-1) language code optionally followed by a dash and a ISO-3166 country code. It's mentioned in RFC 2612 Section 3.10 Language Tags and in the HTML specification. Quote Link to comment https://forums.phpfreaks.com/topic/65674-iso-codes/#findComment-328293 Share on other sites More sharing options...
neylitalo Posted August 20, 2007 Share Posted August 20, 2007 Thanks but theres something i don't understand en-gb that means, english-great britain? so we specfiy like this? language-country so is it possible to have fr-gb french/great britain? i'm a bit confused about the syntax and stuff guys! When you have a ISO code xx-yy, the first two are the abbreviation for the name of the language, and the second two is an abbreviation for the country that particular dialect is used in. In the case of English, there's en-us and en-gb, since they're two different "forms" of the English language, one in the US and one in Great Britain. Quote Link to comment https://forums.phpfreaks.com/topic/65674-iso-codes/#findComment-328581 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.