I’m implementing I18n and I want to know if is posible to get the currency format in text format:
100 United States Dollars
100 Canadian dollars
I’m implementing I18n and I want to know if is posible to get the currency format in text format:
100 United States Dollars
100 Canadian dollars
I’ve not usedI18n, but looking in the Yii I18n/data directory, the currency symbol array() is CA$ in en.php & en_us.php, and US$ in en_ca.php. So depending on the app language you would get CA$, $, or US$. How to set Us or Canadian formatting I have now idea.
To get what you want, you would have to write your own format for formatCurrency(). Own your own on how to select which to use.
Maybe a point in the right direction.