symfony/symfony — Issue #3525: [Translator][RFC] Date, Number and Money translators?
Author: acasademont
Created: 2012-03-07 11:06:53+00:00
State: open

This is not an issue but a proposal and request for comments on implementing "translation" on dates, numbers and money which is also a very common thing to do when internationalizating websites. At this very moment i have implemented 3 twig filters for dealing with these 3 types but i think it would be nice to integrate those features into the Translator component.

However, i think that these things may not fit in what "Translation" means. No message catalogues needed, just what the ICU library and its PHP integration provide, it may be out of scope of what the Translator does.

So what do you thing about creating "transDate". "transNumber" and "transMoney" methods for the Translator component and its counterpart Twig fiters?