This is a migrated thread and some comments may be shown as answers.
Is possible to use Localization JUST for languages?
0 Answers 21 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Edgar Paulk
Top achievements
Rank 1
Edgar Paulk asked on 06 Apr 2011, 09:42 AM

Hi Guys!

It’s possible to use localization with the MVC controllers just for the language?

I like to manage my money, date, time, etc formats by my own.

For example, I have this Grid Column:

c.Bound(o => o.revenue).Format("{0:c}"));

When I set culture to “es” (Spanish) everything works nicely, however, my money is format as 1.221.214,50€

In a normal string format I can change it like this:

string.Format(System.Globalization.CultureInfo.InvariantCulture, "B/. {0:#,##0.00}", 12222114141.24)

this is render like:

B/. 12,222,114,141.24

Is there a way to do this in the MVC controls?

Thanks!

Edgar.

 

Tags
General Discussions
Asked by
Edgar Paulk
Top achievements
Rank 1
Share this question
or