public static function localize($formula) {
        $formula = str_replace('.', '$', $formula); // temp placeholder
        $formula = str_replace(',', get_string('listsep', 'langconfig'), $formula);
        $formula = str_replace('$', get_string('decsep', 'langconfig'), $formula);
        return $formula;
    }
public static function localize($formula) {
        $formula = str_replace('.', '$', $formula); // temp placeholder
        $formula = str_replace(',', get_string('listsep', 'langconfig'), $formula);
        $formula = str_replace('$', get_string('decsep', 'langconfig'), $formula);
        return $formula;
    }
public static function localize ( $ formula ) { $ formula = str_replace ( '.' , '$' , $ formula ) ; // temp placeholder $ formula = str_replace ( ',' , get_string ( 'listsep' , 'langconfig' ) , $ formula ) ; $ formula = str_replace ( '$' , get_string ( 'decsep' , 'langconfig' ) , $ formula ) ; return $ formula ; }
Similar to format_float, formats the numbers and list separators
according to locale specifics.
@param string $formula
@return string localised formula
Similar to format_float formats the numbers and list separators according to locale specifics .