Forums / Developer / l10n in PHP

l10n in PHP

Author Message

Gabriele Perego

Sunday 21 November 2010 5:50:52 am

Someone can suggest me how to obtain the same result of this template operator in php?

{$price|l10n('currency')}

Thanks, Gabriele

Nicolas Pastorino

Sunday 21 November 2010 7:08:42 am

Hi Gabriele, and welcome to the eZ Community !

You should check these few lines, PHP body of the template operator your are mentioning :
https://github.com/ezsystems/ezpublish/blob/master/lib/eztemplate/classes/eztemplatelocaleoperator.php#L490

Let us know if this answers your question!
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Bertrand Dunogier

Sunday 21 November 2010 8:43:38 am

Damnit nico, I was coming with the same answer ! Same answer as our respected community manager, then ;-)

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Nicolas Pastorino

Monday 22 November 2010 12:46:21 am

"

Damnit nico, I was coming with the same answer ! Same answer as our respected community manager, then ;-)

"

A "who's shooting first" contest on a sunday afternoon, i like that :)

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

Gabriele Perego

Monday 22 November 2010 2:45:57 am

Thanks :)