From 903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 Mon Sep 17 00:00:00 2001 From: ctrlaltca <> Date: Thu, 12 Jul 2012 11:21:01 +0000 Subject: standardize the use of unix eol; use svn properties to enforce native eol --- framework/I18N/TGlobalizationAutoDetect.php | 96 ++++++++++++++--------------- 1 file changed, 48 insertions(+), 48 deletions(-) (limited to 'framework/I18N/TGlobalizationAutoDetect.php') diff --git a/framework/I18N/TGlobalizationAutoDetect.php b/framework/I18N/TGlobalizationAutoDetect.php index 36273867..5d8a7677 100644 --- a/framework/I18N/TGlobalizationAutoDetect.php +++ b/framework/I18N/TGlobalizationAutoDetect.php @@ -1,49 +1,49 @@ - - * @link http://www.pradosoft.com/ + + * @link http://www.pradosoft.com/ * @copyright Copyright © 2005-2012 PradoSoft - * @license http://www.pradosoft.com/license/ - * @version $Revision: 1.66 $ $Date: ${DATE} ${TIME} $ - * @package System.I18N - */ - -/** - * Import the HTTPNeogtiator - */ -Prado::using('System.I18N.core.HTTPNegotiator'); - -/** - * TGlobalizationAutoDetect class will automatically try to resolve the default - * culture using the user browser language settings. - * - * @author Wei Zhuo - * @version $Revision: 1.66 $ $Date: ${DATE} ${TIME} $ - * @package System.I18N - */ -class TGlobalizationAutoDetect extends TGlobalization -{ - private $_detectedLanguage; - - public function init($xml) - { - parent::init($xml); - - //set the culture according to browser language settings - $http = new HTTPNegotiator(); - $languages = $http->getLanguages(); - if(count($languages) > 0) - { - $this->_detectedLanguage=$languages[0]; - $this->setCulture($languages[0]); - } - } - - public function getDetectedLanguage() - { - return $this->_detectedLanguage; - } -} - + * @license http://www.pradosoft.com/license/ + * @version $Revision: 1.66 $ $Date: ${DATE} ${TIME} $ + * @package System.I18N + */ + +/** + * Import the HTTPNeogtiator + */ +Prado::using('System.I18N.core.HTTPNegotiator'); + +/** + * TGlobalizationAutoDetect class will automatically try to resolve the default + * culture using the user browser language settings. + * + * @author Wei Zhuo + * @version $Revision: 1.66 $ $Date: ${DATE} ${TIME} $ + * @package System.I18N + */ +class TGlobalizationAutoDetect extends TGlobalization +{ + private $_detectedLanguage; + + public function init($xml) + { + parent::init($xml); + + //set the culture according to browser language settings + $http = new HTTPNegotiator(); + $languages = $http->getLanguages(); + if(count($languages) > 0) + { + $this->_detectedLanguage=$languages[0]; + $this->setCulture($languages[0]); + } + } + + public function getDetectedLanguage() + { + return $this->_detectedLanguage; + } +} + -- cgit v1.2.3