// Generate it from config and localize depencies
switch ($this->getLanguageInstance()->getLanguageCode()) {
case 'de': // German format is a bit different to default
- $localized = number_format($value, $this->getConfigInstance()->readConfig('decimals'), ',', '.');
+ $localized = number_format($value, $this->getConfigInstance()->getConfigEntry('decimals'), ',', '.');
break;
default: // US, etc.
- $localized = number_format($value, $this->getConfigInstance()->readConfig('decimals'), '.', ',');
+ $localized = number_format($value, $this->getConfigInstance()->getConfigEntry('decimals'), '.', ',');
break;
} // END - switch