protected function replaceSymbols($value)
    {
        $language = $this->translator->getCurrentLanguage();

        if (!isset($this->symbols[$language])) {
            $this->symbols[$language] = array(
                '.' => $this->translator->translate('Intl_NumberSymbolDecimal'),
                ',' => $this->translator->translate('Intl_NumberSymbolGroup'),
                '+' => $this->translator->translate('Intl_NumberSymbolPlus'),
                '-' => $this->translator->translate('Intl_NumberSymbolMinus'),
                '%' => $this->translator->translate('Intl_NumberSymbolPercent'),
            );
        }

        return strtr($value, $this->symbols[$language]);
    }
protected function replaceSymbols($value)
    {
        $language = $this->translator->getCurrentLanguage();

        if (!isset($this->symbols[$language])) {
            $this->symbols[$language] = array(
                '.' => $this->translator->translate('Intl_NumberSymbolDecimal'),
                ',' => $this->translator->translate('Intl_NumberSymbolGroup'),
                '+' => $this->translator->translate('Intl_NumberSymbolPlus'),
                '-' => $this->translator->translate('Intl_NumberSymbolMinus'),
                '%' => $this->translator->translate('Intl_NumberSymbolPercent'),
            );
        }

        return strtr($value, $this->symbols[$language]);
    }
protected function replaceSymbols ( $ value ) { $ language = $ this -> translator -> getCurrentLanguage ( ) ; if ( ! isset ( $ this -> symbols [ $ language ] ) ) { $ this -> symbols [ $ language ] = array ( '.' => $ this -> translator -> translate ( 'Intl_NumberSymbolDecimal' ) , ',' => $ this -> translator -> translate ( 'Intl_NumberSymbolGroup' ) , '+' => $ this -> translator -> translate ( 'Intl_NumberSymbolPlus' ) , '-' => $ this -> translator -> translate ( 'Intl_NumberSymbolMinus' ) , '%' => $ this -> translator -> translate ( 'Intl_NumberSymbolPercent' ) , ) ; } return strtr ( $ value , $ this -> symbols [ $ language ] ) ; }
Replaces number symbols with their localized equivalents.

@param string $value The value being formatted.

@return string

@see http://cldr.unicode.org/translation/number-symbols
Replaces number symbols with their localized equivalents .