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
3 answers

Detecting culture info from a string which has numeric value

Here is a List< string > lstA; lstA may contains value(datatype string) like: 1st example 1 1.00 1000.01 1,002.98 ......... Or listA may contain value like: 2nd example 1 1,00 1000,01 1.002,98 ......... i am trying to pass this list to a…
user1865670
0
votes
1 answer

How do I determine the user's culture on the web, based on their time zone?

Newbie here. Actually, first question ever. I've been using NodaTime (on ASP.Net MVC 3 C#) to get around different time zones and am really happy with the results. But... I was wondering if there's a way to get the user's culture info based on the…
emerson.marini
  • 9,331
  • 2
  • 29
  • 46
0
votes
2 answers

Convert DateTime to US is not good

I have a DateTimePicker in WPF. The dateTimePicker give me an European Format In my DateTimePicker, i select "01/02/2014" ( in european format ) I would like to read the value, and convert it in a shortDateString with the US culture. I have done…
Walter Fabio Simoni
  • 5,671
  • 15
  • 55
  • 80
0
votes
2 answers

TextBox Date Validation

I am using the following code for Short date validation. DateTime dt = DateTime.Now; Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("fr-FR"); if (DateTime.TryParse(textBox1.Text, out dt)) { textBox1.Text =…
sree aneev
  • 141
  • 4
  • 5
  • 18
0
votes
1 answer

Change Message Dialogue box Display layout when app default language is set to ar(Arabic)?

I am creating a Windows 8 App and have set Default language as ar(Arabic). As shown below in snapshot: Now when any Message is displayed in the Message Dialogue box its displaying in Arabic Format (Right to left). How can I change the displaying…
Balraj Singh
  • 3,381
  • 6
  • 47
  • 82
0
votes
1 answer

ASP.NET Resource handler mechanism in MVC4

Simple. I want to localize my application. I've googled for days, and tried a million different approaches to reach my resources. The only way I've been succesful is by using the standard asp.net folders "App_LocalResource", making the resource…
0
votes
1 answer

When a user clicks a culture, an identifier for "culture" should be inserted / updated into the URL?

I have a custom route setup in MVC4 which allows for a pattern like: culture/controller/action/id in addition to the default: controller/action/id I want to add a menu to my page that displays the available cultures. When a user clicks a culture,…
user2121236
  • 53
  • 2
  • 7
0
votes
0 answers

C# System.Threading.Thread.CurrentThread.CurrentUICulture does not exist

I am developing a Windows CE 6.0 program with multi-lingual support. But I am getting an error that System.Threading.Thread.CurrentThread.CurrentUICulture does not exist. How to use CurrentUICulture?
0
votes
2 answers

Sitefinity 5.3 displaying Culture info at the end of URL

I recently upgraded a website to Sitefinity 5.3. For some reason, when I try to edit a page in the backend, it throws a '500 - Internal server error' . On close inspection, I see that the culture appears at the end of the URL instead of the usual…
Yosief Kesete
  • 217
  • 2
  • 6
  • 20
0
votes
1 answer

How to get culture-specific Full Name using CultureInfo

I am trying to find to evaluate name in format specific for user culture. Full Name= First Name + Last Name Is there any method to so this in CultureInfo class and all it properties? Where can I find such format string for each culture?
klashar
  • 2,519
  • 2
  • 28
  • 38
0
votes
1 answer

UICulture List in Asp.Net

Where can I find complete UICulture list like en : English en-us etc...
Tarik
  • 79,711
  • 83
  • 236
  • 349
0
votes
4 answers

How to Change value From Persian Culture to English

i have a variable with persian culture digits like this: string Value="۱۰۳۶۷۵۱"; i want to convert this digits to English version and save it again in my string like this Value="1036751"; please help me how can i do this if i can use easy way…
Amin AmiriDarban
  • 2,031
  • 4
  • 24
  • 32
0
votes
1 answer

FolderBrowserDialog change language

I have an application where user can choose between 2 languages. Is to possible to change the FolderBrowserDialog language(Buttons, Browse for folder). Maybe with CultureInfo? Thank you for your help.
Nejchy
  • 666
  • 11
  • 24
0
votes
1 answer

.NET Calendar.GetWeekOfYear returning incorrect result for en-US

I searched for a similar post, but none seemed to answer this question. For dates 01/01/2005 and 12/28/2008, the week number should be 1, according to the the timeanddate.com web-site, assuming it's correct: 01/01/2005 and 12/28/2008 Problem is, the…
user1964087
  • 1
  • 1
  • 1
0
votes
1 answer

DateTime.Parse doesn't use patterns in current CultureInfo(Silverlight)?

I've got following problem. I set CurrentCulture and CurrentUICulture and use following patterns in them: ShortDatePattern is dd-MM-yyyy LongTimePattern is HH.mm.ss. When I convert dates to string I get 15-01-2008 00.00.00. But when i call…
noaRAVE
  • 432
  • 1
  • 5
  • 19