Questions tagged [culture]

Culture is the combination of language and peculiarities of geographical location (like en-UK, en-US, de-AT, de-DE, fr-BE)

Culture is the combination of language and peculiarities of geographical location (like en-GB, en-US, de-AT, de-DE, fr-BE)

815 questions
0
votes
1 answer

How to have website think you're visiting from a different country?

I can test cultures well enough e.g. es-US or fr-CA but the .NET framework has a built in class called System.Globalization.CultureInfo which I believe is returning wrong values as I'm visiting from a US address. Is there a way to fake the headers…
Christopher Marshall
  • 10,678
  • 10
  • 55
  • 94
0
votes
2 answers

Displaying a weekday name in VB

Good morning, I am using a calendar form control to grab user selected dates and date ranges. On a calendar click event I refresh my form to show the user the selected start and end dates. As part of the refresh, I update a text field to show the…
DazEvans
  • 149
  • 4
  • 13
0
votes
1 answer

How to read from a resx file in the App_LocalResources folder using a specific culture?

To read a resource for a default culture I'd do this: object obj = GetLocalResourceObject("MyTextResourceID.Text"); But what I need is to do the same but to be able to specify a culture for the resource. So I tried…
c00000fd
  • 20,994
  • 29
  • 177
  • 400
0
votes
1 answer

Override culture when using GetGlobalResourceObject or GetLocalResourceObject in ASP.NET

I've implemented localization in this ASP.NET project using resource files and that's working as expected. But there is one situation where I have to display the whole page in one language and then a section of it in some other language based on the…
Farinha
  • 17,636
  • 21
  • 64
  • 80
0
votes
1 answer

Linq select based on culture

I'm sorry if this is a stupid question but if I want to return column depending on culture, what would the best way be? I've thought of having if elses in the linq select statement or making an extension: Say I use code first with linq and have a…
Hawk
  • 1,513
  • 1
  • 14
  • 17
0
votes
1 answer

Setting cultureinfo does not give correct strings from local resource files

I have a website with a page called buystuff.aspx. I've created two local resources: buystuff.aspx.resx and buystuff.aspx.da-dk.resx. This works fine, and if I enter the site with a da-DK setting, I get that version, and if I enter with anything…
Lars Holdgaard
  • 9,496
  • 26
  • 102
  • 182
0
votes
1 answer

System Culture in a SIlverlight Application

I can't figure out how to get the CultureInfo of the Installed System on the Client Machine. There is the CultureInfo.InstalledUICulture Property, but it seems to be unavailable in Silverlight. Regards Jonny
Johannes Wanzek
  • 2,825
  • 2
  • 29
  • 47
0
votes
1 answer

How do I set a custom culture before the page is rendered?

I have created a custom culture for client-specific language, i.e. I have resx files for that culture. The issue I have is that I can't seem to set the culture early enough in the page cycle. By the time I call Thread.CurrentThread.CurrentUICulture…
Bernard
  • 1,983
  • 4
  • 18
  • 27
0
votes
1 answer

format currency in specific way for only one culture

I am working on a multi lingual application that shows product prices in different currencies. I use the .net library to format currencies based upon culture eg. CultureInfo current = CultureInfo.CurrentCulture; return…
amateur
  • 43,371
  • 65
  • 192
  • 320
0
votes
1 answer

How to get all Cultures to avoid CultureNotFoundException

Guys I'm developing an application that will run across multiple machines. I've recently introduced Cultures in it to support all currencies. I have 2 main development PCs and I move code between them. One is a Windows 8 laptop, while the other is a…
Ahmad
  • 12,886
  • 30
  • 93
  • 146
0
votes
1 answer

How to do currency-based number validation?

I have a Winforms Application, in which I have a Combo Box, and a text box. Combo box has Currency symbols as follows: USD GBP CAD AUD JPY EUR ISK PLZ TRL etc .. The user first selects one currency symbol from the above, and then types in a value…
Ahmad
  • 12,886
  • 30
  • 93
  • 146
0
votes
1 answer

change profile language

Web.config Default.aspx.cs protected void Page_Load(object sender, EventArgs e) { Profile.Language = "fr"; string strCultur =…
Will_G
  • 269
  • 2
  • 5
  • 18
0
votes
1 answer

DateTime format according to the culture in MVC

I have an MVC view where I list a dateTime type column named "CreatedOn", the values are formatted like this: 'DD/MM/YYYY HH:MM:SS', When I click on edit link to modify a value I obtain the same format, When I modify the edited value I get the…
Sami-L
  • 5,553
  • 18
  • 59
  • 87
0
votes
1 answer

WinRT - How To Get the correct DateTimeFormatter based on the user culture

I've some trouble finding the right DateTimeFormatter for the user. When converting a date to a string for example with .ToString("D"); always the en-US culture is used in WinRT. I found out that there are new globalization apis which should be…
Boas Enkler
  • 12,264
  • 16
  • 69
  • 143
0
votes
3 answers

.NET global culture on a new server

We've just moved to a new server and everything's being going well. However earlier I ran into a .NET error when it was trying to convert a string in the format "dd/mm/yyyy" to a date, now I changed the culture setting in the local web.config but we…
John_
  • 2,931
  • 3
  • 32
  • 49