This is a migrated thread and some comments may be shown as answers.

CurrencyTextBox and Localization issues

1 Answer 83 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Schalk
Top achievements
Rank 1
Schalk asked on 05 Apr 2011, 01:39 PM
Good day, I have looked over the CurrencyTextBox

Telerik.Web.Mvc.UI.CurrencyTextBox

and it seems it's missing some defaults:

CurrencySymbol = CultureInfo.CurrentUICulture.NumberFormat.CurrencySymbol;
DecimalSeparator = CultureInfo.CurrentUICulture.NumberFormat.CurrencyDecimalSeparator;
NumberGroupSeparator = CultureInfo.CurrentUICulture.NumberFormat.NumberGroupSeparator;
Also the other thing that is quite bothersome is in all of teleriks' mvc controls, all the defaults are using
CultureInfo.CurrentCulture
vs
CultureInfo
.CurrentUICulture now the problem is the tutorials regarding localization for telerik mvc extensions require you to set the CurrentUICulture, yet all controls in the project use CurrentCulture for defaults. Seems easy enough to fix :)

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 05 Apr 2011, 03:30 PM
Hi Schalk,

 I think you are thinking about globalization which is different than localization. In .NET globalization (number formatting, dates etc) is done via CurrentCulture whereas localization (providing localized / translated version of your content) is done via CurrentUICulture. You can check this stackoverflow question which explains that. This blog post may also be helpful.

Best wishes,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
NumericTextBox
Asked by
Schalk
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or