Reply Mon 10 Mar, 2003 01:57 pm
Just a list for reference of language abbreviations.

Afrikaans = af
Albanian = sq
Arabic (Algeria) = ar-dz
Arabic (Bahrain) = ar-bh
Arabic (Egypt) = ar-eg
Arabic (Iraq) = ar-iq
Arabic (Jordan) = ar-jo
Arabic (Kuwait) = ar-kw
Arabic (Lebanon) = ar-lb
Arabic (libya) = ar-ly
Arabic (Morocco) = ar-ma
Arabic (Oman) = ar-om
Arabic (Qatar) = ar-qa
Arabic (Saudi Arabia) = ar-sa
Arabic (Syria) = ar-sy
Arabic (Tunisia) = ar-tn
Arabic (U.A.E.) = ar-ae
Arabic (Yemen) = ar-ye
Arabic = ar
Armenian = hy
Assamese = as
Azeri (Cyrillic) = az
Azeri (Latin) = az
Basque = eu
Belarusian = be
Bengali = bn
Bulgarian = bg
Catalan = ca
Chinese (China) = zh-cn
Chinese (Hong Kong SAR) = zh-hk
Chinese (Macau SAR) = zh-mo
Chinese (Singapore) = zh-sg
Chinese (Taiwan) = zh-tw
Chinese = zh
Croatian = hr
Chech = cs
Danish = da
Divehi = div
Dutch (Belgium) = nl-be
Dutch (Netherlands) = nl
English (Australia) = en-au
English (Belize) = en-bz
English (Canada) = en-ca
English (Caribbean) = en
English (Ireland) = en-ie
English (Jamaica) = en-jm
English (New Zealand) = en-nz
English (Philippines) = en-ph
English (South Africa) = en-za
English (Trinidad) = en-tt
English (United Kingdom) = en-gb
English (United States) = en-us
English (Zimbabwe) = en-zw
English = en
Estonian = et
Faeroese = fo
Farsi = fa
Finnish = fi
French (Belgium) = fr-be
French (Canada) = fr-ca
French (France) = fr
French (Luxembourg) = fr-lu
French (Monaco) = fr-mc
French (Switzerland) = fr-ch
FYRO Macedonian = mk
Gaelic = gd
Georgian = ka
German (Austria) = de-at
German (Germany) = de
German (Liechtenstein) = de-li
German (lexumbourg) = de-lu
German (Switzerland) = de-ch
Greek = el
Gujarati = gu
Hebrew = he
Hindi = hi
Hungarian = hu
Icelandic = is
Indonesian = id
Italian (Italy) = it
Italian (Switzerland) = it-ch
Japanese = ja
Kannada = kn
Kazakh = kk
Konkani = kok
Korean = ko
Kyrgyz = kz
Latvian = lv
Lithuanian = lt
Malay (Brunei) = ms
Malay (Malaysia) = ms
Malayalam = ml
Maltese = mt
Marathi = mr
Mongolian (Cyrillic) = mn
Nepali (India) = ne
Norwegian (Bokmal) = nb-no
Norwegian (Bokmal) = no
Norwegian (Nynorsk) = nn-no
Oriya = or
Polish = pl
Portuguese (Brazil) = pt-br
Portuguese (Portugal) = pt
Punjabi = pa
Rhaeto-Romanic = rm
Romanian (Moldova) = ro-md
Romanian = ro
Russian (Moldova) = ru-md
Russian = ru
Sanskrit = sa
Serbian (Cyrillic) = sr
Serbian (Latin) = sr
Slovak = sk
Slovenian = ls
Sorbian = sb
Spanish (Argentina) = es-ar
Spanish (Bolivia) = es-bo
Spanish (Chile) = es-cl
Spanish (Colombia) = es-co
Spanish (Costa Rica) = es-cr
Spanish (Dominican Republic) = es-do
Spanish (Ecuador) = es-ec
Spanish (El Salvador) = es-sv
Spanish (Guatemala) = es-gt
Spanish (Honduras) = es-hn
Spanish (International Sort) = es
Spanish (Mexico) = es-mx
Spanish (Nicaragua) = es-ni
Spanish (Panama) = es-pa
Spanish (Paraguay) = es-py
Spanish (Peru) = es-pe
Spanish (Puerto Rico) = es-pr
Spanish (Traditional Sort) = es
Spanish (United States) = es-us
Spanish (Uruguay) = es-uy
Spanish (Venezuela) = es-ve
Sutu = sx
Swahili = sw
Swedish (Finland) = sv-fi
Swedish = sv
Syriac = syr
Tamil = ta
Tatar = tt
Telugu = te
Thai = th
Tsonga = ts
Tswana = tn
Turkish = tr
Ukrainian = uk
Urdu = ur
Uzbek (Cyrillic) = uz
Uzbek (Latin) = uz
Vietnamese = vi
Xhosa = xh
Yiddish = yi
Zulu = zu
  • Topic Stats
  • Top Replies
  • Link/Embed
