Revision #2                                    has been created by  Maurizio Domba Cerin                                    on Oct 27, 2012, 5:10:05 PM with the memo:
 Maurizio Domba Cerin                                    on Oct 27, 2012, 5:10:05 PM with the memo:
                                
                                
                                    code style                                
                                                                    « previous (#1)                                                                                                    next (#3) »                                                            
                            Changes
                            
    Title
    unchanged
    Localized version of CFormatter
    Category
    unchanged
    How-tos
    Yii version
    unchanged
    
    Tags
    unchanged
    cformatter localized locale
    Content
    changed
    [...]
switch (Yii::app()->language) {
			case 'nl':
				$this->dateFormat = 'd-m-Y';
				$this->timeFormat = 'H:i:s';
				$this->datetimeFormat = 'd-m-Y H:i:s';
				$this->numberFormat = array(
 
					'decimals'=>null,
 
 
					'decimalSeparator'=>',',
 
 
					'thousandSeparator'=>'.'
 
				);
				$this->booleanFormat = array('Nee', 'Ja');
				break;
			// Add more language cases according to your needs        
		}
	}
}
```[...]