Page 1 of 1

Input request

Posted: Mon Jun 08, 2009 12:48 pm
by JeremyBASS
Hello, I am making a new mod called SiteUtilities... it does all types of things... but for now I need some input on the .htaccess creation part ...

I need to get a list all the Character encoding sets ($carArray for below) and languages ($langArray) that you could set in a .htaccess file.  

Also I'm more than happy to take requests on things to include for the .htaccess creation area as that is what I'm working on now... but please look at the svn first as there are tons of features in the .htaccess file creation... Thanks for the help

Cheers
jeremyBass


here is what I have... please add or correct ... I also need a list of Server_Timezones too now that I think about it...

Code: Select all

	$carArray= array('UTF-8'=>'UTF-8', 'ISO-8859-1'=>'ISO-8859-1');
	
	$langArray= array("Afar"=>"aa", "Abkhazian"=>"ab", "Afrikaans"=>"af", "Akan"=>"ak", "Albanian"=>"sq", "Amharic"=>"am", "Arabic"=>"ar", "Aragonese"=>"an", "Armenian"=>"hy", "Assamese"=>"as", "Avaric"=>"av", "Avestan"=>"ae", "Aymara"=>"ay", "Azerbaijani"=>"az", "Bashkir"=>"ba", "Bambara"=>"bm", "Basque"=>"eu", "Belarusian"=>"be", "Bengali"=>"bn", "Bihari"=>"bh", "Bislama"=>"bi", "Tibetan"=>"bo", "Bosnian"=>"bs", "Breton"=>"br", "Bulgarian"=>"bg", "Burmese"=>"my", "Catalan(Valencian)"=>"ca", "Czech"=>"cs", "Chamorro"=>"ch", "Chechen"=>"ce", "Chinese"=>"zh", "Slavic(Old-Slavonic)"=>"cu", "Chuvash"=>"cv", "Cornish"=>"kw", "Corsican"=>"co", "Cree"=>"cr", "Welsh"=>"cy", "Czech"=>"cs", "Danish"=>"da", "German"=>"de", "Divehi(Dhivehi;Maldivian)"=>"dv", "Dutch(Flemish)"=>"nl", "Dzongkha"=>"dz", "English"=>"en", "Esperanto"=>"eo", "Estonian"=>"et", "Basque"=>"eu", "Ewe"=>"ee", "Faroese"=>"fo", "Persian"=>"fa", "Fijian"=>"fj", "Finnish"=>"fi", "French"=>"fr", "Western-Frisian"=>"fy", "Fulah"=>"ff", "Georgian"=>"ka", "German"=>"de", "Gaelic(Scottish-Gaelic)"=>"gd", "Irish"=>"ga", "Galician"=>"gl", "Manx"=>"gv", "Greek(Modern)"=>"el", "Guarani"=>"gn", "Gujarati"=>"gu", "Haitian(Haitian;Creole)"=>"ht", "Hausa"=>"ha", "Hebrew"=>"he", "Herero"=>"hz", "Hindi"=>"hi", "Hiri-Motu"=>"ho", "Croatian"=>"hr", "Hungarian"=>"hu", "Armenian"=>"hy", "Igbo"=>"ig", "Icelandic"=>"is", "Ido"=>"io", "Sichuan(Yi)"=>"ii", "Inuktitut"=>"iu", "Interlingue"=>"ie", "Interlingua(IALA)"=>"ia", "Indonesian"=>"id", "Inupiaq"=>"ik", "Icelandic"=>"is", "Italian"=>"it", "Javanese"=>"jv", "Japanese"=>"ja", "Kalaallisut(Greenlandic)"=>"kl", "Kannada"=>"kn", "Kashmiri"=>"ks", "Georgian"=>"ka", "Kanuri"=>"kr", "Kazakh"=>"kk", "Central-Khmer"=>"km", "Kikuyu(Gikuyu)"=>"ki", "Kinyarwanda"=>"rw", "Kirghiz(Kyrgyz)"=>"ky", "Komi"=>"kv", "Kongo"=>"kg", "Korean"=>"ko", "Kuanyama(Kwanyama)"=>"kj", "Kurdish"=>"ku", "Lao"=>"lo", "Latin"=>"la", "Latvian"=>"lv", "Limburgan(Limburger;Limburgish)"=>"li", "Lingala"=>"ln", "Lithuanian"=>"lt", "Luxembourgish(Letzeburgesch)"=>"lb", "Luba-Katanga"=>"lu", "Ganda"=>"lg", "Macedonian"=>"mk", "Marshallese"=>"mh", "Malayalam"=>"ml", "Maori"=>"mi", "Marathi"=>"mr", "Malay"=>"ms", "Macedonian"=>"mk", "Malagasy"=>"mg", "Maltese"=>"mt", "Moldavian"=>"mo", "Mongolian"=>"mn", "Maori"=>"mi", "Malay"=>"ms", "Burmese"=>"my", "Nauru"=>"na", "Navajo(Navaho)"=>"nv", "Ndebele(South)"=>"nr", "Ndebele(North)"=>"nd", "Ndonga"=>"ng", "Nepali"=>"ne", "Dutch(Flemish)"=>"nl", "Norwegian(Nynorsk)"=>"nn", "Bokmal,Norwegian"=>"nb", "Norwegian"=>"no", "Chichewa(Chewa;Nyanja)"=>"ny", "Occitan(Provencal)"=>"oc", "Ojibwa"=>"oj", "Oriya"=>"or", "Oromo"=>"om", "Ossetian(Ossetic)"=>"os", "Panjabi(Punjabi)"=>"pa", "Persian"=>"fa", "Pali"=>"pi", "Polish"=>"pl", "Portuguese"=>"pt", "Pushto"=>"ps", "Quechua"=>"qu", "Romansh"=>"rm", "Romanian"=>"ro", "Romanian"=>"ro", "Rundi"=>"rn", "Russian"=>"ru", "Sango"=>"sg", "Sanskrit"=>"sa", "Serbian"=>"sr", "Croatian"=>"hr", "Sinhala(Sinhalese)"=>"si", "Slovak"=>"sk", "Slovak"=>"sk", "Slovenian"=>"sl", "Northern-Sami"=>"se", "Samoan"=>"sm", "Shona"=>"sn", "Sindhi"=>"sd", "Somali"=>"so", "Sotho(Southern)"=>"st", "Spanish(Castilian)"=>"es", "Albanian"=>"sq", "Sardinian"=>"sc", "Serbian"=>"sr", "Swati"=>"ss", "Sundanese"=>"su", "Swahili"=>"sw", "Swedish"=>"sv", "Tahitian"=>"ty", "Tamil"=>"ta", "Tatar"=>"tt", "Telugu"=>"te", "Tajik"=>"tg", "Tagalog"=>"tl", "Thai"=>"th", "Tibetan"=>"bo", "Tigrinya"=>"ti", "Tonga(Tonga-Islands)"=>"to", "Tswana"=>"tn", "Tsonga"=>"ts", "Turkmen"=>"tk", "Turkish"=>"tr", "Twi"=>"tw", "Uighur(Uyghur)"=>"ug", "Ukrainian"=>"uk", "Urdu"=>"ur", "Uzbek"=>"uz", "Venda"=>"ve", "Vietnamese"=>"vi", "Volapuk"=>"vo", "Welsh"=>"cy", "Walloon"=>"wa", "Wolof"=>"wo", "Xhosa"=>"xh", "Yiddish"=>"yi", "Yoruba"=>"yo", "Zhuang-Chuang"=>"za", "Chinese"=>"zh", "Zulu"=>"zu");