Type: Discussion • Score: 1 • Views: 4,426 • Replies: 25

 
  1  
Reply Mon 10 Mar, 2003 02:24 pm
Here is a code snippet if you want to redirect using the language:

Code:if (stristr($HTTP_ACCEPT_LANGUAGE, 'de')) {
Header('Location:germanpage.html');
} elseif (stristr($HTTP_ACCEPT_LANGUAGE, 'fr')) {
Header('Location:frenchpage.html');
}


The above code is a PHP example.
0 Replies
 
Post: # 130,261
View Profile satt fs
 
  1  
Reply Mon 10 Mar, 2003 04:11 pm
The next page is for the most recent coutry code elements:

http://www.iso.org/iso/en/prods-services/iso3166ma/02iso-3166-code-lists/list-en1.html

(Most of the locales are defined in the form "language_Country.")
0 Replies
 
  1  
Reply Mon 10 Mar, 2003 06:45 pm
What an utterly fascinating piece of information
that I am quite sure I could NEVER do without,
in this day and age, don't you agree? Every person
should NEVER leave home without this extensive list
of language abbreviation codes, one never can tell
when it will be "just the very thing" that is needed.
0 Replies
 
  1  
Reply Mon 10 Mar, 2003 06:47 pm
Thank you so very, very much, Craven
I can tell you really DO put your heart into
your work... and I can assure you that my
sarcasm is certainly meant to be completely
good natured.
0 Replies
 
Post: # 130,552
View Profile gezzy
 
  1  
Reply Mon 10 Mar, 2003 07:46 pm
Cool Craven. Thanks ;-)
0 Replies
 
Post: # 132,538
View Profile cobalt
 
  1  
Reply Wed 12 Mar, 2003 02:55 am
Craven, you continue to be four steps ahead of me when you are learning your coding and "paying your dues" in time spent online. I swear that my own learning curve is significantly less than would have been when I was in my early 20's. It does help to be single when one is learning to design and code - ya can't get around time and experience and more time and could we get another heapin' helpin' of TIME over here? LOL
0 Replies
 
Post: # 135,771
View Profile sj26
 
  1  
Reply Fri 14 Mar, 2003 04:47 am
Actually, i find this quite relevant, I am looking for a select list-box (or simple a table) of countries-regions-states-cities (etc)... I have been able to download a copy of ISO-3166-1 & 2 & 3 (i think) but they still don't work properly. I have been able to parse the raw files into subsection, but it is very annoying having to look up the names of provinces/regions/states/etc of each country. Is there a complete web-designers/developers list (pre- or post-HTML?)?
0 Replies
 
  1  
Reply Wed 18 Jun, 2003 07:01 pm
Whoa, old question I missed.

sj26, if you ever come by this way again can you explain your request?

I'll then try to take care of it.
0 Replies
 
Post: # 245,945
View Profile mikey
 
  1  
Reply Wed 18 Jun, 2003 07:45 pm
book marking,,,
0 Replies
 
Post: # 246,042
View Profile CodeBorg
 
  1  
Reply Wed 18 Jun, 2003 09:38 pm
Anybody need 78,000 zipcodes? I can get them for ya cheap...

Comes with county and city info, area codes, government zoning code,
population size, and hold on... listen up... exact latitude and longitude!

OH! YES! DATA!

You can calculate the distance between any two towns,
calculate shortest routes,
find all towns within 40 miles of you,
pre-populate city and state fields,
correct city names in your marketting list,
AND exchange data with your GPS.

:-D Hwah! Tell me this isn't a great time to be alive !! :-D
0 Replies
 
Post: # 247,387
View Profile sj26
 
  1  
Reply Fri 20 Jun, 2003 03:33 am
whoa... haven't been here for a while :$

I was after a list of countries, with a sublist of regions (ie states, provinces, etc), and a list under that of cities/towns/etc for a form selector field. I just need a text file or database that links these up. I've heard of some ISOs that do this, but they cost $$$... and I am using them for a non-profit open-source purpose. Any hints would be great Wink
0 Replies
 
