cultureinfo Questions

2

Solved

I tried to Set-Culture -CultureInfo vi-VN but Powershell was not changed to my setted Culture. I tested by open Powershell ISE and seen my setted Culture was changed successful. How to make Power...
Trencherman asked 17/2, 2020 at 16:13

9

Solved

I just can't seem to get localization to work. I have a class library. Now I want to create resx files in there, and return some values based on the thread culture. How can I do that?
Avatar asked 17/7, 2009 at 11:53

6

Solved

How to identify the operating system's language using CultureInfo? E.g. if the language in Windows is set to French, I need to identify French and load the fr resource files data.
Thornberry asked 17/11, 2010 at 19:20

3

Solved

In my WPF appliation, I have property defined as following [Required(AllowEmptyStrings =false, ErrorMessageResourceName ="Msg1", ErrorMessageResourceType =typeof(*<AssemblyName>*.Resources....
Scotsman asked 7/10, 2015 at 15:11

1

There seems to be some difference for CultureInfo between .NET Core and .NET Framework. Is there any reason to this? Example: var italian = CultureInfo.GetCultureInfo("it").TextInfo.CultureName; ...
Temblor asked 22/11, 2019 at 17:29

1

Solved

How are strings compared when doing switch statements? Does the current culture of the thread / computer affect switch evaluation? I got in the habit of always specifying a comparer when comparing ...

2

Solved

I have a Cloud Service Web Role that I need to run some PowerShell on to ensure the server is always setup in the right culture: en-AU. The reason for this is that Microsoft could, at anytime, re...
Prolongation asked 14/12, 2015 at 5:19

4

How to transform buddhist format of datetime into gregorian format (e.g. for Thailand 2558 → 2015)? using System.Text; using System.Threading; using System.Threading.Tasks; namespace ThailandBudd...
Centrifugate asked 22/5, 2015 at 9:55

3

Solved

I've an application where we use Tasks. We also modified the cultureInfo(we use the EN-US language, but keep the date/number format), and we use .Net 4.0. The application has a lot of thread and t...
Instauration asked 29/7, 2014 at 9:49

2

Solved

How can I call ToString() on an object and make it use the invariant culture? There are overloads for ToString() on objects that implement IConvertible (like bool, int, float..), but what if the ob...
Alikee asked 17/9, 2011 at 21:23

2

I use a DateTimePicker on a WPF application. I would like to bind the .Text property to the SelectedDate, so I use binding like this: <DatePicker x:Name="DateTimePicker_Date" Text="{Binding dD...
Trumaine asked 15/5, 2013 at 12:58

2

i'm having some troubles transforming the string "SΨZΣ" to lower case. In C# both .ToLower() and .ToLowerInvariant() gives me "sψzσ" as result. While javascript returns "sψzς". After some researc...
Luminance asked 8/12, 2018 at 16:25

5

Solved

I'm searching a way to construct a CultureInfo object from a ISO 639-3 language code. I didn't find anything in the MSDN about that and trying to get it from the list of all cultures didn't work......
Spancake asked 10/1, 2014 at 10:37

2

Solved

So I'm using an API where a datetime is retrieved in the following format DIE, 28. AUG 2018 12:38:38 The closest datetime format I found was this ddd, dd. MMM yyyy HH:mm:ss. It works only if its ...
Disorganization asked 28/8, 2018 at 9:49

3

Solved

I'm using Visual Studio 2012 Ultimate version. I've got this error and I don't know how to solve it. Culture is not supported. Parameter name: name en-UK is an invalid culture identifier. Desc...
Chewy asked 20/1, 2013 at 14:6

3

Solved

I know of three ways to get a full language name of a CultureInfo object. CultureInfo.DisplayName CultureInfo.NativeName CultureInfo.EnglishName DisplayName gives the name in the installed .ne...
Kaplan asked 12/3, 2010 at 12:58

5

Solved

I'm parsing a DateTime value in an ASP.NET WebForms page and the date string keeps getting rejected by the DateTime.TryParseExact() method even though it clearly matches one of the supplied format ...
Leandro asked 17/8, 2012 at 4:45

1

Solved

I have an ASP.NET MVC 4 application that is targeting .NET Framework 4.7.1, with the problem that the culture is not shared between Controller and View, if the action contains async calls. I am re...
Untutored asked 20/3, 2018 at 10:47

3

Solved

I am wondering why this is working: doubleValue = double.Parse(input[0].ToString(System.Globalization.CultureInfo.InvariantCulture).Replace(',', '.'), System.Globalization.CultureInfo.InvariantCul...
Yalu asked 5/10, 2017 at 6:39

3

Im calling a custom method to dynamically switch the current cultureinfo to french "fr" Like this but after calling that method my android app still use the default culture which is 'en' but in de...
Kukri asked 7/10, 2013 at 1:41

4

Solved

I have a number like 202667.4. I want to convert this to number based on culture. For Ex: In "de"(German) the number should be in 202.667,40. Any help will be greatly appreciated. Thanks.
Oates asked 16/11, 2017 at 7:23

2

Solved

Is it possible to make .NET create the following output? DateTime.UtcNow.ToString() --> "2017-11-07T00:40:00.123456Z" Of course there is always the possibility to use ToString("s") or ToStrin...
Beulabeulah asked 6/11, 2017 at 23:48

2

Solved

I have problem with date formate while hosting site which is developed using C# .net MVC . In my development machine(OS:Windows 7, .net Framework 4.5) date formate for Spanish-Panama(es-PA) is mm/...
Optative asked 8/10, 2015 at 18:49

2

Solved

I have a breakpoint on the "return" line here: [HttpGet] [Route("api/Test/{id1}/{id2}")] public NRBQEntity GetTestMessage(String id1, String id2) { return NRBQClient.GetTestMessage(id1, id2); } ...
Legation asked 20/6, 2014 at 17:4

3

Solved

The class CultureInfo provides two way of creation: via a factory method CreateSpecificCulture(string). via a constructor with a string argument The MSDN documentation does slightly differ for ...
Whitefaced asked 30/8, 2012 at 9:35

© 2022 - 2024 — McMap. All rights reserved.