Questions tagged [currentculture]

a Thread property in the .NET System.Threading namespace or a CultureInfo property in the .NET System.Globalization namespace

CurrentCulture refers to either the Thread.CurrentCulture property in the .NET System.Threading namespace or the CultureInfo.CurrentCulture property in the .NET System.Globalization namespace.

In both cases, this property is used to get or set the System.Globalization.CultureInfo object that represents the culture of the current thread.

Resources

Related Tags

139 questions
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

How to Show Image based on Current Culture

I have images that I would like to show within a CustomMessageBox, that have text within them, based upon the user's current language settings on their device. I do not want to make the mistake of showing a user an image with a language they would…
Matthew
  • 3,976
  • 15
  • 66
  • 130
0
votes
3 answers

ASP.NET Setting Culture with InitializeCulture

I have a website with three domains .com, .de and .it Each domain needs to default to the local language/culture of the country. I have created a base page and added an InitializeCulture Protected Overrides Sub InitializeCulture() Dim url As…
Helen
  • 5
  • 2
  • 6
0
votes
2 answers

Configuring CurrentCulture and CurrentUICulture with different parameters

I am using c#.net3.5 and I want to change currentculture setting's decimal seperator from comma to dot, but at the same time I want user can use commas in numericupdown controlles as decimal seperator. So I tried to change my culture setting as…
Rapunzo
  • 966
  • 5
  • 21
  • 42
0
votes
1 answer

How do I feed the language culture thread into the helper class

With asp.net MVC 2, I have been trying to get Matt Hawley's Localization helper to work in my web application, but I am getting stuck feeding a null into the Language string variable. I can't figure out why I am doing this. namespace…
0
votes
4 answers

How to change the language in my WinForm?

I am developing an application in c#. The current language of my system is French. What i want is when i open my application the language should be changed to English. Is there anyway by which i can perform this task. I tried to change the language…
Fazil Mir
  • 783
  • 2
  • 9
  • 23
0
votes
0 answers

What would cause setting CurrentCulture to crash?

Recently, my crash manager has emailed me a crash from a game that I'm working on. System.ArgumentException: Exception from HRESULT: 0x80070057 (E_INVALIDARG) at System.Globalization.CultureInfo.nativeSetThreadLocale(String localeName) …
Califer
  • 529
  • 9
  • 28
0
votes
1 answer

When i change CurrentUICulture text property doesn't change

I have the following problem. My WPF solution include two resx files with only two rows Resources.resx -Name: IsManager Value: Yes | Name: IsNotManager Value: No Resources.pl-PL.resx -Name: IsManager Value : Tak | Name: IsNotManager Value: Nie I…
Zabaa
  • 327
  • 1
  • 4
  • 16
0
votes
2 answers

CultureInfo.CurrentCulture does not contain the correct value --> numberformat problems

I need to write doubles to a csv file in a wpf mvvm application. These doubles are originally strings set in invariant culture. I recieve them like so from the server side application and parse them with bool result = double.TryParse(row[0],…
Toon Casteele
  • 2,479
  • 15
  • 25
0
votes
0 answers

Frame Navigation Service not using Current culture on GoBack

I am using a Frame object in my application to navigate through all of my screens (user controls). My language page can be accessed from a couple different locations. When the new language is selected I use the Frame.GoBack() method to return to…
0
votes
1 answer

How to Override CurrentThread.CurrentCulture for an application

I have sharepoint application, that needs to be made support Globalization(multi language support). I am planning have a drop down box with list of languages. Problem: By Default the CurrentCulture is en-US as expected.Lets say the if user choose…
0
votes
1 answer

Globalisation : Change language directly in program

I have 3 ressource files : AppRessources.resx, AppRessources.fr.resx, AppRessources.nl.resx. I add to my page a ListPicker (it's a combobox) that has 3 languages (English, French and Dutch). When an item is selected, I change the CurrentCulture and…
0
votes
1 answer

Culture specific DateTime string is inconsistent between platforms (2)

This is similar to this question, hence the title. Date output is different on the server even though the cultures are the same. Both dev machine and server has the same datae format set in Windows; English (United States). I have modified the the…
Malako
  • 534
  • 6
  • 20
-1
votes
1 answer

Datetime.ParseExact inverse day and month value

var dateString = "23/12/2019 06:30:00"; DateTime dt = DateTime.ParseExact(recordDateString.Trim(), "dd/MM/yyyy HH:mm:ss", new CultureInfo("fr-FR")); I expect this output : 23/12/2019 06:30:00 But dt object value is : 12/23/2019 06:30 PM Where is…
xangkcl
  • 57
  • 1
  • 7
-1
votes
1 answer

Setting CurrentUICulture does nothing

I am trying to change the number formatting in my WPF application. I want international standardized formatting (space as thousand separator), and also "--" as NaN symbol. I clone a CultureInfo and set the NumberFormatInfo, then set that as…
GrixM
  • 215
  • 2
  • 4
  • 20
1 2 3
9
10