protected function createSelect2Package() {
		
		$jsFiles = array($this->minify ? 'select2.min.js' : 'select2.js');

		if (strpos(Yii::app()->language, 'en') !== 0) {
			$locale = 'select2_locale_'. substr(Yii::app()->language, 0, 2). '.js';
			if (@file_exists(Yii::getPathOfAlias('booster.assets.select2') . DIRECTORY_SEPARATOR . $locale )) {
				$jsFiles[] = $locale;
			} else {
				$locale = 'select2_locale_'. Yii::app()->language . '.js';
				if (@file_exists(Yii::getPathOfAlias('booster.assets.select2') . DIRECTORY_SEPARATOR . $locale )) {
					$jsFiles[] = $locale;
				}else{
					$locale = 'select2_locale_'. substr(Yii::app()->language, 0, 2) . '-' . strtoupper(substr(Yii::app()->language, 3, 2)) . '.js';
					if (@file_exists(Yii::getPathOfAlias('booster.assets.select2') . DIRECTORY_SEPARATOR . $locale )) {
						$jsFiles[] = $locale;
					}
				}
			}
		}

		return array('select2' => array(
			'baseUrl' => $this->getAssetsUrl() . '/select2/',
			'js' => $jsFiles,
			'css' => array('select2.css', 'select2-bootstrap.css'),
			'depends' => array('jquery'),
		));
	}
protected function createSelect2Package() {
		
		$jsFiles = array($this->minify ? 'select2.min.js' : 'select2.js');

		if (strpos(Yii::app()->language, 'en') !== 0) {
			$locale = 'select2_locale_'. substr(Yii::app()->language, 0, 2). '.js';
			if (@file_exists(Yii::getPathOfAlias('booster.assets.select2') . DIRECTORY_SEPARATOR . $locale )) {
				$jsFiles[] = $locale;
			} else {
				$locale = 'select2_locale_'. Yii::app()->language . '.js';
				if (@file_exists(Yii::getPathOfAlias('booster.assets.select2') . DIRECTORY_SEPARATOR . $locale )) {
					$jsFiles[] = $locale;
				}else{
					$locale = 'select2_locale_'. substr(Yii::app()->language, 0, 2) . '-' . strtoupper(substr(Yii::app()->language, 3, 2)) . '.js';
					if (@file_exists(Yii::getPathOfAlias('booster.assets.select2') . DIRECTORY_SEPARATOR . $locale )) {
						$jsFiles[] = $locale;
					}
				}
			}
		}

		return array('select2' => array(
			'baseUrl' => $this->getAssetsUrl() . '/select2/',
			'js' => $jsFiles,
			'css' => array('select2.css', 'select2-bootstrap.css'),
			'depends' => array('jquery'),
		));
	}
protected function createSelect2Package ( ) { $ jsFiles = array ( $ this -> minify ? 'select2.min.js' : 'select2.js' ) ; if ( strpos ( Yii :: app ( ) -> language , 'en' ) !== 0 ) { $ locale = 'select2_locale_' . substr ( Yii :: app ( ) -> language , 0 , 2 ) . '.js' ; if ( @ file_exists ( Yii :: getPathOfAlias ( 'booster.assets.select2' ) . DIRECTORY_SEPARATOR . $ locale ) ) { $ jsFiles [ ] = $ locale ; } else { $ locale = 'select2_locale_' . Yii :: app ( ) -> language . '.js' ; if ( @ file_exists ( Yii :: getPathOfAlias ( 'booster.assets.select2' ) . DIRECTORY_SEPARATOR . $ locale ) ) { $ jsFiles [ ] = $ locale ; } else { $ locale = 'select2_locale_' . substr ( Yii :: app ( ) -> language , 0 , 2 ) . '-' . strtoupper ( substr ( Yii :: app ( ) -> language , 3 , 2 ) ) . '.js' ; if ( @ file_exists ( Yii :: getPathOfAlias ( 'booster.assets.select2' ) . DIRECTORY_SEPARATOR . $ locale ) ) { $ jsFiles [ ] = $ locale ; } } } } return array ( 'select2' => array ( 'baseUrl' => $ this -> getAssetsUrl ( ) . '/select2/' , 'js' => $ jsFiles , 'css' => array ( 'select2.css' , 'select2-bootstrap.css' ) , 'depends' => array ( 'jquery' ) , ) ) ; }
Make select2 package definition
@return array
Make select2 package definition