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

C#/XNA Culture Issue

My application doesn't load levels properly on computers with different cultures. If I change the Thread culture to InvariantCulture I can reproduce the issue on my computer I think it is failing at reading XML information, some assets seem to get…
Orujimaru
  • 835
  • 2
  • 13
  • 18
0
votes
0 answers

ReportViewer wrong culture

I'm using ReportViewer in my WinForms .NET 4.0 application and I would like to display some dates in some chart axis labels. My application will be used in different countries, so I would like to display dates in the default OS culture short…
0
votes
1 answer

Decimal number in CSV file

My application generates CSV file from some objects. These CSV files are used in many countries so I must use correct separator. To seperate values (cells) in a file I use separator: Dim separator As String =…
DanielH
  • 953
  • 10
  • 30
0
votes
1 answer

Asp.net culture how to set it properly

I am trying to set the culture in my application. Here is my code : Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-CA"); Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr"); I am trying to set it to the MasterPage.master first.…
Vinc 웃
  • 1,187
  • 4
  • 25
  • 64
0
votes
1 answer

ASP.NET language setting in master page

I am building a website with multiple language support. For this I have a link button on my master page. I have created a new base class to inherit from. I have set the CurrentUICulture and CurrentCulture in the Global.asax file. I have created…
Eric
  • 695
  • 9
  • 25
0
votes
1 answer

Adding a new culture using the .NET CultureAndRegionalInfoBuilder class and custom character sets

Do region and language selections in the Windows OS actually have a set of characters associated to them? When you use the CultureAndRegionalInfoBuilder class to register a new culture to the system, the only characters associated to your new…
Ryan
  • 139
  • 2
  • 10
0
votes
0 answers

Culture specific coding

I need to make the application work according to system culture. But i have used many hardcoded value for Bit and byte conversion Like Dim maxlimit as double=4.999999. When i change the cultureInfo for application the bit convertion is not proper.…
Tamil
  • 23
  • 3
0
votes
1 answer

parseExactDate from UTC to specified cltureinfo

I'm trying to convert a date in format UTC "yyyy-MM-ddTHH:mmZ" to a localdatetime but when changing cultureInfo by fr-FR or other one, o keep always the same localdatetime for example i do this: IFormatProvider culture = new…
user1898765
  • 323
  • 1
  • 6
  • 18
0
votes
2 answers

Find format used to parse date into string

DateTime date = new DateTime(1970, 1, 15); string sdate = date.ToString(value_i_will_forget as string, CultureInfo.InvariantCulture); // some lines later string format_string = MagicParse(sdate, CultureInfo.InvariantCulture); I have an…
Mizipzor
  • 51,151
  • 22
  • 97
  • 138
0
votes
0 answers

C# Global Resource File: Language does not change

I am currently developing a web site (ASP.NET), which is localized for two languages, English and German. We are using Local Resource Files for all of the static content on the page and a global resource file - located in a different .dll - for most…
leonard_deutsch
  • 263
  • 2
  • 16
0
votes
1 answer

Writing arabicdate

I have an Asp.net application in which i have to display all dates in arabic langage . So i used this function : Public Function ConvertDateToArabic(ByVal _date As DateTime) As String Dim arabicdate As String = "" arabicdate +=…
Lamloumi Afif
  • 8,941
  • 26
  • 98
  • 191
0
votes
1 answer

Handle 2 types of number format using culture if possible

Currently i've a following Scenario : I've a custom control for Numeric Input. Which have the Property called : DecimalType. Which might be Long or Short Decimal. And, the Problem is : I want to Format the Given input as Common. Which either format…
N Subedi
  • 2,858
  • 2
  • 22
  • 36
0
votes
1 answer

CultureInfo in C#

My system is id-ID, using ',' as decimal separator. I have problems with data in en-US, I want to convert it to id-ID and then back to en-US : List list = new List(){"0.14","223.54"}; // en-US list[0] = Convert.ToDecimal(list[0],…
xpw
  • 87
  • 1
  • 2
  • 13
0
votes
2 answers

ASP.NET Application has incorrect CurrentCulture - en-CA instead of en-US

I have an ASP.NET Application that I migrated to a new server. I made an effort to, as closely as possible, duplicate the old web servers settings. However, the application is now throwing up datetime.tryparse exceptions on our calendar…
Ray
  • 1,422
  • 2
  • 21
  • 39
0
votes
1 answer

Asp.Net Culture name without region/country name and default settings

I am working a multi-lang site. I want to get and set culture and uiculture with culturename without countryname. If browser is english or lang is English choosen, it will return en not en-US or en-GB. Because I use one localresources file per…