Browse Source

typo fix.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
b311b6ecf3
  1. 4
      framework/yii/i18n/Formatter.php

4
framework/yii/i18n/Formatter.php

@ -83,10 +83,10 @@ class Formatter extends \yii\base\Formatter
if ($this->decimalSeparator === null || $this->thousandSeparator === null) {
$formatter = new NumberFormatter($this->locale, NumberFormatter::DECIMAL);
if ($this->decimalSeparator === null) {
$this->decimalSeparator = $formatter->getSymbol(NumberFormatter::GROUPING_SEPARATOR_SYMBOL);
$this->decimalSeparator = $formatter->getSymbol(NumberFormatter::DECIMAL_SEPARATOR_SYMBOL);
}
if ($this->thousandSeparator === null) {
$this->thousandSeparator = $formatter->getSymbol(NumberFormatter::DECIMAL_SEPARATOR_SYMBOL);
$this->thousandSeparator = $formatter->getSymbol(NumberFormatter::GROUPING_SEPARATOR_SYMBOL);
}
}

Loading…
Cancel
Save