Den Ländernamen des Browsers anzeigen, eine sehr einfache Sache
Autor:Eve Cole
Aktualisierungszeit:2009-06-17 17:11:25
<!-- 把下面代码加到<body>区域中 -->
<SCRIPT LANGUAGE="JavaScript">
<!-- Beginnen
if (navigator.browserLanguage.substr(0,2) == "af")
document.write('Afrikaans')
else if (navigator.browserLanguage.substr(0,2) == "ar")
{
if (navigator.browserLanguage.substr(3,2) == "ae")
document.write('Arabisch / Vereinigte Arabische Emirate')
else if (navigator.browserLanguage.substr(3,2) == "bh")
document.write('Arabisch / Bahrain')
else if (navigator.browserLanguage.substr(3,2) == "eg")
document.write('Arabisch / Ägypten')
else if (navigator.browserLanguage.substr(3,2) == "dz")
document.write('Arabisch / Algerien')
else if (navigator.browserLanguage.substr(3,2) == "iq")
document.write('Arabisch / Irak')
else if (navigator.browserLanguage.substr(3,2) == "jo")
document.write('Arabisch / Jordanien')
else if (navigator.browserLanguage.substr(3,2) == "kw")
document.write('Arabisch / Kuwait')
else if (navigator.browserLanguage.substr(3,2) == "lb")
document.write('Arabisch / Libanon')
else if (navigator.browserLanguage.substr(3,2) == "ly")
document.write('Arabisch / Libyen')
else if (navigator.browserLanguage.substr(3,2) == "ma")
document.write('Arabisch / Marokko')
else if (navigator.browserLanguage.substr(3,2) == "om")
document.write('Arabisch / Oman')
else if (navigator.browserLanguage.substr(3,2) == "qa")
document.write('Arabisch / Katar')
else if (navigator.browserLanguage.substr(3,2) == "sa")
document.write('Arabisch / Saudi-Arabien')
else if (navigator.browserLanguage.substr(3,2) == "sy")
document.write('Arabisch / Syrien')
else if (navigator.browserLanguage.substr(3,2) == "tn")
document.write('Arabisch / Tunesien')
else if (navigator.browserLanguage.substr(3,2) == "ye")
document.write('Arabisch / Jemen')
sonst document.write('Arabisch')
}
else if (navigator.browserLanguage.substr(0,2) == "be")
document.write('Belarusian')
else if (navigator.browserLanguage.substr(0,2) == "bg")
document.write('Bulgarisch')
else if (navigator.browserLanguage.substr(0,2) == "ca")
document.write('Katalanisch')
else if (navigator.browserLanguage.substr(0,2) == "cs")
document.write('Tschechisch')
else if (navigator.browserLanguage.substr(0,2) == "da")
document.write('Dänisch')
else if (navigator.browserLanguage.substr(0,2) == "de")
{
if (navigator.browserLanguage.substr(3,2) == "at")
document.write('Deutsch / Österreich')
else if (navigator.browserLanguage.substr(3,2) == "ch")
document.write('Deutsch / Schweiz')
else if (navigator.browserLanguage.substr(3,2) == "li")
document.write('Deutsch / Liechtenstein')
else if (navigator.browserLanguage.substr(3,2) == "lu")
document.write('Deutsch / Luxemburg')
else document.write('Deutsch / Deutschland')
}
else if (navigator.browserLanguage.substr(0,2) == "el")
document.write('Griechisch / Griechenland')
else if (navigator.browserLanguage.substr(0,2) == "en")
{
if (navigator.browserLanguage.substr(3,2) == "us")
document.write('Englisch / Vereinigte Staaten')
else if (navigator.browserLanguage.substr(3,2) == "au")
document.write('Englisch / Australien')
else if (navigator.browserLanguage.substr(3,2) == "bz")
document.write('Englisch / Belize')
else if (navigator.browserLanguage.substr(3,2) == "ca")
document.write('Englisch / Kanada')
else if (navigator.browserLanguage.substr(3,2) == "gb")
document.write('Englisch / Großbritannien')
else if (navigator.browserLanguage.substr(3,2) == "ie")
document.write('Englisch / Irland')
else if (navigator.browserLanguage.substr(3,2) == "jm")
document.write('Englisch / Jamaika')
else if (navigator.browserLanguage.substr(3,2) == "nz")
document.write('Englisch / Neuseeland')
else if (navigator.browserLanguage.substr(3,2) == "tt")
document.write('Englisch / Trinidad')
else if (navigator.browserLanguage.substr(3,2) == "za")
document.write('Englisch / Südafrika')
sonst document.write('English')
}
else if (navigator.browserLanguage.substr(0,2) == "es")
{
if (navigator.browserLanguage.substr(3,2) == "ar")
document.write('Spanisch / Argentinien')
else if (navigator.browserLanguage.substr(3,2) == "bo")
document.write('Spanisch / Bolivien')
else if (navigator.browserLanguage.substr(3,2) == "cl")
document.write('Spanisch / Chile')
else if (navigator.browserLanguage.substr(3,2) == "co")
document.write('Spanisch / Kolumbien')
else if (navigator.browserLanguage.substr(3,2) == "cr")
document.write('Spanisch / Costa Rica')
else if (navigator.browserLanguage.substr(3,2) == "do")
document.write('Spanisch / Dominikanische Republik')
else if (navigator.browserLanguage.substr(3,2) == "ec")
document.write('Spanisch / Ecuador')
else if (navigator.browserLanguage.substr(3,2) == "gt")
document.write('Spanisch / Guatemala')
else if (navigator.browserLanguage.substr(3,2) == "hn")
document.write('Spanisch / Honduras')
else if (navigator.browserLanguage.substr(3,2) == "mx")
document.write('Spanisch / Mexiko')
else if (navigator.browserLanguage.substr(3,2) == "ni")
document.write('Spanisch / Nicaragua')
else if (navigator.browserLanguage.substr(3,2) == "pa")
document.write('Spanisch / Panama')
else if (navigator.browserLanguage.substr(3,2) == "pe")
document.write('Spanisch / Peru')
else if (navigator.browserLanguage.substr(3,2) == "pr")
document.write('Spanisch / Puerto Rico')
else if (navigator.browserLanguage.substr(3,2) == "py")
document.write('Spanisch / Paraguay')
else if (navigator.browserLanguage.substr(3,2) == "sv")
document.write('Spanisch / El Salvador')
else if (navigator.browserLanguage.substr(3,2) == "uy")
document.write('Spanisch / Uruguay')
else if (navigator.browserLanguage.substr(3,2) == "ve")
document.write('Spanisch / Venezuela')
else document.write('Spanisch / Spanien')
}
else if (navigator.browserLanguage.substr(0,2) == "et")
document.write('Estnisch')
else if (navigator.browserLanguage.substr(0,2) == "eu")
document.write('Baskisch')
else if (navigator.browserLanguage.substr(0,2) == "fa")
document.write('Farsi')
else if (navigator.browserLanguage.substr(0,2) == "fi")
document.write('Finnisch')
else if (navigator.browserLanguage.substr(0,2) == "fo")
document.write('Färöisch')
else if (navigator.browserLanguage.substr(0,2) == "fr")
{
if (navigator.browserLanguage.substr(3,2) == "be")
document.write('Französisch / Belgien')
else if (navigator.browserLanguage.substr(3,2) == "ca")
document.write('Französisch / Kanada')
else if (navigator.browserLanguage.substr(3,2) == "ch")
document.write('Französisch / Schweiz')
else if (navigator.browserLanguage.substr(3,2) == "ca")
document.write('Französisch / Luxemburg')
else document.write('Französisch / Frankreich')
}
else if (navigator.browserLanguage.substr(0,2) == "gd")
{
if (navigator.browserLanguage.substr(3,2) == "ie")
document.write('Gälisch / Irland')
else document.write('Gälisch / Schottland')
}
else if (navigator.browserLanguage.substr(0,2) == "he")
document.write('Hebräisch')
else if (navigator.browserLanguage.substr(0,2) == "hi")
document.write('Hindi')
else if (navigator.browserLanguage.substr(0,2) == "hr")
document.write('Kroatisch')
else if (navigator.browserLanguage.substr(0,2) == "hu")
document.write('Ungarisch')
else if (navigator.browserLanguage.substr(0,2) == "in")
document.write('Indonesisch')
else if (navigator.browserLanguage.substr(0,2) == "is")
document.write('Isländisch')
else if (navigator.browserLanguage.substr(0,2) == "he")
document.write('Hebräisch')
else if (navigator.browserLanguage.substr(0,2) == "it")
{
if (navigator.browserLanguage.substr(3,2) == "ch")
document.write('Italienisch / Schweiz')
else document.write('Italienisch / Italien')
}
else if (navigator.browserLanguage.substr(0,2) == "ja")
document.write('Japanisch / Japan')
else if (navigator.browserLanguage.substr(0,2) == "ji")
document.write('Jiddisch')
else if (navigator.browserLanguage.substr(0,2) == "ko")
document.write('Koreanisch / Korea')
else if (navigator.browserLanguage.substr(0,2) == "lt")
document.write('Litauisch / Litauen')
else if (navigator.browserLanguage.substr(0,2) == "lv")
document.write('Lettisch')
else if (navigator.browserLanguage.substr(0,2) == "mk")
document.write('Mazedonisch / Mazedonien')
else if (navigator.browserLanguage.substr(0,2) == "ms")
document.write('Malaysisch / Malaysia')
else if (navigator.browserLanguage.substr(0,2) == "mt")
document.write('Maltesisch / Malta')
else if (navigator.browserLanguage.substr(0,2) == "nl")
{
if (navigator.browserLanguage.substr(3,2) == "be")
document.write('Niederländisch / Belgien')
else document.write('Niederländisch / Niederlande')
}
else if (navigator.browserLanguage.substr(0,2) == "pl")
document.write('Polnisch / Polen')
else if (navigator.browserLanguage.substr(0,2) == "pt")
{
if (navigator.browserLanguage.substr(3,2) == "br")
document.write('Portugiesisch / Brasilien')
else document.write('Portugiesisch / Portugiesisch')
}
else if (navigator.browserLanguage.substr(0,2) == "rm")
document.write('Rätoromanisch / Rumänien')
else if (navigator.browserLanguage.substr(0,2) == "ro")
document.write('Rumänisch / Rumänien')
else if (navigator.browserLanguage.substr(0,2) == "ru")
document.write('Russisch / Russland')
else if (navigator.browserLanguage.substr(0,2) == "sb")
document.write('Sorbian')
else if (navigator.browserLanguage.substr(0,2) == "sk")
document.write('Slowakisch')
else if (navigator.browserLanguage.substr(0,2) == "sl")
document.write('Slowenisch')
else if (navigator.browserLanguage.substr(0,2) == "sq")
document.write('Albanisch / Albanien')
else if (navigator.browserLanguage.substr(0,2) == "sr")
document.write('Serbian / Serbien')
else if (navigator.browserLanguage.substr(0,2) == "sv")
{
if (navigator.browserLanguage.substr(3,2) == "fi")
document.write('Schwedisch / Finnland')
else document.write('Schwedisch / Schweden')
}
else if (navigator.browserLanguage.substr(0,2) == "sx")
document.write('Sutu')
else if (navigator.browserLanguage.substr(0,2) == "sz")
document.write('Sami')
else if (navigator.browserLanguage.substr(0,2) == "th")
document.write('Thai / Thailand')
else if (navigator.browserLanguage.substr(0,2) == "tn")
document.write('Tswana')
else if (navigator.browserLanguage.substr(0,2) == "tr")
document.write('Türkisch / Türkei')
else if (navigator.browserLanguage.substr(0,2) == "ts")
document.write('Tsonga')
else if (navigator.browserLanguage.substr(0,2) == "uk")
document.write('Ukrainisch')
else if (navigator.browserLanguage.substr(0,2) == "th")
document.write('Thai / Thailand')
else if (navigator.browserLanguage.substr(0,2) == "ur")
document.write('Urdu')
else if (navigator.browserLanguage.substr(0,2) == "ve")
document.write('Venda')
else if (navigator.browserLanguage.substr(0,2) == "vi")
document.write('Vietnamesisch / Vietnam')
else if (navigator.browserLanguage.substr(0,2) == "xh")
document.write('Xhosa')
else if (navigator.browserLanguage.substr(0,2) == "zh")
{
if (navigator.browserLanguage.substr(3,2) == "cn")
document.write('Chinesisch / China')
else if (navigator.browserLanguage.substr(3,2) == "hk")
document.write('Chinesisch / Hongkong')
else if (navigator.browserLanguage.substr(3,2) == "sg")
document.write('Chinesisch / Singapur')
else if (navigator.browserLanguage.substr(3,2) == "tw")
document.write('Chinesisch / Taiwan')
else document.write('Chinesisch / China')
}
else if (navigator.browserLanguage.substr(0,2) == "zu")
document.write('Zulu')
anders
document.write('Konnte nicht ermittelt werden')
// Ende -->
</script>