money_format doesn't exist on windows and substitute

The function money_format is not available on windows systems so this is a replacement.
For solving the problem on windows system it's really needed ! For the
indentation and the comments i can remove them if you want.


2014-06-17 19:27 GMT+02:00 Luis Cordova <notifications@github.com>:

> In Twig/Extension/CommerceExtension.php:
>
> > @@ -77,6 +77,19 @@ protected function priceFormat($amount, $currency = null) {
> >              case '%' : $right = ' %'; break;
> >          }
> >
> > -        return $left . money_format('%i', $amount) . $right;
> > +		if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
> > +        /********************************* money_format not available on windows systems */
> > +		//This is a server using Windows : money_format replacement.
> > +        setlocale(LC_ALL, ''); // Locale will be different on each system.
>
> is this really needed?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/vespolina/VespolinaCommerceBundle/pull/31/files#r13873168>
> .
>



-- 
Cordialement,

Fabrice Kuissu