SF.net SVN: qooxdoo: [2741] trunk/qooxdoo/source/contributed
Brought to you by:
ecker,
martinwittemann
From: <wp...@us...> - 2006-03-28 12:05:19
|
Revision: 2741 Author: wpbasti Date: 2006-03-28 04:05:04 -0800 (Tue, 28 Mar 2006) ViewCVS: http://svn.sourceforge.net/qooxdoo/?rev=2741&view=rev Log Message: ----------- Added locals implementation by kent olsson Added Paths: ----------- trunk/qooxdoo/source/contributed/locals_olsson/ trunk/qooxdoo/source/contributed/locals_olsson/Countries_ISO3166-1.js trunk/qooxdoo/source/contributed/locals_olsson/Definitions.js trunk/qooxdoo/source/contributed/locals_olsson/Languages_ISO639.js trunk/qooxdoo/source/contributed/locals_olsson/Locale_1.html trunk/qooxdoo/source/contributed/locals_olsson/Locale_en_GB.js trunk/qooxdoo/source/contributed/locals_olsson/Locale_sv_SE.js trunk/qooxdoo/source/contributed/locals_olsson/QxLocale.js trunk/qooxdoo/source/contributed/locals_olsson/QxLocaleManager.js trunk/qooxdoo/source/contributed/locals_olsson/QxResource.js trunk/qooxdoo/source/contributed/locals_olsson/README Added: trunk/qooxdoo/source/contributed/locals_olsson/Countries_ISO3166-1.js =================================================================== --- trunk/qooxdoo/source/contributed/locals_olsson/Countries_ISO3166-1.js (rev 0) +++ trunk/qooxdoo/source/contributed/locals_olsson/Countries_ISO3166-1.js 2006-03-28 12:05:04 UTC (rev 2741) @@ -0,0 +1,242 @@ +{ + "AF" : "AFGHANISTAN", + "AX" : "ÅLAND ISLANDS", + "AL" : "ALBANIA", + "DZ" : "ALGERIA", + "AS" : "AMERICAN SAMOA", + "AD" : "ANDORRA", + "AO" : "ANGOLA", + "AI" : "ANGUILLA", + "AQ" : "ANTARCTICA", + "AG" : "ANTIGUA AND BARBUDA", + "AR" : "ARGENTINA", + "AM" : "ARMENIA", + "AW" : "ARUBA", + "AU" : "AUSTRALIA", + "AT" : "AUSTRIA", + "AZ" : "AZERBAIJAN", + "BS" : "BAHAMAS", + "BH" : "BAHRAIN", + "BD" : "BANGLADESH", + "BB" : "BARBADOS", + "BY" : "BELARUS", + "BE" : "BELGIUM", + "BZ" : "BELIZE", + "BJ" : "BENIN", + "BM" : "BERMUDA", + "BT" : "BHUTAN", + "BO" : "BOLIVIA", + "BA" : "BOSNIA AND HERZEGOVINA", + "BW" : "BOTSWANA", + "BV" : "BOUVET ISLAND", + "BR" : "BRAZIL", + "IO" : "BRITISH INDIAN OCEAN TERRITORY", + "BN" : "BRUNEI DARUSSALAM", + "BG" : "BULGARIA", + "BF" : "BURKINA FASO", + "BI" : "BURUNDI", + "KH" : "CAMBODIA", + "CM" : "CAMEROON", + "CA" : "CANADA", + "CV" : "CAPE VERDE", + "KY" : "CAYMAN ISLANDS", + "CF" : "CENTRAL AFRICAN REPUBLIC", + "TD" : "CHAD", + "CL" : "CHILE", + "CN" : "CHINA", + "CX" : "CHRISTMAS ISLAND", + "CC" : "COCOS (KEELING) ISLANDS", + "CO" : "COLOMBIA", + "KM" : "COMOROS", + "CG" : "CONGO", + "CD" : "CONGO, THE DEMOCRATIC REPUBLIC OF THE", + "CK" : "COOK ISLANDS", + "CR" : "COSTA RICA", + "CI" : "CÔTE D'IVOIRE", + "HR" : "CROATIA", + "CU" : "CUBA", + "CY" : "CYPRUS", + "CZ" : "CZECH REPUBLIC", + "DK" : "DENMARK", + "DJ" : "DJIBOUTI", + "DM" : "DOMINICA", + "DO" : "DOMINICAN REPUBLIC", + "EC" : "ECUADOR", + "EG" : "EGYPT", + "SV" : "EL SALVADOR", + "GQ" : "EQUATORIAL GUINEA", + "ER" : "ERITREA", + "EE" : "ESTONIA", + "ET" : "ETHIOPIA", + "FK" : "FALKLAND ISLANDS (MALVINAS)", + "FO" : "FAROE ISLANDS", + "FJ" : "FIJI", + "FI" : "FINLAND", + "FR" : "FRANCE", + "GF" : "FRENCH GUIANA", + "PF" : "FRENCH POLYNESIA", + "TF" : "FRENCH SOUTHERN TERRITORIES", + "GA" : "GABON", + "GM" : "GAMBIA", + "GE" : "GEORGIA", + "DE" : "GERMANY", + "GH" : "GHANA", + "GI" : "GIBRALTAR", + "GR" : "GREECE", + "GL" : "GREENLAND", + "GD" : "GRENADA", + "GP" : "GUADELOUPE", + "GU" : "GUAM", + "GT" : "GUATEMALA", + "GN" : "GUINEA", + "GW" : "GUINEA-BISSAU", + "GY" : "GUYANA", + "HT" : "HAITI", + "HM" : "HEARD ISLAND AND MCDONALD ISLANDS", + "VA" : "HOLY SEE (VATICAN CITY STATE)", + "HN" : "HONDURAS", + "HK" : "HONG KONG", + "HU" : "HUNGARY", + "IS" : "ICELAND", + "IN" : "INDIA", + "ID" : "INDONESIA", + "IR" : "IRAN, ISLAMIC REPUBLIC OF", + "IQ" : "IRAQ", + "IE" : "IRELAND", + "IL" : "ISRAEL", + "IT" : "ITALY", + "JM" : "JAMAICA", + "JP" : "JAPAN", + "JO" : "JORDAN", + "KZ" : "KAZAKHSTAN", + "KE" : "KENYA", + "KI" : "KIRIBATI", + "KP" : "KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF", + "KR" : "KOREA, REPUBLIC OF", + "KW" : "KUWAIT", + "KG" : "KYRGYZSTAN", + "LA" : "LAO PEOPLE'S DEMOCRATIC REPUBLIC", + "LV" : "LATVIA", + "LB" : "LEBANON", + "LS" : "LESOTHO", + "LR" : "LIBERIA", + "LY" : "LIBYAN ARAB JAMAHIRIYA", + "LI" : "LIECHTENSTEIN", + "LT" : "LITHUANIA", + "LU" : "LUXEMBOURG", + "MO" : "MACAO", + "MK" : "MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF", + "MG" : "MADAGASCAR", + "MW" : "MALAWI", + "MY" : "MALAYSIA", + "MV" : "MALDIVES", + "ML" : "MALI", + "MT" : "MALTA", + "MH" : "MARSHALL ISLANDS", + "MQ" : "MARTINIQUE", + "MR" : "MAURITANIA", + "MU" : "MAURITIUS", + "YT" : "MAYOTTE", + "MX" : "MEXICO", + "FM" : "MICRONESIA, FEDERATED STATES OF", + "MD" : "MOLDOVA, REPUBLIC OF", + "MC" : "MONACO", + "MN" : "MONGOLIA", + "MS" : "MONTSERRAT", + "MA" : "MOROCCO", + "MZ" : "MOZAMBIQUE", + "MM" : "MYANMAR", + "NA" : "NAMIBIA", + "NR" : "NAURU", + "NP" : "NEPAL", + "NL" : "NETHERLANDS", + "AN" : "NETHERLANDS ANTILLES", + "NC" : "NEW CALEDONIA", + "NZ " : "NEW ZEALAND", + "NI" : "NICARAGUA", + "NE" : "NIGER", + "NG" : "NIGERIA", + "NU" : "NIUE", + "NF" : "NORFOLK ISLAND", + "MP" : "NORTHERN MARIANA ISLANDS", + "NO" : "NORWAY", + "OM" : "OMAN", + "PK" : "PAKISTAN", + "PW" : "PALAU", + "PS" : "PALESTINIAN TERRITORY, OCCUPIED", + "PA" : "PANAMA", + "PG" : "PAPUA NEW GUINEA", + "PY" : "PARAGUAY", + "PE" : "PERU", + "PH" : "PHILIPPINES", + "PN" : "PITCAIRN", + "PL" : "POLAND", + "PT" : "PORTUGAL", + "PR" : "PUERTO RICO", + "QA" : "QATAR", + "RE" : "RÉUNION", + "RO" : "ROMANIA", + "RU" : "RUSSIAN FEDERATION", + "RW" : "RWANDA", + "SH" : "SAINT HELENA", + "KN" : "SAINT KITTS AND NEVIS", + "LC" : "SAINT LUCIA", + "PM" : "SAINT PIERRE AND MIQUELON", + "VC" : "SAINT VINCENT AND THE GRENADINES", + "WS" : "SAMOA", + "SM" : "SAN MARINO", + "ST" : "SAO TOME AND PRINCIPE", + "SA" : "SAUDI ARABIA", + "SN" : "SENEGAL", + "CS" : "SERBIA AND MONTENEGRO", + "SC" : "SEYCHELLES", + "SL" : "SIERRA LEONE", + "SG" : "SINGAPORE", + "SK" : "SLOVAKIA", + "SI" : "SLOVENIA", + "SB" : "SOLOMON ISLANDS", + "SO" : "SOMALIA", + "ZA" : "SOUTH AFRICA", + "GS" : "SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS", + "ES" : "SPAIN", + "LK" : "SRI LANKA", + "SD" : "SUDAN", + "SR" : "SURINAME", + "SJ" : "SVALBARD AND JAN MAYEN", + "SZ" : "SWAZILAND", + "SE" : "SWEDEN", + "CH" : "SWITZERLAND", + "SY" : "SYRIAN ARAB REPUBLIC", + "TW" : "TAIWAN, PROVINCE OF CHINA", + "TJ" : "TAJIKISTAN", + "TZ" : "TANZANIA, UNITED REPUBLIC OF", + "TH" : "THAILAND", + "TL" : "TIMOR-LESTE", + "TG" : "TOGO", + "TK" : "TOKELAU", + "TO" : "TONGA", + "TT" : "TRINIDAD AND TOBAGO", + "TN" : "TUNISIA", + "TR" : "TURKEY", + "TM" : "TURKMENISTAN", + "TC" : "TURKS AND CAICOS ISLANDS", + "TV" : "TUVALU", + "UG" : "UGANDA", + "UA" : "UKRAINE", + "AE" : "UNITED ARAB EMIRATES", + "GB" : "UNITED KINGDOM", + "US" : "UNITED STATES", + "UM" : "UNITED STATES MINOR OUTLYING ISLANDS", + "UY" : "URUGUAY", + "UZ" : "UZBEKISTAN", + "VU" : "VANUATU", + "VE" : "VENEZUELA", + "VN" : "VIET NAM", + "VG" : "VIRGIN ISLANDS, BRITISH", + "VI" : "VIRGIN ISLANDS, U.S.", + "WF" : "WALLIS AND FUTUNA", + "EH" : "WESTERN SAHARA", + "YE" : "YEMEN", + "ZM" : "ZAMBIA", + "ZW" : "ZIMBABWE" +} Property changes on: trunk/qooxdoo/source/contributed/locals_olsson/Countries_ISO3166-1.js ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/qooxdoo/source/contributed/locals_olsson/Definitions.js =================================================================== --- trunk/qooxdoo/source/contributed/locals_olsson/Definitions.js (rev 0) +++ trunk/qooxdoo/source/contributed/locals_olsson/Definitions.js 2006-03-28 12:05:04 UTC (rev 2741) @@ -0,0 +1,2 @@ +// theme.js + Property changes on: trunk/qooxdoo/source/contributed/locals_olsson/Definitions.js ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/qooxdoo/source/contributed/locals_olsson/Languages_ISO639.js =================================================================== --- trunk/qooxdoo/source/contributed/locals_olsson/Languages_ISO639.js (rev 0) +++ trunk/qooxdoo/source/contributed/locals_olsson/Languages_ISO639.js 2006-03-28 12:05:04 UTC (rev 2741) @@ -0,0 +1,536 @@ +{ +"Abkhazian","abkhaze","abk","ab" +"Achinese","aceh","ace"," " +"Acoli","acoli","ach"," " +"Adangme","adangme","ada"," " +"Adygei; Adyghe","adyghé","ady"," " +"Adyghe; Adygei","adygh","ady"," " +"Afar","afar","aar","aa" +"Afrihili","afrihili","afh"," " +"Afrikaans","afrikaans","afr","af" +"Afro-Asiatic (Other)","afro-asiatiques, autres langues","afa"," " +"Ainu","aïnou","ain"," " +"Akan","akan","aka","ak" +"Akkadian","akkadien","akk"," " +"Albanian","albanais","alb/sqi* ","sq" +"Alemanic; Swiss German","alémanique","gsw"," " +"Aleut","aléoute","ale"," " +"Algonquian languages","algonquines, langues","alg"," " +"Altaic (Other)","altaïques, autres langues","tut"," " +"Amharic","amharique","amh","am" +"Angika","angika","anp"," " +"Apache languages","apache","apa"," " +"Arabic","arabe","ara","ar" +"Aragonese","aragonais","arg","an" +"Aramaic","araméen","arc"," " +"Arapaho","arapaho","arp"," " +"Araucanian","araucan","arn"," " +"Arawak","arawak","arw"," " +"Armenian","arménien","arm/hye*","hy" +"Aromanian; Arumanian; Macedo-Romanian","aroumain; macédo-roumain","rup"," " +"Artificial (Other)","artificielles, autres langues","art"," " +"Arumanian; Macedo-Romanian; Aromanian","aroumain; macédo-roumain","rup"," " +"Assamese","assamais","asm","as" +"Asturian; Bable","asturien; bable","ast"," " +"Athapascan languages","athapascanes, langues","ath"," " +"Australian languages","australiennes, langues","aus"," " +"Austronesian (Other)","malayo-polynésiennes, autres langues","map"," " +"Avaric","avar","ava","av" +"Avestan","avestique","ave","ae" +"Awadhi","awadhi","awa"," " +"Aymara","aymara","aym","ay" +"Azerbaijani","azéri","aze","az" +"Bable; Asturian","bable; asturien","ast"," " +"Balinese","balinais","ban"," " +"Baltic (Other)","baltiques, autres langues","bat"," " +"Baluchi","baloutchi","bal"," " +"Bambara","bambara","bam","bm" +"Bamileke languages","bamilékés, langues","bai"," " +"Banda","banda","bad"," " +"Bantu (Other)","bantoues, autres langues","bnt"," " +"Basa","basa","bas"," " +"Bashkir","bachkir","bak","ba" +"Basque","basque","baq/eus*","eu" +"Batak (Indonesia)","batak (Indonésie)","btk"," " +"Beja","bedja","bej"," " +"Belarusian","biélorusse","bel","be" +"Bemba","bemba","bem"," " +"Bengali","bengali","ben","bn" +"Berber (Other)","berbères, autres langues","ber"," " +"Bhojpuri","bhojpuri","bho"," " +"Bihari","bihari","bih","bh" +"Bikol","bikol","bik"," " +"Bilin; Blin","bilen; blin","byn"," " +"Bini","bini","bin"," " +"Bislama","bichlamar","bis","bi" +"Blin; Bilin","blin; bilen","byn"," " +"Bokmål, Norwegian; Norwegian Bokmål","bokmål, norvégien; bokmål norvégien","nob","nb" +"Bosnian","bosniaque","bos","bs" +"Braj","braj","bra"," " +"Breton","breton","bre","br" +"Buginese","bugi","bug"," " +"Bulgarian","bulgare","bul","bg" +"Buriat","bouriate","bua"," " +"Burmese","birman","bur/mya*","my" +"Caddo","caddo","cad"," " +"Carib","caribe","car"," " +"Castilian; Spanish","castillan; espagnol","spa","es" +"Catalan; Valencian","catalan; valencien","cat","ca" +"Caucasian (Other)","caucasiennes, autres langues","cau"," " +"Cebuano","cebuano","ceb"," " +"Celtic (Other)","celtiques, autres langues","cel"," " +"Central American Indian (Other)","indiennes d'Amérique centrale, +autres langues","cai"," " +"Chagatai","djaghataï","chg"," " +"Chamic languages","chames, langues","cmc"," " +"Chamorro","chamorro","cha","ch" +"Chechen","tchétchène","che","ce" +"Cherokee","cherokee","chr"," " +"Chewa; Chichewa; Nyanja","chewa, chichewa, nyanja","nya","ny" +"Cheyenne","cheyenne","chy"," " +"Chibcha","chibcha","chb"," " +"Chichewa; Chewa; Nyanja","chichewa; chewa; nyanja","nya","ny" +"Chinese","chinois","chi/zho*","zh" +"Chinook jargon","chinook, jargon","chn"," " +"Chipewyan","chipewyan","chp"," " +"Choctaw","choctaw","cho"," " +"Chuang; Zhuang","chuang; zhuang","zha","za" +"Church Slavic; Slavonic; Church Slavonic; Old Bulgarian; Old Church Slavonic","slavon d'église; vieux slave; slavon liturgique; vieux bulgare","chu","cu" +"Church Slavonic; Church Slavic; Old Slavonic; Old Bulgarian; Old Church Slavonic","slavon liturgique; slavon d'église; vieux slave; vieux bulgare ","chu","cu" +"Chuukese","chuuk","chk"," " +"Chuvash","tchouvache","chv","cv" +"Classical Nepal Bhasa; Classical Newari; Old Newari","newari classique","nwc"," " +"Classical Newari; Old Newari; Classical Nepal Bhasa","newari classique","nwc"," " +"Coptic","copte","cop"," " +"Cornish","cornique","cor","kw" +"Corsican","corse","cos","co" +"Cree","cree","cre","cr" +"Creek","muskogee","mus"," " +"Creoles and pidgins (Other)","créoles et pidgins divers","crp"," " +"Creoles and pidgins, +English-based (Other)","créoles et pidgins anglais, autres","cpe"," " +"Creoles and pidgins, +French-based (Other)","créoles et pidgins français, autres","cpf"," " +"Creoles and pidgins, +Portuguese-based (Other)","créoles et pidgins portugais, autres","cpp"," " +"Crimean Tatar; Crimean Turkish","tatar de Crimé","crh"," " +"Crimean Turkish; Crimean Tatar","tatar de Crimé","crh"," " +"Croatian","croate","scr/hrv*","hr" +"Cushitic (Other)","couchitiques, autres langues","cus"," " +"Czech","tchèque","cze/ces*","cs" +"Dakota","dakota","dak"," " +"Danish","danois","dan","da" +"Dargwa","dargwa","dar"," " +"Dayak","dayak","day"," " +"Delaware","delaware","del"," " +"Dinka","dinka","din"," " +"Divehi","maldivien","div","dv" +"Dogri","dogri","doi"," " +"Dogrib","dogrib","dgr"," " +"Dravidian (Other)","dravidiennes, autres langues","dra"," " +"Duala","douala","dua"," " +"Dutch; Flemish","néerlandais; flamand","dut/nld*","nl" +"Dutch, Middle (ca. 1050-1350)","néerlandais moyen (ca. 1050-1350)","dum"," " +"Dyula","dioula","dyu"," " +"Dzongkha","dzongkha","dzo","dz" +"Eastern Frisian","frison oriental","frs"," " +"Efik","efik","efi"," " +"Egyptian (Ancient)","égyptien","egy"," " +"Ekajuk","ekajuk","eka"," " +"Elamite","élamite","elx"," " +"English","anglais","eng","en" +"English, Middle (1100-1500)","anglais moyen (1100-1500)","enm"," " +"English, Old (ca.450-1100)","anglo-saxon (ca.450-1100)","ang"," " +"Erzya","erza","myv"," " +"Esperanto","espéranto","epo","eo" +"Estonian","estonien","est","et" +"Ewe","éwé","ewe","ee" +"Ewondo","éwondo","ewo"," " +"Fang","fang","fan"," " +"Fanti","fanti","fat"," " +"Faroese","féroïen","fao","fo" +"Fijian","fidjien","fij","fj" +"Filipino; Pilipino","filipino; pilipino","fil"," " +"Finnish","finnois","fin","fi" +"Finno-Ugrian (Other)","finno-ougriennes, autres langues","fiu"," " +"Flemish; Dutch","flamand; néerlandais","dut/nld*","nl" +"Fon","fon","fon"," " +"French","français","fre/fra*","fr" +"French, Middle (ca.1400-1600)","français moyen (1400-1600)","frm"," " +"French, Old (842-ca.1400)","français ancien (842-ca.1400)","fro"," " +"Friulian","frioulan","fur"," " +"Fulah","peul","ful","ff" +"Ga","ga","gaa"," " +"Gaelic; Scottish Gaelic","gaélique; gaélique écossais","gla","gd" +"Galician","galicien","glg","gl" +"Ganda","ganda","lug","lg" +"Gayo","gayo","gay"," " +"Gbaya","gbaya","gba"," " +"Geez","guèze","gez"," " +"Georgian","géorgien","geo/kat*","ka" +"German","allemand","ger/deu*","de" +"German, Low; Saxon, Low; Low German; Low Saxon","allemand, bas; saxon, bas; bas allemand; bas saxon","nds"," " +"German, Middle High (ca.1050-1500)","allemand, moyen haut (ca. 1050-1500)","gmh"," " +"German, Old High (ca.750-1050)","allemand, vieux haut (ca. 750-1050)","goh"," " +"Germanic (Other)","germaniques, autres langues","gem"," " +"Gikuyu; Kikuyu","kikuyu","kik","ki" +"Gilbertese","kiribati","gil"," " +"Gondi","gond","gon"," " +"Gorontalo","gorontalo","gor"," " +"Gothic","gothique","got"," " +"Grebo","grebo","grb"," " +"Greek, Ancient (to 1453)","grec ancien (jusqu'à 1453)","grc"," " +"Greek, Modern (1453-)","grec moderne (après 1453)","gre/ell*","el" +"Greenlandic; Kalaallisut","groenlandais","kal","kl" +"Guarani","guarani","grn","gn" +"Gujarati","goudjrati","guj","gu" +"Gwich´in","gwich´in","gwi"," " +"Haida","haida","hai"," " +"Haitian; Haitian Creole","haïtien; créole haïtien","hat","ht" +"Haitian Creole; Haitian","créole haïtien; haïtien","hat","ht" +"Hausa","haoussa","hau","ha" +"Hawaiian","hawaïen","haw"," " +"Hebrew","hébreu","heb","he" +"Herero","herero","her","hz" +"Hiligaynon","hiligaynon","hil"," " +"Himachali","himachali","him"," " +"Hindi","hindi","hin","hi" +"Hiri Motu","hiri motu","hmo","ho" +"Hittite","hittite","hit"," " +"Hmong","hmong","hmn"," " +"Hungarian","hongrois","hun","hu" +"Hupa","hupa","hup"," " +"Iban","iban","iba"," " +"Icelandic","islandais","ice/isl*","is" +"Ido","ido","ido","io" +"Igbo","igbo","ibo","ig" +"Ijo","ijo","ijo"," " +"Iloko","ilocano","ilo"," " +"Inari Sami","sami d'Inari","smn"," " +"Indic (Other)","indo-aryennes, autres langues","inc"," " +"Indo-European (Other)","indo-européennes, autres langues","ine"," " +"Indonesian","indonésien","ind","id" +"Ingush","ingouche","inh"," " +"Interlingua (International +Auxiliary Language Association)","interlingua (langue auxiliaire internationale)","ina","ia" +"Interlingue","interlingue","ile","ie" +"Inuktitut","inuktitut","iku","iu" +"Inupiaq","inupiaq","ipk","ik" +"Iranian (Other)","iraniennes, autres langues","ira"," " +"Irish","irlandais","gle","ga" +"Irish, Middle (900-1200)","irlandais moyen (900-1200)","mga"," " +"Irish, Old (to 900)","irlandais ancien (jusqu'à 900)","sga"," " +"Iroquoian languages","iroquoises, langues (famille)","iro"," " +"Italian","italien","ita","it" +"Japanese","japonais","jpn","ja" +"Javanese","javanais","jav","jv" +"Judeo-Arabic","judéo-arabe","jrb"," " +"Judeo-Persian","judéo-persan","jpr"," " +"Kabardian","kabardien","kbd"," " +"Kabyle","kabyle","kab"," " +"Kachin","kachin","kac"," " +"Kalaallisut; Greenlandic","groenlandais","kal","kl" +"Kalmyk","kalmouk","xal"," " +"Kamba","kamba","kam"," " +"Kannada","kannada","kan","kn" +"Kanuri","kanouri","kau","kr" +"Karachay-Balkar","karatchaï balkar","krc"," " +"Kara-Kalpak","karakalpak","kaa"," " +"Karelian","carélien","krl"," " +"Karen","karen","kar"," " +"Kashmiri","kashmiri","kas","ks" +"Kashubian","kachoube","csb"," " +"Kawi","kawi","kaw"," " +"Kazakh","kazakh","kaz","kk" +"Khasi","khasi","kha"," " +"Khmer","khmer","khm","km" +"Khoisan (Other)","khoisan, autres langues","khi"," " +"Khotanese","khotanais","kho"," " +"Kikuyu; Gikuyu","kikuyu","kik","ki" +"Kimbundu","kimbundu","kmb"," " +"Kinyarwanda","rwanda","kin","rw" +"Kirghiz","kirghize","kir","ky" +"Klingon; tlhIngan-Hol","klingon","tlh"," " +"Komi","komi","kom","kv" +"Kongo","kongo","kon","kg" +"Konkani","konkani","kok"," " +"Korean","coréen","kor","ko" +"Kosraean","kosrae","kos"," " +"Kpelle","kpellé","kpe"," " +"Kru","krou","kro"," " +"Kuanyama; Kwanyama","kuanyama; kwanyama","kua","kj" +"Kumyk","koumyk","kum"," " +"Kurdish","kurde","kur","ku" +"Kurukh","kurukh","kru"," " +"Kutenai","kutenai","kut"," " +"Kwanyama, Kuanyama","kwanyama; kuanyama","kua","kj" +"Ladino","judéo-espagnol","lad"," " +"Lahnda","lahnda","lah"," " +"Lamba","lamba","lam"," " +"Lao","lao","lao","lo" +"Latin","latin","lat","la" +"Latvian","letton","lav","lv" +"Letzeburgesch; Luxembourgish","luxembourgeois","ltz","lb" +"Lezghian","lezghien","lez"," " +"Limburgan; Limburger; Limburgish","limbourgeois","lim","li" +"Limburger; Limburgan; Limburgish; ","limbourgeois","lim","li" +"Limburgish; Limburger; Limburgan","limbourgeois","lim","li" +"Lingala","lingala","lin","ln" +"Lithuanian","lituanien","lit","lt" +"Lojban","lojban","jbo"," " +"Low German; Low Saxon; German, Low; Saxon, Low","bas allemand; bas saxon; allemand, bas; saxon, bas","nds"," " +"Low Saxon; Low German; Saxon, Low; German, Low","bas saxon; bas allemand; saxon, bas; allemand, bas","nds"," " +"Lower Sorbian","bas-sorabe","dsb"," " +"Lozi","lozi","loz"," " +"Luba-Katanga","luba-katanga","lub","lu" +"Luba-Lulua","luba-lulua","lua"," " +"Luiseno","luiseno","lui"," " +"Lule Sami","sami de Lule","smj"," " +"Lunda","lunda","lun"," " +"Luo (Kenya and Tanzania)","luo (Kenya et Tanzanie)","luo"," " +"Lushai","lushai","lus"," " +"Luxembourgish; Letzeburgesch","luxembourgeois","ltz","lb" +"Macedo-Romanian; Aromanian; Arumanian","macédo-roumain; aroumain","rup"," " +"Macedonian","macédonien","mac/mkd*","mk" +"Madurese","madourais","mad"," " +"Magahi","magahi","mag"," " +"Maithili","maithili","mai"," " +"Makasar","makassar","mak"," " +"Malagasy","malgache","mlg","mg" +"Malay","malais","may/msa*","ms" +"Malayalam","malayalam","mal","ml" +"Maltese","maltais","mlt","mt" +"Manchu","mandchou","mnc"," " +"Mandar","mandar","mdr"," " +"Mandingo","mandingue","man"," " +"Manipuri","manipuri","mni"," " +"Manobo languages","manobo, langues","mno"," " +"Manx","manx; mannois","glv","gv" +"Maori","maori","mao/mri*","mi" +"Marathi","marathe","mar","mr" +"Mari","mari","chm"," " +"Marshallese","marshall","mah","mh" +"Marwari","marvari","mwr"," " +"Masai","massaï","mas"," " +"Mayan languages","maya, langues","myn"," " +"Mende","mendé","men"," " +"Micmac; Mi'kmaq","micmac; mi'kmaq","mic"," " +"Mi'kmaq; Micmac","mi'kmaq; micmac","mic"," " +"Minangkabau","minangkabau","min"," " +"Mirandese","mirandais","mwl"," " +"Miscellaneous languages","diverses, langues","mis"," " +"Mohawk","mohawk","moh"," " +"Moksha","moksa","mdf"," " +"Moldavian","moldave","mol","mo" +"Mon-Khmer (Other)","môn-khmer, autres langues","mkh"," " +"Mongo","mongo","lol"," " +"Mongolian","mongol","mon","mn" +"Mossi","moré","mos"," " +"Multiple languages","multilingue","mul"," " +"Munda languages","mounda, langues","mun"," " +"Nahuatl","nahuatl","nah"," " +"Nauru","nauruan","nau","na" +"Navaho, Navajo","navaho","nav","nv" +"Navajo; Navaho","navaho","nav","nv" +"Ndebele, North","ndébélé du Nord","nde","nd" +"Ndebele, South","ndébélé du Sud","nbl","nr" +"Ndonga","ndonga","ndo","ng" +"Neapolitan","napolitain","nap"," " +"Nepal Bhasa; Newari","nepal bhasa; newari","new"," " +"Nepali","népalais","nep","ne" +"Newari; Nepal Bhasa","newari; nepal bhasa","new"," " +"Nias","nias","nia"," " +"Niger-Kordofanian (Other)","nigéro-congolaises, autres langues","nic"," " +"Nilo-Saharan (Other)","nilo-sahariennes, autres langues","ssa"," " +"Niuean","niué","niu"," " +"No linguistic content","pas de contenu linguistique","zxx"," " +"Nogai","nogaï; nogay","nog"," " +"Norse, Old","norrois, vieux","non"," " +"North American Indian (Other)","indiennes d'Amérique du Nord, autres langues","nai"," " +"Northern Frisian","frison septentrional","frr"," " +"Northern Sami","sami du Nord","sme","se" +"Northern Sotho; Pedi; Sepedi","sotho du Nord; pedi; sepedi","nso"," " +"North Ndebele","ndébélé du Nord","nde","nd" +"Norwegian","norvégien","nor","no" +"Norwegian Bokmål; Bokmål, Norwegian","norvégien bokmål; bokmål, norvégien","nob","nb" +"Norwegian Nynorsk; Nynorsk, Norwegian","norvégien nynorsk; nynorsk, norvégien","nno","nn" +"Nubian languages","nubiennes, langues","nub"," " +"Nyamwezi","nyamwezi","nym"," " +"Nyanja; Chichewa; Chewa","nyanja; chichewa; chewa","nya","ny" +"Nyankole","nyankolé","nyn"," " +"Nynorsk, Norwegian; Norwegian Nynorsk","nynorsk, norvégien; norvégien nynorsk","nno","nn" +"Nyoro","nyoro","nyo"," " +"Nzima","nzema","nzi"," " +"Occitan (post 1500); Provençal","occitan (après 1500); provençal","oci","oc" +"Ojibwa","ojibwa","oji","oj" +"Old Bulgarian; Old Slavonic; Church Slavonic; Church Slavic; Old Church Slavonic","vieux bulgare; vieux slave; slavon liturgique; slavon d'église","chu","cu" +"Old Church Slavonic; Old Slavonic; Church Slavonic; Old Bulgarian; Church Slavic ","vieux slave; slavon liturgique; vieux bulgare; slavon d'église","chu","cu" +"Old Newari; Classical Newari; Classical Nepal Bhasa","newari classique","nwc"," " +"Old Slavonic; Church Slavonic; Old Bulgarian; Church Slavic; Old Church Slavonic ","vieux slave; slavon liturgique; vieux bulgare; slavon d'église","chu","cu" +"Oriya","oriya","ori","or" +"Oromo","galla","orm","om" +"Osage","osage","osa"," " +"Ossetian; Ossetic","ossète","oss","os" +"Ossetic; Ossetian","ossète","oss","os" +"Otomian languages","otomangue, langues","oto"," " +"Pahlavi","pahlavi","pal"," " +"Palauan","palau","pau"," " +"Pali","pali","pli","pi" +"Pampanga","pampangan","pam"," " +"Pangasinan","pangasinan","pag"," " +"Panjabi; Punjabi","pendjabi","pan","pa" +"Papiamento","papiamento","pap"," " +"Papuan (Other)","papoues, autres langues","paa"," " +"Pedi; Sepedi; Northern Sotho","pedi; sepedi; sotho du Nord","nso"," " +"Persian","persan","per/fas*","fa" +"Persian, Old (ca.600-400 B.C.)","perse, vieux (ca. 600-400 av. J.-C.)","peo"," " +"Philippine (Other)","philippines, autres langues","phi"," " +"Phoenician","phénicien","phn"," " +"Pilipino; Filipino","pilipino; filipino","fil"," " +"Pohnpeian","pohnpei","pon"," " +"Polish","polonais","pol","pl" +"Portuguese","portugais","por","pt" +"Prakrit languages","prâkrit","pra"," " +"Provençal; Occitan (post 1500) ","provençal; occitan (après 1500) ","oci","oc" +"Provençal, Old (to 1500)","provençal ancien (jusqu'à 1500)","pro"," " +"Punjabi; Panjabi","pendjabi","pan","pa" +"Pushto","pachto","pus","ps" +"Quechua","quechua","que","qu" +"Raeto-Romance","rhéto-roman","roh","rm" +"Rajasthani","rajasthani","raj"," " +"Rapanui","rapanui","rap"," " +"Rarotongan","rarotonga","rar"," " +"Reserved for local use","réservée à l'usage local","qaa-qtz"," " +"Romance (Other)","romanes, autres langues","roa"," " +"Romanian","roumain","rum/ron*","ro" +"Romany","tsigane","rom"," " +"Rundi","rundi","run","rn" +"Russian","russe","rus","ru" +"Salishan languages","salish, langues","sal"," " +"Samaritan Aramaic","samaritain","sam"," " +"Sami languages (Other)","sami, autres langues","smi"," " +"Samoan","samoan","smo","sm" +"Sandawe","sandawe","sad"," " +"Sango","sango","sag","sg" +"Sanskrit","sanskrit","san","sa" +"Santali","santal","sat"," " +"Sardinian","sarde","srd","sc" +"Sasak","sasak","sas"," " +"Saxon, Low; German, Low; Low Saxon; Low German ","saxon, bas; allemand, bas; bas saxon; bas allemand","nds"," " +"Scots","écossais","sco"," " +"Scottish Gaelic; Gaelic","gaélique écossais; gaélique","gla","gd" +"Selkup","selkoupe","sel"," " +"Semitic (Other)","sémitiques, autres langues","sem"," " +"Sepedi; Northern Sotho; Pedi","sepedi; sotho du Nord; pedi","nso"," " +"Serbian","serbe","scc/srp*","sr" +"Serer","sérère","srr"," " +"Shan","chan","shn"," " +"Shona","shona","sna","sn" +"Sichuan Yi","yi de Sichuan","iii","ii" +"Sicilian","sicilien","scn"," " +"Sidamo","sidamo","sid"," " +"Sign languages","langues des signes","sgn"," " +"Siksika","blackfoot","bla"," " +"Sindhi","sindhi","snd","sd" +"Sinhala; Sinhalese","singhalais","sin","si" +"Sinhalese; Sinhala","singhalais","sin","si" +"Sino-Tibetan (Other)","sino-tibétaines, autres langues","sit"," " +"Siouan languages","sioux, langues","sio"," " +"Skolt Sami","sami skolt","sms"," " +"Slave (Athapascan)","esclave (athapascan)","den"," " +"Slavic (Other)","slaves, autres langues","sla"," " +"Slovak","slovaque","slo/slk*","sk" +"Slovenian","slovène","slv","sl" +"Sogdian","sogdien","sog"," " +"Somali","somali","som","so" +"Songhai","songhai","son"," " +"Soninke","soninké","snk"," " +"Sorbian languages","sorabes, langues","wen"," " +"Sotho, Northern; Pedi; Sepedi","sotho du Nord; pedi; sepedi","nso"," " +"Sotho, Southern","sotho du Sud","sot","st" +"South American Indian (Other)","indiennes d'Amérique du Sud, autres langues","sai"," " +"Southern Altai","altaï du Sud","alt"," " +"Southern Sami","sami du Sud","sma"," " +"South Ndebele","ndébélé du Sud","nbl","nr" +"Spanish; Castilian","espagnol; castillan","spa","es" +"Sranan Togo","sranan tongo","srn"," " +"Sukuma","sukuma","suk"," " +"Sumerian","sumérien","sux"," " +"Sundanese","soundanais","sun","su" +"Susu","soussou","sus"," " +"Swahili","swahili","swa","sw" +"Swati","swati","ssw","ss" +"Swedish","suédois","swe","sv" +"Swiss German; Alemanic","alémanique","gsw"," " +"Syriac","syriaque","syr"," " +"Tagalog","tagalog","tgl","tl" +"Tahitian","tahitien","tah","ty" +"Tai (Other)","thaïes, autres langues","tai"," " +"Tajik","tadjik","tgk","tg" +"Tamashek","tamacheq","tmh"," " +"Tamil","tamoul","tam","ta" +"Tatar","tatar","tat","tt" +"Telugu","télougou","tel","te" +"Tereno","tereno","ter"," " +"Tetum","tetum","tet"," " +"Thai","thaï","tha","th" +"Tibetan","tibétain","tib/bod*","bo" +"Tigre","tigré","tig"," " +"Tigrinya","tigrigna","tir","ti" +"Timne","temne","tem"," " +"Tiv","tiv","tiv"," " +"tlhIngan-Hol; Klingon","klingon","tlh"," " +"Tlingit","tlingit","tli"," " +"Tok Pisin","tok pisin","tpi"," " +"Tokelau","tokelau","tkl"," " +"Tonga (Nyasa)","tonga (Nyasa)","tog"," " +"Tonga (Tonga Islands)","tongan (Îles Tonga)","ton","to" +"Tsimshian","tsimshian","tsi"," " +"Tsonga","tsonga","tso","ts" +"Tswana","tswana","tsn","tn" +"Tumbuka","tumbuka","tum"," " +"Tupi languages","tupi, langues","tup"," " +"Turkish","turc","tur","tr" +"Turkish, Ottoman (1500-1928)","turc ottoman (1500-1928)","ota"," " +"Turkmen","turkmène","tuk","tk" +"Tuvalu","tuvalu","tvl"," " +"Tuvinian","touva","tyv"," " +"Twi","twi","twi","tw" +"Udmurt","oudmourte","udm"," " +"Ugaritic","ougaritique","uga"," " +"Uighur; Uyghur","ouïgour","uig","ug" +"Ukrainian","ukrainien","ukr","uk" +"Umbundu","umbundu","umb"," " +"Undetermined","indéterminée","und"," " +"Upper Sorbian","haut-sorabe","hsb"," " +"Urdu","ourdou","urd","ur" +"Uyghur; Uighur","ouïgour","uig","ug" +"Uzbek","ouszbek","uzb","uz" +"Vai","vaï","vai"," " +"Valencian; Catalan","valencien; catalan","cat","ca" +"Venda","venda ","ven","ve" +"Vietnamese","vietnamien","vie","vi" +"Volapük","volapük","vol","vo" +"Votic","vote","vot"," " +"Wakashan languages","wakashennes, langues","wak"," " +"Walamo","walamo","wal"," " +"Walloon","wallon","wln","wa" +"Waray","waray","war"," " +"Washo","washo","was"," " +"Welsh","gallois","wel/cym*","cy" +"Western Frisian","frison occidental","fry","fy" +"Wolof","wolof","wol","wo" +"Xhosa","xhosa","xho","xh" +"Yakut","iakoute","sah"," " +"Yao","yao","yao"," " +"Yapese","yapois","yap"," " +"Yiddish","yiddish","yid","yi" +"Yoruba","yoruba","yor","yo" +"Yupik languages","yupik, langues","ypk"," " +"Zande","zandé","znd"," " +"Zapotec","zapotèque","zap"," " +"Zenaga","zenaga","zen"," " +"Zhuang; Chuang","zhuang; chuang","zha","za" +"Zulu","zoulou","zul","zu" +"Zuni","zuni","zun"," " +} Property changes on: trunk/qooxdoo/source/contributed/locals_olsson/Languages_ISO639.js ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/qooxdoo/source/contributed/locals_olsson/Locale_1.html =================================================================== --- trunk/qooxdoo/source/contributed/locals_olsson/Locale_1.html (rev 0) +++ trunk/qooxdoo/source/contributed/locals_olsson/Locale_1.html 2006-03-28 12:05:04 UTC (rev 2741) @@ -0,0 +1,178 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de"> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" /> + <title>qooxdoo demo</title> + <link type="text/css" rel="stylesheet" href="../../demo/demolayout.css"/> + <script type="text/javascript" src="../../demo/demoinclude.js"></script> + </head> + <body> + <script type="text/javascript" src="../../demo/demolayout.js"></script> + + <script type="text/javascript" src="./Definitions.js"></script> + <script type="text/javascript" src="./QxLocale.js"></script> + <script type="text/javascript" src="./QxLocaleManager.js"></script> + <script type="text/javascript" src="./QxResource.js"></script> + <script type="text/javascript" src="../frame_olsson/Definitions.js"></script> + <script type="text/javascript" src="../frame_olsson/QxFrame.js"></script> + <script type="text/javascript" src="../statusbar_olsson/Definitions.js"></script> + <script type="text/javascript" src="../statusbar_olsson/QxStatusBar.js"></script> + <script type="text/javascript" src="../statusbar_olsson/QxStatusBarPane.js"></script> + <script type="text/javascript" src="../clock_olsson/Definitions.js"></script> + <script type="text/javascript" src="../clock_olsson/QxClock.js"></script> + <script type="text/javascript" src="../clock_olsson/QxDigitalClock.js"></script> + + <div id="demoDescription"> + <p>Testing Locale implementation.</p> + <p>The internationalisation is an important feature of a class library.</p> + </div> + + <script type="text/javascript"> + window.application.main = function() + { + var doc = this.getClientWindow().getClientDocument(); + + var resource = new QxResource("./locale/Locale"); + + var mainF = new QxFrame(resource.getValue("frameTitle")); + mainF.setSpace(20, 400, 48, 250); + mainF.setMenuBar(createMenuBar()); + mainF.setToolBar(createToolBar()); + mainF.setStatusBar(createStatusBar()); + mainF.addEventListener(QxConst.EVENT_TYPE_KEYDOWN, function _onkeydown(e) { + if(e.getKeyCode() == 90) // The NUM key + { + numL.setHtml("NUM"); + } + else + { + numL.setHtml(""); + }; + }); + + doc.add(mainF); + + mainF.open(); + + function createMenuBar() { + var menuMB = new QxMenuBar(); + + var fileM = new QxMenu(); + + var newMB = new QxMenuButton(resource.getValue("newMB")); + var openMB = new QxMenuButton(resource.getValue("openMB")); + var saveAsMB = new QxMenuButton(resource.getValue("saveAsMB")); + var mailS = new QxMenuSeparator(); + var closeMB = new QxMenuButton(resource.getValue("closeMB")); + var exitMB = new QxMenuButton(resource.getValue("exitMB")); + exitMB.addEventListener("execute", function() { + mainF.close(); + }); + + fileM.add(newMB, openMB, saveAsMB, mailS, closeMB, exitMB); + + var fileMBB = new QxMenuBarButton(resource.getValue("fileMBB"), fileM); + + // Edit Menu + var editM = new QxMenu(); + + var undoMB = new QxMenuButton(resource.getValue("undoMB")); + var redoMB = new QxMenuButton(resource.getValue("redoMB")); + var editS1 = new QxMenuSeparator(); + var cutMB = new QxMenuButton(resource.getValue("cutMB")); + var copyMB = new QxMenuButton(resource.getValue("copyMB")); + var pasteMB = new QxMenuButton(resource.getValue("pasteMB")); + var deleteMB = new QxMenuButton(resource.getValue("deleteMB")); + var editS2 = new QxMenuSeparator(); + var selectAllMB = new QxMenuButton(resource.getValue("selectAllMB")); + var editS3 = new QxMenuSeparator(); + var preferencesMB = new QxMenuButton(resource.getValue("preferencesMB")); + + editM.add(undoMB, redoMB, editS1, cutMB, copyMB, pasteMB, deleteMB, editS2, selectAllMB, editS3, preferencesMB); + + var editMBB = new QxMenuBarButton(resource.getValue("editMBB"), editM); + + // Language Menu + var languageM = new QxMenu(); + + var languageC = new QxCommand(); + languageC.addEventListener("execute", function(e) { + switch(e.getData().getValue()) + { + case "englishMRB" : + resource.setLocale(new QxLocale("en", "GB", null)); + break; + + case "swedishMRB" : + resource.setLocale(new QxLocale("sv", "SE", null)); + break; + }; + }); + + var englishMRB = new QxMenuRadioButton(resource.getValue("englishMRB"), languageC, true); + var swedishMRB = new QxMenuRadioButton(resource.getValue("swedishMRB"), languageC); + + languageM.add(englishMRB, swedishMRB); + + var languageRM = new QxRadioManager("languageRM", [englishMRB, swedishMRB]); + + var languageMBB = new QxMenuBarButton(resource.getValue("languageMBB"), languageM); + + doc.add(fileM, editM, languageM); + + menuMB.add(fileMBB, editMBB, languageMBB); + + return menuMB; + }; + + function createToolBar() { + var toolTB = new QxToolBar(); + + var mailTBP = new QxToolBarPart(); + + var newTBB = new QxToolBarButton(resource.getValue("newTBB"),"icons/16/file-new.png"); + + mailTBP.add(newTBB); + + var firstTBS = new QxToolBarSeparator(); + + var editTBP = new QxToolBarPart(); + + var copyTBB = new QxToolBarButton(resource.getValue("copyTBB"),"icons/16/edit-copy.png"); + + var cutTBB = new QxToolBarButton(resource.getValue("cutTBB"),"icons/16/edit-cut.png"); + + var pasteTBB = new QxToolBarButton(resource.getValue("pasteTBB"),"icons/16/edit-paste.png"); + + editTBP.add(copyTBB, cutTBB, pasteTBB); + + toolTB.add(mailTBP, firstTBS, editTBP); + + return toolTB; + }; + + function createStatusBar() { + var statusSB = new QxStatusBar(); + + var statusL = new QxLabel(resource.getValue("statusL")); + var statusSBP1 = new QxStatusBarPane(statusL); + statusSBP1.setWidth("50%"); + + var numL = new QxLabel(); + var statusSBP2 = new QxStatusBarPane(numL); + statusSBP2.setWidth(30); + statusSBP2.setLeft(95); + + var digitalClockC = new QxDigitalClock(); + var statusSBP3 = new QxStatusBarPane(digitalClockC); + statusSBP3.setLeft(98); + + statusSB.add(statusSBP1, statusSBP2, statusSBP3); + + return statusSB; + }; + }; + </script> + </body> +</html> Property changes on: trunk/qooxdoo/source/contributed/locals_olsson/Locale_1.html ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/qooxdoo/source/contributed/locals_olsson/Locale_en_GB.js =================================================================== --- trunk/qooxdoo/source/contributed/locals_olsson/Locale_en_GB.js (rev 0) +++ trunk/qooxdoo/source/contributed/locals_olsson/Locale_en_GB.js 2006-03-28 12:05:04 UTC (rev 2741) @@ -0,0 +1,31 @@ +{ + "frameTitle" : "Test of Locale", + + "fileMBB" : "File", + "newMB" : "New", + "openMB" : "Open", + "saveAsMB" : "Save as", + "closeMB" : "Close", + "exitMB" : "Exit", + + "editMBB" : "Edit", + "undoMB" : "Undo", + "redoMB" : "Redo", + "cutMB" : "Cut", + "copyMB" : "Copy", + "pasteMB" : "Paste", + "deleteMB" : "Delete", + "selectAllMB" : "Select all", + "preferencesMB" : "Preferences", + + "languageMBB" : "Language", + "englishMRB" : "English", + "swedishMRB" : "Swedish", + + "newTBB" : "New", + "copyTBB" : "Copy", + "cutTBB" : "Cut", + "pasteTBB" : "Paste", + + "statusL" : "Ready" +} Property changes on: trunk/qooxdoo/source/contributed/locals_olsson/Locale_en_GB.js ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/qooxdoo/source/contributed/locals_olsson/Locale_sv_SE.js =================================================================== --- trunk/qooxdoo/source/contributed/locals_olsson/Locale_sv_SE.js (rev 0) +++ trunk/qooxdoo/source/contributed/locals_olsson/Locale_sv_SE.js 2006-03-28 12:05:04 UTC (rev 2741) @@ -0,0 +1,31 @@ +{ + "frameTitle" : "Test av Locale", + + "fileMBB" : "Fil", + "newMB" : "Ny", + "openMB" : "Öppna", + "saveAsMB" : "Spara som", + "closeMB" : "Stäng", + "exitMB" : "Avsluta", + + "editMBB" : "Redigera", + "undoMB" : "Backa", + "redoMB" : "Återskapa", + "cutMB" : "Klipp ut", + "copyMB" : "Kopiera", + "pasteMB" : "Klistra in", + "deleteMB" : "Radera", + "selectAllMB" : "Välj alla", + "preferencesMB" : "Inställningar", + + "languageMBB" : "Språk", + "englishMRB" : "Engelska", + "swedishMRB" : "Svenska", + + "newTBB" : "Ny", + "copyTBB" : "Kopiera", + "cutTBB" : "Klipp ut", + "pasteTBB" : "Klistra in", + + "statusL" : "Färdig" +} Property changes on: trunk/qooxdoo/source/contributed/locals_olsson/Locale_sv_SE.js ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/qooxdoo/source/contributed/locals_olsson/QxLocale.js =================================================================== --- trunk/qooxdoo/source/contributed/locals_olsson/QxLocale.js (rev 0) +++ trunk/qooxdoo/source/contributed/locals_olsson/QxLocale.js 2006-03-28 12:05:04 UTC (rev 2741) @@ -0,0 +1,217 @@ +/* **************************************************************************** + + qooxdoo - the new era of web interface development + + Version: + $Id: QxLocale.js,v 1.1.2.2 2005/11/22 23:50:35 kols Exp $ + + Copyright: + (C) 2004-2005 by Schlund + Partner AG, Germany + All rights reserved + + License: + LGPL 2.1: http://creativecommons.org/licenses/LGPL/2.1/ + + Internet: + * http://qooxdoo.oss.schlund.de + + Authors: + * Kent Olsson (kols) + <kent dot olsson at chello dot se> + +**************************************************************************** */ + +/* **************************************************************************** + +#package(core) +#require() + +**************************************************************************** */ + +function QxLocale(vLanguage, vCountry, vVariant) { + QxObject.call(this); + + if(QxUtil.isValidString(vLanguage)) { + this.setLanguage(vLanguage); + }; + + if(QxUtil.isValidString(vCountry)) { + this.setCountry(vCountry); + }; + + if(QxUtil.isValidString(vVariant)) { + this.setVariant(vVariant); + }; +}; + +QxLocale.extend(QxObject, "QxLocale"); + + +/* +------------------------------------------------------------------------------------ + PROPERTIES +------------------------------------------------------------------------------------ +*/ + +/*! + The language code for this locale, which will either be the empty string or a lowercase ISO 639 code. +*/ +QxLocale.addProperty({ name : "language", type : QxConst.TYPEOF_STRING, defaultValue : "en" }); + +/*! + The country/region code for this locale, which will either be the empty string or an uppercase ISO 3166 2-letter code. +*/ +QxLocale.addProperty({ name : "country", type : QxConst.TYPEOF_STRING, defaultValue : "GB" }); + +/*! + The variant code for this locale. +*/ +QxLocale.addProperty({ name : "variant", type : QxConst.TYPEOF_STRING, defaultValue : "" }); + + +QxLocale.DEFAULT_LOCALE = new QxLocale("en", "GB", null); + +/* +--------------------------------------------------------------------------- + MODIFIER +--------------------------------------------------------------------------- +*/ + +proto._modifyLanguage = function(propValue, propOldValue, propData) +{ + this.setCountry(null); + this.setVariant(null); + + return true; +}; + +proto._modifyCountry = function(propValue, propOldValue, propData) +{ + if(propValue != propOldValue) + { + if(this._checkLanguage(propValue)) + { + this.setVariant(null); + + return true; + } + else + { + return false; + }; + }; + + return true; +}; + +proto._modifyVariant = function(propValue, propOldValue, propData) +{ + if(propValue != propOldValue) + { + if(this._checkLanguageCountry(propValue)) + { + return true; + } + else + { + return false; + }; + }; + + return true; +}; + + +/* +------------------------------------------------------------------------------------ + UTILITIES +------------------------------------------------------------------------------------ +*/ + +proto._checkLanguage = function() +{ + return true; +}; + +proto._checkLanguageCountry = function() +{ + return true; +}; + +proto.isEqual = function(locale) { + if(this.getLanguage() == locale.getLanguage() && this.getCountry() == locale.getCountry() && this.getVariatn() == locale.getVariant()) + { + return true; + } + else + { + return false; + }; +}; + +proto.getAvailableLocales = function() { +// var req = new QxPostRequest( '../locale/locales.xml'); //?param=value +// req.addEventListener('completed', function(e) { +// return e.getData(); +// }); +// req.send(); +}; + +// Gets the current value of the default locale. +proto.getDefault = function() { + return QxLocale.DEFAULT_LOCALE; +}; + +proto.getDisplayCountry = function(locale) { +// Returns a name for the locale's country that is appropriate for display to the user. +}; + +proto.getDisplayLanguage = function(locale) { +// Returns a name for the locale's language that is appropriate for display to the user. +}; + +proto.getDisplayName = function(locale) { +// Returns a name for the locale that is appropriate for display to the user. +}; + +proto.getDisplayVariant = function(locale) { +// Returns a name for the locale's variant code that is appropriate for display to the user. +}; + +proto.getISO3Country = function() { +// Returns a three-letter abbreviation for this locale's country. +}; + +proto.getISO3Language = function() { +// Returns a three-letter abbreviation for this locale's language. +}; + +proto.getISOCountries = function() { +// Returns a list of all 2-letter country codes defined in ISO 3166. +}; + +proto.getISOLanguages = function() { +// Returns a list of all 2-letter language codes defined in ISO 639. +}; + +// Sets the default locale. +proto.setDefault = function(locale) { + if(QxUtil.isValidObject(locale)) { + QxLocale.DEFAULT_LOCALE = locale; + }; +}; + +/* +------------------------------------------------------------------------------------ + DISPOSER +------------------------------------------------------------------------------------ +*/ + +proto.dispose = function() +{ + if (this.getDisposed()) { + return true; + }; + + return QxObject.prototype.dispose.call(this); +}; Property changes on: trunk/qooxdoo/source/contributed/locals_olsson/QxLocale.js ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/qooxdoo/source/contributed/locals_olsson/QxLocaleManager.js =================================================================== --- trunk/qooxdoo/source/contributed/locals_olsson/QxLocaleManager.js (rev 0) +++ trunk/qooxdoo/source/contributed/locals_olsson/QxLocaleManager.js 2006-03-28 12:05:04 UTC (rev 2741) @@ -0,0 +1,75 @@ +/* ************************************************************************ + + qooxdoo - the new era of web interface development + + Copyright: + (C) 2004-2006 by Schlund + Partner AG, Germany + All rights reserved + + License: + LGPL 2.1: http://creativecommons.org/licenses/LGPL/2.1/ + + Internet: + * http://qooxdoo.oss.schlund.de + + Authors: + * Kent Olsson (kols) + <kent dot olsson at chello dot se> + +************************************************************************ */ + +/* ************************************************************************ + +#package(locale) + +************************************************************************ */ + +/*! + This singleton manages multiple instances of QxLocale. +*/ +function QxLocaleManager(){ + QxManager.call(this); + + this.setCurrentLocale(QxLocale.DEFAULT_LOCALE); +}; + +QxLocaleManager.extend(QxManager, "QxLocaleManager"); + + +QxLocaleManager.addProperty({ name : "currentLocale", type : QxConst.TYPEOF_OBJECT }); + +/* +--------------------------------------------------------------------------- + MODIFIER +--------------------------------------------------------------------------- +*/ + +proto._modifyCurrentLocale = function(propValue, propOldValue, propData) +{ + QxWidget.flushGlobalQueues(); + + return true; +}; + +/* +--------------------------------------------------------------------------- + DISPOSER +--------------------------------------------------------------------------- +*/ + +proto.dispose = function() +{ + if (this.getDisposed()) { + return; + }; + + QxObject.prototype.dispose.call(this); +}; + +/* +--------------------------------------------------------------------------- + SINGLETON INSTANCE +--------------------------------------------------------------------------- +*/ + +QxLocaleManager = new QxLocaleManager(); Property changes on: trunk/qooxdoo/source/contributed/locals_olsson/QxLocaleManager.js ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/qooxdoo/source/contributed/locals_olsson/QxResource.js =================================================================== --- trunk/qooxdoo/source/contributed/locals_olsson/QxResource.js (rev 0) +++ trunk/qooxdoo/source/contributed/locals_olsson/QxResource.js 2006-03-28 12:05:04 UTC (rev 2741) @@ -0,0 +1,240 @@ +/* **************************************************************************** + + qooxdoo - the new era of web interface development + + Version: + $Id: QxResource.js,v 1.1.2.2 2005/11/22 23:50:35 kols Exp $ + + Copyright: + (C) 2004-2005 by Schlund + Partner AG, Germany + All rights reserved + + License: + LGPL 2.1: http://creativecommons.org/licenses/LGPL/2.1/ + + Internet: + * http://qooxdoo.oss.schlund.de + + Authors: + * Kent Olsson (kols) + <kent dot olsson at chello dot se> + +**************************************************************************** */ + +/* **************************************************************************** + +#package(core) +#require() + +**************************************************************************** */ + +function QxResource(vResource, vLocale) { + QxObject.call(this); + + if(QxUtil.isValidString(vResource)) { + this.setResource(vResource); + }; + + if(QxUtil.isValidObject(vLocale)) { + this.setLocale(vLocale); + }; + + this.loadResource(vResource, vLocale); +}; + +QxResource.extend(QxObject, "QxResource"); + + +/* +------------------------------------------------------------------------------------ + PROPERTIES +------------------------------------------------------------------------------------ +*/ + +/*! + The ressource file with language text. +*/ +QxResource.addProperty({ name : "resource", type : QxConst.TYPEOF_STRING }); + +/*! + The locale if not use the defined application or system locale. +*/ +QxResource.addProperty({ name : "locale", type : QxConst.TYPEOF_OBJECT }); + + +/* +------------------------------------------------------------------------------------ + MODIFIERS +------------------------------------------------------------------------------------ +*/ + +proto._modifyResource = function(propValue, propOldValue, propData) +{ + if(propOldValue) + { + if (this._request) + { + this._request.dispose(); + this._request = null; + }; + }; + + if(propValue) + { + this.loadResource(propValue); + }; + + return true; +}; + +proto._modifyLocale = function(propValue, propOldValue, propData) +{ + if(propOldValue) + { + propOldValue.dispose(); + propOldValue = null; + + if (this._request) + { + this._request.dispose(); + this._request = null; + }; + }; + + if(propValue) + { + this.loadResource(this.getResource(), propValue); + }; + + return true; +}; + +/* +------------------------------------------------------------------------------------ + UTILITIES +------------------------------------------------------------------------------------ +*/ + +proto.loadResource = function(vResource, vLocale) +{ + if(!vResource) + { + vResource = this.getResource(); + }; + + if(!vLocale) + { + if(this.getLocale()) + { + vLocale = this.getLocale(); + } + else + { + vLocale = QxLocaleManager.getCurrentLocale(); + }; + }; + + if(vLocale.getLanguage()) + { + vResource += "_" + vLocale.getLanguage(); + }; + + if(vLocale.getCountry()) + { + vResource += "_" + vLocale.getCountry(); + }; + + if(vLocale.getVariant()) + { + vResource += "_" + vLocale.getCountry(); + }; + + vResource += ".js"; + + var self = this; + + var req = this._request = new QxGetRequest(vResource); + req.setAsynchronous(false); + req.setMimeType("text/json"); + req.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); + req.addEventListener("sending", function(e) { +// QxDebug.setValue("Sending"); + }); + req.addEventListener("receiving", function(e) { +// QxDebug.setValue("Receiving"); + }); + req.addEventListener("completed", function(e) + { +// QxDebug.setValue("Failed"); +// QxDebug.setValue(e.getData().getResponseHeader("Content-Type")); +// QxDebug.setValue(e.getData().getResponseHeader("Content-Length")); +// QxDebug.setValue(e.getData().getStatusCode().toString()); + self._content = e.getData().getContent(); + }); + req.addEventListener("failed", function(e) + { +// QxDebug.setValue("Failed"); +// QxDebug.setValue(e.getData().getResponseHeader("Content-Type")); +// QxDebug.setValue(e.getData().getResponseHeader("Content-Length")); +// QxDebug.setValue(e.getData().getStatusCode().toString()); +// QxDebug.setValue(e.getData().getContent()); + }); + req.addEventListener("timeout", function(e) + { +// QxDebug.setValue("Timeout"); +// QxDebug.setValue(e.getData().getResponseHeader("Content-Type")); +// QxDebug.setValue(e.getData().getResponseHeader("Content-Length")); +// QxDebug.setValue(e.getData().getStatusCode().toString()); +// QxDebug.setValue(e.getData().getContent()); + }); + req.addEventListener("aborted", function(e) + { +// QxDebug.setValue("Aborted"); +// QxDebug.setValue(e.getData().getResponseHeader("Content-Type")); +// QxDebug.setValue(e.getData().getResponseHeader("Content-Length")); +// QxDebug.setValue(e.getData().getStatusCode().toString()); +// QxDebug.setValue(e.getData().getContent()); + }); + + req.send(); +}; + +proto.getKey = function(value) +{ + for(i=0; i < this._content.length; i++) + { + if(this._content[i].value = value) + { + return this._content[i].key; + }; + }; +}; + +proto.getValue = function(key) +{ + return this._content[key]; +}; + + +/* +------------------------------------------------------------------------------------ + DISPOSER +------------------------------------------------------------------------------------ +*/ + +proto.dispose = function() +{ + if (this.getDisposed()) { + return true; + }; + + if (this._request) + { + this._request.dispose(); + this._request = null; + }; + + delete this._content; + + return QxObject.prototype.dispose.call(this); +}; Property changes on: trunk/qooxdoo/source/contributed/locals_olsson/QxResource.js ___________________________________________________________________ Name: svn:eol-style + native Added: trunk/qooxdoo/source/contributed/locals_olsson/README =================================================================== --- trunk/qooxdoo/source/contributed/locals_olsson/README (rev 0) +++ trunk/qooxdoo/source/contributed/locals_olsson/README 2006-03-28 12:05:04 UTC (rev 2741) @@ -0,0 +1,29 @@ +The QxLocale class is intended for use to make localization possible for an application. The language, country and a variant can be et for multiple items at the same time with a default locale if necessary. + +Files +===== +QxLocale.js The locale class. +QxLocaleManager.js The manager class of the locale. +QxResource.js The resource class. +Definitions.js The class definitions not yet implemented in the Qooxdoo framework. +Locale_1.html The example class. + + +Class Relationship +================== +The QxLocaleManager manages the current QxLocale for an application. The QxResource gets the localised data from files by the transport mechanism implemented. + +Usage +===== +The class can be used in any application by adding the following two lines in your code. The Definitions.js file includes the setup of static as well as dynamic variable data for the class to be created, which has not yet been included in the Qooxdoo framework. + +<script type="text/javascript" src="qooxdoo/source/contributed/locale_olsson/Definitions.js"></script> +<script type="text/javascript" src="qooxdoo/source/contributed/locale_olsson/QxLocale.js"></script> +<script type="text/javascript" src="qooxdoo/source/contributed/locale_olsson/QxLocaleManager.js"></script> +<script type="text/javascript" src="qooxdoo/source/contributed/locale_olsson/QxResource.js"></script> + +You have to change the path in relation to your own code. + +The Demo Class +============== +Shows creation of a simple frame with a main menu bar, tool bar and a status bar. There is a menu alternative for changing the language of the frame. Property changes on: trunk/qooxdoo/source/contributed/locals_olsson/README ___________________________________________________________________ Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |