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

GridView or Datagridview column specific culture

I'm creating a GridView which has a balance column. Depending on the currency, I have to set its symbol to dollars or colones (my country´s currency). I'm doing good with labels, but I cant find the way to set it on the grid, only to "Mon" and "Sal"…
0
votes
1 answer

WP8 - C# - Parsing string to decimal FormatException

I am currently trying to parse a string, "277.968", to decimal, but I am getting a FormatException exception. I have read that I need to perform the decimal parse this way: string str = "277.968"; decimal.Parse(str,…
Guido Magrin
  • 551
  • 3
  • 7
  • 20
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…
0
votes
1 answer

How can I detect the device culture settings in a Windows Store App?

I have C# code for as Windows Store app that returns the app language information. If my app is configured to support "fr" and the device is set to that language, then the app determines that the app language information is "fr". But if the app is…
David Rector
  • 958
  • 9
  • 31
0
votes
1 answer

DatePicker doesn't show date because of the culture

I have issue with DatePicker! He doesn't want to show data if there is different culture, although i don't care about cultures and the only standard should be dd/MM/yyyy that is it. But some how in the value i see dd.mm.yyyy or dd-mm-yyyy or…
Alnedru
  • 2,573
  • 9
  • 50
  • 88
0
votes
1 answer

Asp.net datetime culture issue

I have encounter an issue while working with datetime in asp.net. While sending datetime string from an textbox to DateTime according to the Turkish Culture, the datetime format is breaking. For instance; i am sending these parameters on querystring…
Goran Zooferic
  • 371
  • 8
  • 23
0
votes
1 answer

Force culture in ASP.NET MVC WebApp

I wish to force danish culture in my web application, but I can not get it work. I am trying to populate a dropdown list with danish country names, but they return in english. public static IEnumerable GetCountries(string…
janhartmann
  • 14,713
  • 15
  • 82
  • 138
0
votes
1 answer

XmlConvert.ToString not local invariant?

For our multi-tier application, we use XmlConvert.ToString() to generate an xml. This XML String is sent to a physical device for its configuration by our "configuration application". Another application is responsible to connect the this physical…
J4N
  • 19,480
  • 39
  • 187
  • 340
0
votes
1 answer

Resources Culture issue in Silverlight 5

Sorry, in advance for my English, its my first post here. I've got strange problem with RESX, supported culture in Silverlight. Its silverlight app with 1 web(asp.net) project which start whole silverlight app, 1 main project(silverlight,…
Syryk
  • 1
  • 2
0
votes
1 answer

How do I perform a culture-insensitive sort using the DataGrid?

By default, System.Web.UI.WebControls.DataGrid will sort String-based columns using a culture-sensitive sort. This can cause unexpected results when sorting product numbers that contain hyphens. For example, items will be sorted as 10-199, 103-10,…
Michael Venable
  • 5,011
  • 3
  • 23
  • 20
0
votes
1 answer

NHibernate number format problem - where do I set the culture?

LATER EDIT : It was me :( It was a non-nullable column left unfilled. Sorry to everyone I confused.. I am having issues with an INSERT statement generated by NHibernate because it formats the decimal numbers using the regional settings. The…
Andrei Rînea
  • 20,288
  • 17
  • 117
  • 166
0
votes
2 answers

How to get DateTime object in french culture

I am working on an application which have 2 language versions. In this app I am creating a DateTime object for 1st day of the month. e.g. DateTime startOfMonth = new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1); The output comes out…
VJOY
  • 3,752
  • 12
  • 57
  • 90
0
votes
0 answers

internationalization using .Net MVC 4

I currently have all static text in my website using the resource files to serve up english or spanish text depending on the users browser settings. This is easy. What I would like to do now is serve up content in my views that is coming from the…
Eric Bishard
  • 5,201
  • 7
  • 51
  • 75
0
votes
2 answers

Is 'culture' (eg. es-MX, en-US) meant to localize website -content- or -appearance-?

is the concept culture (as with .NET CultureInfo) to be used solely in localizing appearance of a website (language, date- and numberformatting etc.), or can it be used for localizing website content (location-bound newsmessages, contactdetails…
Ropstah
  • 17,538
  • 24
  • 120
  • 194
0
votes
2 answers

ConvertTimeToUtc culture

Right now this string is returning: "Giovedi 24 Ottobre 2013", which is absolutely correct. I have adjust the result with a +1 hour for my specific needs. I need the string to return "Thursday 24 October 2013", basically the same but in English. …
FeliceM
  • 4,163
  • 9
  • 48
  • 75