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

Website configuration to have different culture settings per subdirectory

I have an Umbraco site with this structure En -Home -Page1 Es -Home -Page1 It -Home -Page1 etc And I want when you browse to www.mydomain.com/en/home.aspx to have the culture and culture-ui set to en or en-GB www.mydomain.com/it/home.aspx to…
Nick
  • 2,877
  • 2
  • 33
  • 62
0
votes
0 answers

Can I specify custom format for en-US when I put that in app.config

I have a desktop app in VS2010, I have defaulted culture to en-US in config file. Problem is: some of my app users have English (United States) but date format is dd/MM/yyyy wherein my app expect it to be in M/d/yyyy (as per US format). This is…
0
votes
1 answer

How to determine the locale (culture) used by a WPF control?

WPF controls don't seem to have a .Cultureproperty, or any other obvious way of controlling how text is localised. Worse, on my test machine it doesn't even respect the system locale. My application needs to work for Germans, so the test machine…
Adrian Ratnapala
  • 5,485
  • 2
  • 29
  • 39
0
votes
0 answers

Issue with turkish culture in asp.net

We are having an issue related to localization while comparing the strings in the code behind. Below is the scenario. ‘dr’ is a data-row having column name defined in upper case [“NO_OF_CHECKLIST_ITEMS”] Current Culture = “tr-TR” Now, it is creating…
hampi2017
  • 701
  • 2
  • 13
  • 33
0
votes
0 answers

Force data to a specific culture with 'toLocaleDateString'

I have got a date and I like to convert it 'toLocaleDateString' but in the language I like. I am trying to do it, but it always give me the format of the user language(spanish). var date = new Date();//or any date console.log("date: " +…
Za7pi
  • 1,338
  • 7
  • 22
  • 33
0
votes
1 answer

Problems with settings file depending on configuration (debug, release)

I'm now localizing my WPF application and there is this little piece of code in the constructor of the MainWindow: System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(Settings.Default.Language); It crashes…
Mitulát báti
  • 2,086
  • 5
  • 23
  • 37
0
votes
6 answers

Error while converting textbox content to DateTime format in C# ASP.net

Hi i am developing an application, in that i required to store date in sql server 2005 database which is retrieved from a textbox in front end. In front end, user is allowed to pick a date from JQuery UI DatePicker plugin. Error I am getting is as…
shary.sharath
  • 649
  • 2
  • 14
  • 29
0
votes
3 answers

Trying to convert string into double C#?

double test = Convert.ToDouble("39,618840‎"); this gives me a format exception, and I have tried using the Cultureinfo.invariantculture setting, it does the same.
Bohrend
  • 1,467
  • 3
  • 17
  • 26
0
votes
1 answer

in C#, Is it possible to specifies category argument like setlocale() in C++?

I have this C++ code static const int category[] = {LC_ALL, LC_COLLATE, LC_CTYPE, LC_MONETARY, LC_NUMERIC, LC_TIME}; int op; ... /* op = 0; => The entire locale. */ op = 3; /* => Affects monetary formatting information…
LeMoussel
  • 5,290
  • 12
  • 69
  • 122
0
votes
1 answer

Non-Standard Date Format in ASP.NET MVC, Telerik Kendo, jQuery validation

How does one add a new date format to ASP.NET MVC 4, Telerik Kendo (and its DatePicker), with jQuery validation also present?
0
votes
1 answer

XSLT msxsl:format-date ignores current culture

I am using XSLT (xml version='1.0') in Visual Studio ASP.NET 4.0. I am using a product that is available in multiple languages, but I cannot get nsxsl:format-date to respect the current language. For example, if I have set the current culture to…
Nanite
  • 93
  • 2
  • 5
0
votes
0 answers

Localisation issue

I have set up an MVC4 environment where I have created some localisation using simple resx files in the resources directory. The naming of the file I have used was XXXXX.resx and XXXXX.nl.resx. This worked brilliantly. I have now changed to a…
XiMM
  • 13
  • 3
0
votes
1 answer

ASP.NET MVC - Routing and Culture

I have a base controller in which I get and set the CurrentThread Culture. protected override void ExecuteCore() { string cultureName = null; // Attempt to read the culture cookie from Request HttpCookie cultureCookie…
user2779312
  • 661
  • 2
  • 9
  • 23
0
votes
1 answer

HTML Select - option with text readed from resx file

i'm working on a project where i'm using culture. Usually i use this syntax to read text from resx files for my html object:
MassiCiaoCiao
  • 74
  • 2
  • 6
0
votes
1 answer

DateTime Format has not the right culture WP8

I try to display a datetime in the French format dd/MM/AAAA hh:mm:ss. I have a DateTime in the English format like MM/dd/AAAA hh:mm:ss AM or PM So I do a parsing like this: foreach (var _element in listElement) { IFormatProvider culture = new…
Paul Martinez
  • 562
  • 1
  • 9
  • 19