Re: Input request

Posted: Mon Jun 08, 2009 2:24 pm
by alby
JeremyBASS wrote: I need to get a list all the Character encoding sets ($carArray for below)
http://download.oracle.com/docs/cd/E148 ... zation.htm

JeremyBASS wrote: I also need a list of Server_Timezones too now that I think about it...
http://en.wikipedia.org/wiki/Time_zone
and
http://www.timeanddate.com/library/abbr ... timezones/

Alby

Re: Input request

Posted: Mon Jun 08, 2009 4:16 pm
by JeremyBASS
Thank you ably... so those leads.


here is where it's at... I think I'm off on the language ... but if anyone and everyone could confirm that I have all the encodings you could set in an .htaccess file that'd be super... I lost my glasses and won't get a new pair for a week or so ... so reading thou is a little hard.  I'd welcome a second and third set of eyes..


Thank you for the help.. the mod is moving along fast...

Cheers
Jeremy

Code: Select all

$carArray= array('UTF-8'=>'UTF-8', 'Big5'=>'Big5', 'EUC-JP'=>'EUC-JP', 'GB_2312-80'=>'GB_2312-80', 'GBK'=>'GBK', 'ISO-8859-1'=>'ISO-8859-1', 'ISO-8859-10'=>'ISO-8859-10', 'ISO-8859-13'=>'ISO-8859-13', 'ISO-8859-14'=>'ISO-8859-14', 'ISO-8859-15'=>'ISO-8859-15', 'ISO-8859-16'=>'ISO-8859-16', 'ISO-8859-2'=>'ISO-8859-2', 'ISO-8859-3'=>'ISO-8859-3', 'ISO-8859-4'=>'ISO-8859-4', 'ISO-8859-5'=>'ISO-8859-5', 'ISO-8859-6'=>'ISO-8859-6', 'ISO-8859-7'=>'ISO-8859-7', 'ISO-8859-8'=>'ISO-8859-8', 'ISO-8859-9'=>'ISO-8859-9', 'KOI8-R'=>'KOI8-R', 'Shift_JIS'=>'Shift_JIS', 'US-ASCII'=>'US-ASCII', 'UTF- 32'=>'UTF- 32', 'UTF-16'=>'UTF-16', 'UTF-16BE'=>'UTF-16BE', 'UTF-16LE'=>'UTF-16LE', 'UTF-32BE'=>'UTF-32BE', 'UTF-32LE'=>'UTF-32LE', 'windows-1250'=>'windows-1250', 'windows-1251'=>'windows-1251', 'windows-1252'=>'windows-1252', 'windows-1253'=>'windows-1253', 'windows-1254'=>'windows-1254', 'windows-1255'=>'windows-1255', 'windows-1256'=>'windows-1256', 'windows-1257'=>'windows-1257', 'windows-1258'=>'windows-1258');

	
	$langArray= array("Afar"=>"aa", "Abkhazian"=>"ab", "Afrikaans"=>"af", "Akan"=>"ak", "Albanian"=>"sq", "Amharic"=>"am", "Arabic"=>"ar", "Aragonese"=>"an", "Armenian"=>"hy", "Assamese"=>"as", "Avaric"=>"av", "Avestan"=>"ae", "Aymara"=>"ay", "Azerbaijani"=>"az", "Bashkir"=>"ba", "Bambara"=>"bm", "Basque"=>"eu", "Belarusian"=>"be", "Bengali"=>"bn", "Bihari"=>"bh", "Bislama"=>"bi", "Tibetan"=>"bo", "Bosnian"=>"bs", "Breton"=>"br", "Bulgarian"=>"bg", "Burmese"=>"my", "Catalan(Valencian)"=>"ca", "Czech"=>"cs", "Chamorro"=>"ch", "Chechen"=>"ce", "Chinese"=>"zh", "Slavic(Old-Slavonic)"=>"cu", "Chuvash"=>"cv", "Cornish"=>"kw", "Corsican"=>"co", "Cree"=>"cr", "Welsh"=>"cy", "Czech"=>"cs", "Danish"=>"da", "German"=>"de", "Divehi(Dhivehi;Maldivian)"=>"dv", "Dutch(Flemish)"=>"nl", "Dzongkha"=>"dz", "English"=>"en", "Esperanto"=>"eo", "Estonian"=>"et", "Basque"=>"eu", "Ewe"=>"ee", "Faroese"=>"fo", "Persian"=>"fa", "Fijian"=>"fj", "Finnish"=>"fi", "French"=>"fr", "Western-Frisian"=>"fy", "Fulah"=>"ff", "Georgian"=>"ka", "German"=>"de", "Gaelic(Scottish-Gaelic)"=>"gd", "Irish"=>"ga", "Galician"=>"gl", "Manx"=>"gv", "Greek(Modern)"=>"el", "Guarani"=>"gn", "Gujarati"=>"gu", "Haitian(Haitian;Creole)"=>"ht", "Hausa"=>"ha", "Hebrew"=>"he", "Herero"=>"hz", "Hindi"=>"hi", "Hiri-Motu"=>"ho", "Croatian"=>"hr", "Hungarian"=>"hu", "Armenian"=>"hy", "Igbo"=>"ig", "Icelandic"=>"is", "Ido"=>"io", "Sichuan(Yi)"=>"ii", "Inuktitut"=>"iu", "Interlingue"=>"ie", "Interlingua(IALA)"=>"ia", "Indonesian"=>"id", "Inupiaq"=>"ik", "Icelandic"=>"is", "Italian"=>"it", "Javanese"=>"jv", "Japanese"=>"ja", "Kalaallisut(Greenlandic)"=>"kl", "Kannada"=>"kn", "Kashmiri"=>"ks", "Georgian"=>"ka", "Kanuri"=>"kr", "Kazakh"=>"kk", "Central-Khmer"=>"km", "Kikuyu(Gikuyu)"=>"ki", "Kinyarwanda"=>"rw", "Kirghiz(Kyrgyz)"=>"ky", "Komi"=>"kv", "Kongo"=>"kg", "Korean"=>"ko", "Kuanyama(Kwanyama)"=>"kj", "Kurdish"=>"ku", "Lao"=>"lo", "Latin"=>"la", "Latvian"=>"lv", "Limburgan(Limburger;Limburgish)"=>"li", "Lingala"=>"ln", "Lithuanian"=>"lt", "Luxembourgish(Letzeburgesch)"=>"lb", "Luba-Katanga"=>"lu", "Ganda"=>"lg", "Macedonian"=>"mk", "Marshallese"=>"mh", "Malayalam"=>"ml", "Maori"=>"mi", "Marathi"=>"mr", "Malay"=>"ms", "Macedonian"=>"mk", "Malagasy"=>"mg", "Maltese"=>"mt", "Moldavian"=>"mo", "Mongolian"=>"mn", "Maori"=>"mi", "Malay"=>"ms", "Burmese"=>"my", "Nauru"=>"na", "Navajo(Navaho)"=>"nv", "Ndebele(South)"=>"nr", "Ndebele(North)"=>"nd", "Ndonga"=>"ng", "Nepali"=>"ne", "Dutch(Flemish)"=>"nl", "Norwegian(Nynorsk)"=>"nn", "Bokmal,Norwegian"=>"nb", "Norwegian"=>"no", "Chichewa(Chewa;Nyanja)"=>"ny", "Occitan(Provencal)"=>"oc", "Ojibwa"=>"oj", "Oriya"=>"or", "Oromo"=>"om", "Ossetian(Ossetic)"=>"os", "Panjabi(Punjabi)"=>"pa", "Persian"=>"fa", "Pali"=>"pi", "Polish"=>"pl", "Portuguese"=>"pt", "Pushto"=>"ps", "Quechua"=>"qu", "Romansh"=>"rm", "Romanian"=>"ro", "Romanian"=>"ro", "Rundi"=>"rn", "Russian"=>"ru", "Sango"=>"sg", "Sanskrit"=>"sa", "Serbian"=>"sr", "Croatian"=>"hr", "Sinhala(Sinhalese)"=>"si", "Slovak"=>"sk", "Slovak"=>"sk", "Slovenian"=>"sl", "Northern-Sami"=>"se", "Samoan"=>"sm", "Shona"=>"sn", "Sindhi"=>"sd", "Somali"=>"so", "Sotho(Southern)"=>"st", "Spanish(Castilian)"=>"es", "Albanian"=>"sq", "Sardinian"=>"sc", "Serbian"=>"sr", "Swati"=>"ss", "Sundanese"=>"su", "Swahili"=>"sw", "Swedish"=>"sv", "Tahitian"=>"ty", "Tamil"=>"ta", "Tatar"=>"tt", "Telugu"=>"te", "Tajik"=>"tg", "Tagalog"=>"tl", "Thai"=>"th", "Tibetan"=>"bo", "Tigrinya"=>"ti", "Tonga(Tonga-Islands)"=>"to", "Tswana"=>"tn", "Tsonga"=>"ts", "Turkmen"=>"tk", "Turkish"=>"tr", "Twi"=>"tw", "Uighur(Uyghur)"=>"ug", "Ukrainian"=>"uk", "Urdu"=>"ur", "Uzbek"=>"uz", "Venda"=>"ve", "Vietnamese"=>"vi", "Volapuk"=>"vo", "Welsh"=>"cy", "Walloon"=>"wa", "Wolof"=>"wo", "Xhosa"=>"xh", "Yiddish"=>"yi", "Yoruba"=>"yo", "Zhuang-Chuang"=>"za", "Chinese"=>"zh", "Zulu"=>"zu");


	$timeZones = array('us/pacific'=>'us/pacific', 'can/atlantic'=>'can/atlantic', 'us/eastern'=>'us/eastern', 'st/eastern'=>'st/eastern', 'can/eastern'=>'can/eastern', 'us/central'=>'us/central', 'us/mountain'=>'us/mountain', 'st/mountain'=>'st/mountain', 'can/mountain'=>'can/mountain', 'can/pacific'=>'can/pacific', 'us/alaska'=>'us/alaska', 'us/hawaii'=>'us/hawaii', 'st/hawaii'=>'st/hawaii', 'st/samoa'=>'st/samoa', 'st/japan'=>'st/japan', 'st/china'=>'st/china', 'hongkong'=>'hongkong', 'singapore'=>'singapore', 'aust/nsw'=>'aust/nsw', 'aust/tasmania'=>'aust/tasmania', 'aust/victoria'=>'aust/victoria', 'aust/south'=>'aust/south', 'st/caustralia'=>'st/caustralia', 'aust/western'=>'aust/western', 'newzealand'=>'newzealand', 'utc'=>'utc', 'britain'=>'britain', 'europe/west'=>'europe/west', 'europe/central'=>'europe/central', 'europe/east'=>'europe/east');


