The branch, master has been updated via 96be56ea40007aff24f47d8d517eff5fd0bb7220 (commit) from 90e7b7518981cefbd2e6386b2a69b24cfb37a04a (commit)
- Log ----------------------------------------------------------------- commit 96be56ea40007aff24f47d8d517eff5fd0bb7220 Author: Michal Čihař mcihar@suse.cz Date: Mon Aug 8 17:41:09 2011 +0200
Adjust switch blocks to PEAR coding standards
-----------------------------------------------------------------------
Summary of changes: libraries/select_lang.lib.php | 256 ++++++++++++++++++++-------------------- 1 files changed, 128 insertions(+), 128 deletions(-)
diff --git a/libraries/select_lang.lib.php b/libraries/select_lang.lib.php index a3627b1..7fb65f6 100644 --- a/libraries/select_lang.lib.php +++ b/libraries/select_lang.lib.php @@ -186,134 +186,134 @@ function PMA_langDetect($str, $envType) function PMA_langDetails($lang) { switch ($lang) { - case 'af': - return array('af|afrikaans', 'af', ''); - case 'ar': - return array('ar|arabic', 'ar', 'العربية'); - case 'az': - return array('az|azerbaijani', 'az', 'Azərbaycanca'); - case 'bn': - return array('bn|bangla', 'bn', 'বাংলা'); - case 'be': - return array('be|belarusian', 'be', 'Беларуская'); - case 'be@latin': - return array('be[-_]lat|belarusian latin', 'be-lat', 'Biełaruskaja'); - case 'bg': - return array('bg|bulgarian', 'bg', 'Български'); - case 'bs': - return array('bs|bosnian', 'bs', 'Bosanski'); - case 'br': - return array('br|breton', 'br', 'Brezhoneg'); - case 'ca': - return array('ca|catalan', 'ca', 'Català'); - case 'cs': - return array('cs|czech', 'cs', 'Čeština'); - case 'cy': - return array('cy|welsh', 'cy', 'Cymraeg'); - case 'da': - return array('da|danish', 'da', 'Dansk'); - case 'de': - return array('de|german', 'de', 'Deutsch'); - case 'el': - return array('el|greek', 'el', 'Ελληνικά'); - case 'en': - return array('en|english', 'en', ''); - case 'en_GB': - return array('en[_-]gb|english (United Kingdom)', 'en-gb', ''); - case 'es': - return array('es|spanish', 'es', 'Español'); - case 'et': - return array('et|estonian', 'et', 'Eesti'); - case 'eu': - return array('eu|basque', 'eu', 'Euskara'); - case 'fa': - return array('fa|persian', 'fa', 'فارسی'); - case 'fi': - return array('fi|finnish', 'fi', 'Suomi'); - case 'fr': - return array('fr|french', 'fr', 'Français'); - case 'gl': - return array('gl|galician', 'gl', 'Galego'); - case 'he': - return array('he|hebrew', 'he', 'עברית'); - case 'hi': - return array('hi|hindi', 'hi', 'हिन्दी'); - case 'hr': - return array('hr|croatian', 'hr', 'Hrvatski'); - case 'hu': - return array('hu|hungarian', 'hu', 'Magyar'); - case 'id': - return array('id|indonesian', 'id', 'Bahasa Indonesia'); - case 'it': - return array('it|italian', 'it', 'Italiano'); - case 'ja': - return array('ja|japanese', 'ja', '日本語'); - case 'ko': - return array('ko|korean', 'ko', '한국어'); - case 'ka': - return array('ka|georgian', 'ka', 'ქართული'); - case 'lt': - return array('lt|lithuanian', 'lt', 'Lietuvių'); - case 'lv': - return array('lv|latvian', 'lv', 'Latviešu'); - case 'mk': - return array('mk|macedonian', 'mk', 'Macedonian'); - case 'mn': - return array('mn|mongolian', 'mn', 'Монгол'); - case 'ms': - return array('ms|malay', 'ms', 'Bahasa Melayu'); - case 'nl': - return array('nl|dutch', 'nl', 'Nederlands'); - case 'nb': - return array('nb|norwegian', 'nb', 'Norsk'); - case 'pl': - return array('pl|polish', 'pl', 'Polski'); - case 'pt_BR': - return array('pt[-_]br|brazilian portuguese', 'pt-BR', 'Português'); - case 'pt': - return array('pt|portuguese', 'pt', 'Português'); - case 'ro': - return array('ro|romanian', 'ro', 'Română'); - case 'ru': - return array('ru|russian', 'ru', 'Русский'); - case 'si': - return array('si|sinhala', 'si', 'සිංහල'); - case 'sk': - return array('sk|slovak', 'sk', 'Slovenčina'); - case 'sl': - return array('sl|slovenian', 'sl', 'Slovenščina'); - case 'sq': - return array('sq|albanian', 'sq', 'Shqip'); - case 'sr@latin': - return array('sr[-_]lat|serbian latin', 'sr-lat', 'Srpski'); - case 'sr': - return array('sr|serbian', 'sr', 'Српски'); - case 'sv': - return array('sv|swedish', 'sv', 'Svenska'); - case 'ta': - return array('ta|tamil', 'ta', 'தமிழ்'); - case 'te': - return array('te|telugu', 'te', 'తెలుగు'); - case 'th': - return array('th|thai', 'th', 'ภาษาไทย'); - case 'tr': - return array('tr|turkish', 'tr', 'Türkçe'); - case 'tt': - return array('tt|tatarish', 'tt', 'Tatarça'); - case 'ug': - return array('ug|uyghur', 'ug', 'ئۇيغۇرچە'); - case 'uk': - return array('uk|ukrainian', 'uk', 'Українська'); - case 'ur': - return array('ur|urdu', 'ur', 'اُردوُ'); - case 'uz@latin': - return array('uz[-_]lat|uzbek-latin', 'uz-lat', 'O‘zbekcha'); - case 'uz': - return array('uz[-_]cyr|uzbek-cyrillic', 'uz-cyr', 'Ўзбекча'); - case 'zh_TW': - return array('zh[-_](tw|hk)|chinese traditional', 'zh-TW', '中文'); - case 'zh_CN': - return array('zh|chinese simplified', 'zh', '中文'); + case 'af': + return array('af|afrikaans', 'af', ''); + case 'ar': + return array('ar|arabic', 'ar', 'العربية'); + case 'az': + return array('az|azerbaijani', 'az', 'Azərbaycanca'); + case 'bn': + return array('bn|bangla', 'bn', 'বাংলা'); + case 'be': + return array('be|belarusian', 'be', 'Беларуская'); + case 'be@latin': + return array('be[-_]lat|belarusian latin', 'be-lat', 'Biełaruskaja'); + case 'bg': + return array('bg|bulgarian', 'bg', 'Български'); + case 'bs': + return array('bs|bosnian', 'bs', 'Bosanski'); + case 'br': + return array('br|breton', 'br', 'Brezhoneg'); + case 'ca': + return array('ca|catalan', 'ca', 'Català'); + case 'cs': + return array('cs|czech', 'cs', 'Čeština'); + case 'cy': + return array('cy|welsh', 'cy', 'Cymraeg'); + case 'da': + return array('da|danish', 'da', 'Dansk'); + case 'de': + return array('de|german', 'de', 'Deutsch'); + case 'el': + return array('el|greek', 'el', 'Ελληνικά'); + case 'en': + return array('en|english', 'en', ''); + case 'en_GB': + return array('en[_-]gb|english (United Kingdom)', 'en-gb', ''); + case 'es': + return array('es|spanish', 'es', 'Español'); + case 'et': + return array('et|estonian', 'et', 'Eesti'); + case 'eu': + return array('eu|basque', 'eu', 'Euskara'); + case 'fa': + return array('fa|persian', 'fa', 'فارسی'); + case 'fi': + return array('fi|finnish', 'fi', 'Suomi'); + case 'fr': + return array('fr|french', 'fr', 'Français'); + case 'gl': + return array('gl|galician', 'gl', 'Galego'); + case 'he': + return array('he|hebrew', 'he', 'עברית'); + case 'hi': + return array('hi|hindi', 'hi', 'हिन्दी'); + case 'hr': + return array('hr|croatian', 'hr', 'Hrvatski'); + case 'hu': + return array('hu|hungarian', 'hu', 'Magyar'); + case 'id': + return array('id|indonesian', 'id', 'Bahasa Indonesia'); + case 'it': + return array('it|italian', 'it', 'Italiano'); + case 'ja': + return array('ja|japanese', 'ja', '日本語'); + case 'ko': + return array('ko|korean', 'ko', '한국어'); + case 'ka': + return array('ka|georgian', 'ka', 'ქართული'); + case 'lt': + return array('lt|lithuanian', 'lt', 'Lietuvių'); + case 'lv': + return array('lv|latvian', 'lv', 'Latviešu'); + case 'mk': + return array('mk|macedonian', 'mk', 'Macedonian'); + case 'mn': + return array('mn|mongolian', 'mn', 'Монгол'); + case 'ms': + return array('ms|malay', 'ms', 'Bahasa Melayu'); + case 'nl': + return array('nl|dutch', 'nl', 'Nederlands'); + case 'nb': + return array('nb|norwegian', 'nb', 'Norsk'); + case 'pl': + return array('pl|polish', 'pl', 'Polski'); + case 'pt_BR': + return array('pt[-_]br|brazilian portuguese', 'pt-BR', 'Português'); + case 'pt': + return array('pt|portuguese', 'pt', 'Português'); + case 'ro': + return array('ro|romanian', 'ro', 'Română'); + case 'ru': + return array('ru|russian', 'ru', 'Русский'); + case 'si': + return array('si|sinhala', 'si', 'සිංහල'); + case 'sk': + return array('sk|slovak', 'sk', 'Slovenčina'); + case 'sl': + return array('sl|slovenian', 'sl', 'Slovenščina'); + case 'sq': + return array('sq|albanian', 'sq', 'Shqip'); + case 'sr@latin': + return array('sr[-_]lat|serbian latin', 'sr-lat', 'Srpski'); + case 'sr': + return array('sr|serbian', 'sr', 'Српски'); + case 'sv': + return array('sv|swedish', 'sv', 'Svenska'); + case 'ta': + return array('ta|tamil', 'ta', 'தமிழ்'); + case 'te': + return array('te|telugu', 'te', 'తెలుగు'); + case 'th': + return array('th|thai', 'th', 'ภาษาไทย'); + case 'tr': + return array('tr|turkish', 'tr', 'Türkçe'); + case 'tt': + return array('tt|tatarish', 'tt', 'Tatarça'); + case 'ug': + return array('ug|uyghur', 'ug', 'ئۇيغۇرچە'); + case 'uk': + return array('uk|ukrainian', 'uk', 'Українська'); + case 'ur': + return array('ur|urdu', 'ur', 'اُردوُ'); + case 'uz@latin': + return array('uz[-_]lat|uzbek-latin', 'uz-lat', 'O‘zbekcha'); + case 'uz': + return array('uz[-_]cyr|uzbek-cyrillic', 'uz-cyr', 'Ўзбекча'); + case 'zh_TW': + return array('zh[-_](tw|hk)|chinese traditional', 'zh-TW', '中文'); + case 'zh_CN': + return array('zh|chinese simplified', 'zh', '中文'); } return array("$lang|$lang", $lang, $lang); }
hooks/post-receive