Post: # 247,388
View Profile sj26
 
  1  
Reply Fri 20 Jun, 2003 03:33 am
CodeBorg wrote:
Anybody need 78,000 zipcodes? I can get them for ya cheap...

Comes with county and city info, area codes, government zoning code,
population size, and hold on... listen up... exact latitude and longitude!

OH! YES! DATA!

You can calculate the distance between any two towns,
calculate shortest routes,
find all towns within 40 miles of you,
pre-populate city and state fields,
correct city names in your marketting list,
AND exchange data with your GPS.

:-D Hwah! Tell me this isn't a great time to be alive !! :-D


*drool*... that's exactly what I need - but I can't pay, and it would be distributed... Sad
0 Replies
 
  1  
Reply Fri 20 Jun, 2003 02:25 pm
sj26,

A list of all countries that drills down to each state and then each city would make for a forum that would load VERY slowly.

Because of that I do not know of anyone who has put one together (and because of that I'd not be interested in making it).
0 Replies
 
Post: # 299,518
View Profile Monger
 
  1  
Reply Tue 29 Jul, 2003 07:53 pm
Craven de Kere wrote:
Here is a code snippet if you want to redirect using the language:

Code:if (stristr($HTTP_ACCEPT_LANGUAGE, 'de')) {
Header('Location:germanpage.html');
} elseif (stristr($HTTP_ACCEPT_LANGUAGE, 'fr')) {
Header('Location:frenchpage.html');
}


The above code is a PHP example.



Can this be done with Javascript?? This is perfect for one website I'm working on!
0 Replies
 
Post: # 299,527
View Profile Monger
 
  1  
Reply Tue 29 Jul, 2003 07:58 pm
This was posted on the meta refresh thread..

Craven de Kere wrote:
<?php
if (stristr($HTTP_ACCEPT_LANGUAGE, 'ja')) {
Header('Location:japan.html');
} else Header('Location:index.html');
?>


It is exactly what I need, but unfortunately the host I'm gunna use it on doesn't have php installed.
0 Replies
 
  1  
Reply Wed 30 Jul, 2003 01:52 am
The php script can't be converted to javascript but this can still be done. Just remember that since the scrip is now client side you need to work around the browsers. Below is an IE/Netscape script. It probably works with other browsers though and you can see what you'd need to do for more cross compatibility.

It has 3 languages you can determine pages for (one else, two else ifs) and a defaukt page. You can change all of those details easily and have different numbers of languages detected.

Gimme a holler if you need help tweaking it.

Code:<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
if (navigator.appName == 'Netscape')
var language = navigator.language;
else
var language = navigator.browserLanguage;
if (language.indexOf('en') > -1) document.location.href = 'english.html';
else if (language.indexOf('de') > -1) document.location.href = 'german.html';
else if (language.indexOf('it') > -1) document.location.href = 'italian.html';
else
document.location.href = 'defaultpage.html';
// End -->
</script>
0 Replies
 
Post: # 299,804
View Profile Monger
 
  1  
Reply Wed 30 Jul, 2003 04:51 am
Cool. Since the variable to check is different for IE & Netscape, even if by reading Javascript references I'd managed to track down navigator.browserLanguage as the way to check language I'd probably have thought it had no way of working with Netscape.
Useful little script indeed. Thanks mate.

PS: Do you have any good online Javascript references that you recommend which list all Javascript object properties & methods & details & such?
0 Replies
 
  1  
Reply Wed 30 Jul, 2003 05:24 am
I just search. I really don't have any references that I use.

I do have a bunch of javascript code saved all over my computers and I often look there first.
0 Replies
 
  1  
Reply Sat 4 Oct, 2003 03:53 pm
Craven de Kere wrote:
sj26,

A list of all countries that drills down to each state and then each city would make for a forum that would load VERY slowly.

Because of that I do not know of anyone who has put one together (and because of that I'd not be interested in making it).


A possible solution?:
http://arctic.ithium.net/fr1.contact.html

Took me only 3 months to know the world! Very Happy
0 Replies
 
 

Related Topics

I'm the developer - Discussion by Nick Ashley
how to earn money in internet - Discussion by rizwanaraj
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
mod rewrite for a different theme? - Discussion by etali
 
  1. able2know
  2. » language codes
Copyright © 2009 Horizontal Verticals :: Page generated in 0.33 seconds on 11/23/2009 at 10:33:57 Top End