Re: Input request

Posted: Wed Jun 10, 2009 3:04 am
by JeremyBASS
I think the language array is wrong/or I pulled the wrong list as I check my .htaccess files for all sites and the one where I set the language has en-US and in the list I has just en... so if someone would confirm that'd be great... thank you .. Jeremy

Re: Input request

Posted: Wed Jun 10, 2009 7:39 am
by alby
JeremyBASS wrote: I think the language array is wrong/or I pulled the wrong list
:)
If you do not know how I do to know?

Alby

Re: Input request

Posted: Wed Jun 10, 2009 12:18 pm
by JeremyBASS
Oh I don't mean you had to know... just looking for anyone to confirm or take a peek and see... I'll be looking around later, but it was more of if someone knew of the top of their head types of questions...

Cheers
Jeremy

Re: Input request

Posted: Wed Jun 10, 2009 1:10 pm
by JeremyBASS
Oh Alby... Now that I think of it... you could let me know if this is right for your langue...

"Italian"=>"it"

Cheers
Jeremy

Re: Input request

Posted: Wed Jun 10, 2009 2:37 pm
by alby
JeremyBASS wrote: Oh Alby... Now that I think of it... you could let me know if this is right for your langue...

"Italian"=>"it"
"Italiano"=>"it"

If you look in TranslationManager module, there is a xml file with "native language" (not all but with CMSMS supported languages only)

Alby

Re: Input request

Posted: Wed Jun 10, 2009 11:27 pm
by JeremyBASS
Ah... wonderful idea... thank you...

Jeremy