Questions tagged [cultureinfo]

Represents information about a specific culture including the names of the culture, the writing system, and the calendar used, as well as access to culture-specific objects that provide information for common operations, such as formatting dates and sorting strings.

Represents information about a specific culture including the names of the culture, the writing system, and the calendar used, as well as access to culture-specific objects that provide information for common operations, such as formatting dates and sorting strings.

Reference

CultureInfo on MSDN

1135 questions
0
votes
1 answer

Allow text from different cultures in Textbox C#

I have an application in which username is both in English and Japanese(for Japanese users.) I am retrieving username from database and want to allow both English and Japanese cultures' username in my text box that displays username. How to do it?
BAPSDude
  • 331
  • 1
  • 4
  • 16
0
votes
3 answers

C# decimal.Parse() strange FormatException

There is MyDataSet myDataSet with MyTable with column string MyNumber (names changed). Then a row is added to the table (existing code): decimal d = GetSum(); myDataSet.MyTable.AddMyTableRow(d.ToString("F2")); Now I have to get that decimal number.…
va.
  • 848
  • 3
  • 17
  • 39
0
votes
2 answers

Culture conversion of datetime in javascript/jquery

I want to convert the datetime format according to the culture through javaScript/jQuery. Ex: Let we have a date: var starDate = "7/4/2013 9:00:00 AM" then after conversion this into french it should be "4 juillet 2013 09:00" like we have in…
dIvYaNsH sInGh
  • 1,943
  • 3
  • 21
  • 40
0
votes
4 answers

String comparison with German letter ß

I'm trying to get customers based on customer code: var customer = GetAllCustomers() .FirstOrDefault(c => c.CustomerCode.ToLower().Trim() == customerCode.ToLower().Trim()); In one case,…
StarCub
  • 4,141
  • 7
  • 41
  • 58
0
votes
2 answers

How does one set text of two labels with two different cultural/region format options?

How does one set text of two labels with two different cultural/region format options? For first label to be ar-EG : Arabic - Egypt and second one to be en-US : English - United States ? This to be done for Number/Date/Time/Currency formats.
Ahmed Atia
  • 17,848
  • 25
  • 91
  • 133
0
votes
2 answers

Parallel.for causes different results

I am currently trying to improve a C# project I am working on. Specifically, my goal is to parallelize some operations to reduce processing time. I am starting with small snippets just to get the hang of it. The following code (not parallel) works…
Bovaz
  • 375
  • 6
  • 20
0
votes
2 answers

Change CultureInfo c#

I created 3 options idioms to my WebApp. This idiom are set in Buttons in all pages. The first option idiom is set CurrentInfo. My question is, who I can set in others pages this Idiom that user set in Homepage? for example, to each page, in…
CaioVJesus89
  • 333
  • 1
  • 11
  • 24
0
votes
1 answer

Apply regional settings to application based on user profile

I have an MVC 4 application with international users (all over the world). I want to add a new page called profile settings where users can select their regional settings and by that I mean that they should be able to select: - time zone (UTC…
David Dury
  • 5,537
  • 12
  • 56
  • 94
0
votes
1 answer

Display currency symbols using currency code culture in windows phone 8

Is there a way to get current information dynamically from the apps culture settings? Basically if the user has set the culture to US I want to know the currency is dollars, or if they have it set to UK I want to pound sterling etc.in windows phone…
Mansinh
  • 1,365
  • 4
  • 19
  • 47
0
votes
2 answers

Multilingual application: CultureInfo manual change error

I'd like an option, to change the language in C#, Visual Studio. I have the Form1.resx which holds the Default language items. I also have Form1.en.resx, and Form1.en-US.resx, which holds the english translations. (Of course I only need one of them,…
0
votes
4 answers

Discard functionality of "/" in CultureInfo

What property in CultureInfo.InvariantCulture helps to discard the functionality of "/". I am having this problem because I have my customCulture. and when I use it to format DateTime it replaces "/" with the culture Specific separator. So I want…
Nomesh Gajare
  • 855
  • 2
  • 12
  • 28
0
votes
1 answer

Translate Validation Errors on Binding

The question is, how can I translate system validation/binding errors to other languages? The details are as follow: I got this wpf application, which will be multilingual, and, for instance, has a grid bind to a collection of items, and one of the…
saamorim
  • 3,855
  • 17
  • 22
0
votes
1 answer

.NET price format issue

In .net VB have a multi-lingual and multi-currency price listing that comes from two sources. For prices coming from our SQL server where prices are held as a Money datatype, all is well if we change languages. i.e. US$599.00 in English is displayed…
Craig
  • 1,704
  • 1
  • 18
  • 36
0
votes
2 answers

How can i get client machine timezone by using IP Address in C# without using Javascript and Cookies?

I need to convert input date time to UTC format and save client machine time zone standard name, so i need standard timezone id for client machine with DST. My input is only IP Address from request header.
Dinesh
  • 1
  • 2
0
votes
0 answers

.NET date parsing when no year specified

I have a situation where only on 1 particular server the DateTime.tryParse() method is behaving incorrectly. The server was installed with an en-US culture, but has since been changed to en-AU. Even without that, we are using an 'en-AU' culture…