Difference between #1 and #2 of
Localized version of CFormatter

Revision #2 has been created by 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
}
}
}
```
[...]
2 0
5 followers
Viewed: 6 015 times
Version: 1.1
Category: How-tos
Written by: marcovtwout
Last updated by: marcovtwout
Created on: Oct 26, 2012
Last updated: 4 years ago
Update Article

Revisions

View all history