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

Relationship between StringComparer.OrdinalignoreCase and StringComparer.InvariantCultureIgnoreCase

I'm trying to get the relationship between results of string comparison when using StringComparer.OrdinalignoreCase and StringComparer.InvariantCultureIgnoreCase. More precisely I would like to know which of the following four statements is true: a…
Bartłomiej Siwek
  • 1,447
  • 2
  • 17
  • 26
0
votes
2 answers

return date with dynamic cultureInfo

At the moment I'm returning the date like this: string returnValue = DateTime.Now.ToString("d MMMMMMMMMMMMMM yyyy"); The problem is, if the person who is running the program is from the USA, I need to return it like this: October 15, 2014 When the…
endeka
  • 131
  • 1
  • 15
0
votes
2 answers

Using current culture

I have issue over using the CultureInfo call for getting the current culture from my machine. I have to use the number seperator as comma(,) instead of dot(.) I went to regional settings->Additional Settings->Decimal symbol is set to comma(,). I…
Chethan
  • 298
  • 1
  • 4
  • 17
0
votes
0 answers

Android Language (Locale) changed by some unknown?

I have a user with a locale-specific issue. The issue is based on DateTime.parse which obviously can be handled from our end but my confusion is based on the fact that it was working for around 6 weeks just fine and only now they have the…
Le-roy Staines
  • 2,037
  • 2
  • 22
  • 40
0
votes
1 answer

XML CultureInfo loading data incorrectly

I'm loading floats from an XML document. For example from the following line: If I read this and then parse it to a float, the damage is 100 instead of 10.0, and the…
anthonytimmers
  • 258
  • 1
  • 8
0
votes
4 answers

Change CulturalInfo after button click

i have multilingual asp.net site. there is a masterpage and default.aspx. I put two buttons in masterpage - one to click when i want to change the language to english, second for polish. Of course, I want to change the language after click on these…
Bart
  • 2,301
  • 3
  • 29
  • 27
0
votes
4 answers

input string was not in a correct format. c# CultureInfo

VS:2005, framework: 2.0 I have a dropdown with French and English languages. As User selects a language, We set CultureInfo as fr-FR or en-US respectively. When retrieving float values from DB we assign value…
0
votes
1 answer

Serialization\De-serialization - Should I use Invariant culture info or rather persist the current culture info

I came to ask some advice before I plunge headfirst into code. On the application I am working on, I am running into the "," (comma) vs "." (dot) discrepancy for a decimal separator. When I persist to a file, change the regional settings and reopen…
Marcel De Villiers
  • 1,682
  • 4
  • 15
  • 17
0
votes
1 answer

Cannot parse decimal number entered using non-English keyboard on Windows Phone

In my Windows Phone 8 application I have a text box which uses InputScopeNameValue.Number to elicit a currency amount from the user. The OnBackKeyPress override is parsing the string value of the text box into a decimal value: …
Philipp Schmid
  • 5,778
  • 5
  • 44
  • 66
0
votes
2 answers

WPF Culture issue

I would like to display in the main page of my app the date in the french format: (dd/MM/yyyy) I work with Entity Framework objects and dates are properties of an entity list which is binded to a combobox in the xaml file. I manage to get through…
Paul Martinez
  • 562
  • 1
  • 9
  • 19
0
votes
1 answer

Where to set CultureInfo for a single HTTP request

I need to set a specific culture for every request in my MVC 3 app. (The culture is determined by the user's profile preference, or if none is set it falls back to a default by Area). If I set the Thread.CurrentThread.CurrentCulture and…
just.another.programmer
  • 8,579
  • 8
  • 51
  • 90
0
votes
1 answer

Orchard CulturePicker and CurrentCulturePicker

I'm using orchard 1.8.1 and Culture picker. After removing the culture filter in module (Orchard has it on core by default and so it has to be removed to avoid conflicts) I made it working when I'm logged on. However anonymous user cannot change…
manudea
  • 371
  • 2
  • 15
0
votes
1 answer

Bing Maps API for WPF Culture change

When I try to set the culture of the map like this: All the labels remains in english and don't change the culture. My Windows language is english, but I want to force pt-BR in the map. I alread changed my application…
Guilherme
  • 5,143
  • 5
  • 39
  • 60
0
votes
1 answer

Cannot get current server culture

I am working on multi Lingual application in c# asp.net MVC, in which server, client or both may have different languages other than English. My development machine has English as default language, and using language bar in windows, I have set my…
Abdul Qadir Memon
  • 950
  • 1
  • 12
  • 27
0
votes
2 answers

Creating a NumberFormat for an existing .NET CultureInfo in ASP.NET application

I want to format my numbers throughout the application in a consistent way, no matter what culture is chosen. In fact, it's "non-standard" even for the basic culture that we're using. I want to format "{1500.50:c}" as: '1500.50', but the standard…
Gabriël
  • 1,323
  • 2
  • 22
  • 34