src/MvcCore/Ext/Views/Helpers/FormatNumberHelper.php
protected function setUpLocaleConventions () {
		$this->localeConventions = NULL;
		if ($this->systemEncoding !== NULL) {
			$this->localeConventions = (object) localeconv();
		}
		if (!$this->localeConventions || $this->localeConventions->frac_digits == 127)
			// something wrong - use default values for en_US:-(
			$this->localeConventions = (object) $this->defaultLocaleConventions;
		// remove all bracket shit rulez, from `($123,456.789)` to `-$123,456.789`
		if (!$this->localeConventions->n_sign_posn)
			$this->localeConventions->n_sign_posn = 3;
	}
protected function setUpLocaleConventions () {
		$this->localeConventions = NULL;
		if ($this->systemEncoding !== NULL) {
			$this->localeConventions = (object) localeconv();
		}
		if (!$this->localeConventions || $this->localeConventions->frac_digits == 127)
			// something wrong - use default values for en_US:-(
			$this->localeConventions = (object) $this->defaultLocaleConventions;
		// remove all bracket shit rulez, from `($123,456.789)` to `-$123,456.789`
		if (!$this->localeConventions->n_sign_posn)
			$this->localeConventions->n_sign_posn = 3;
	}
protected function setUpLocaleConventions ( ) { $ this -> localeConventions = NULL ; if ( $ this -> systemEncoding !== NULL ) { $ this -> localeConventions = ( object ) localeconv ( ) ; } if ( ! $ this -> localeConventions || $ this -> localeConventions -> frac_digits == 127 ) // something wrong - use default values for en_US:-( $ this -> localeConventions = ( object ) $ this -> defaultLocaleConventions ; // remove all bracket shit rulez, from `($123,456.789)` to `-$123,456.789` if ( ! $ this -> localeConventions -> n_sign_posn ) $ this -> localeConventions -> n_sign_posn = 3 ; }
Try to set up local conventions by system locale settings
only if there was any success with setting up system locale.
If system locale is not set up properly - use default formatting conventions.
@see http://php.net/manual/en/function.localeconv.php
@return void
Try to set up local conventions by system locale settings only if there was any success with setting up system locale . If system locale is not set up properly - use default formatting conventions .