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

Why do I get, "Culture is not supported" and What, if Anything, Should I Do about it?

I have a breakpoint on the "return" line here: [HttpGet] [Route("api/Test/{id1}/{id2}")] public NRBQEntity GetTestMessage(String id1, String id2) { return NRBQClient.GetTestMessage(id1, id2); } Although it does not crash the app, when I reach…
13
votes
3 answers

JavaScript: Culture-independent case-insensitive string comparison

If this exact question has been asked before, please point me to the relevant question. tl;dr: How does one compare two strings in JavaScript while ignoring casing according to English rules? My code analyzes and compares data from two different…
BambooleanLogic
  • 7,530
  • 3
  • 30
  • 56
13
votes
3 answers

creating custom CultureInfo for country, language combination

I am working on a .net 4.5 application that needs to be mult lingual supporting multi cultures etc. The following is sample list of Countries/Languages Russia / Russian Belgium / French Belgium / Dutch For all the above, there is a CultureInfo…
amateur
  • 43,371
  • 65
  • 192
  • 320
12
votes
4 answers

Globalize.js - how to parse date and time rather than just date

Globalize.js allows you to parse a date string based on the current culture applied var date = Globalize.parseDate("17/07/2013"); //Wed Jul 17 00:00:00 PDT 2013 What I would like to do is parse a DateTime. The javascript Date object handles this,…
Kevin
  • 2,752
  • 1
  • 24
  • 46
11
votes
5 answers

UI design and cultural sensitivity/awareness

When designing a user interface for an application that is going to be used internationally it is possible to accidentally design an aspect of the UI that is offensive to or inappropriate in another culture. Have you ever encountered such an issue…
Richard Ev
  • 52,939
  • 59
  • 191
  • 278
11
votes
3 answers

TryParse equivalent of Convert with invariantculture

In my code I frequently use the following Converts: Convert.ToInt32(value, Cultureinfo.InvariantCulture); Convert.ToDecimal(value, CultureInfo.InvariantCulture); I now do like to use TryParse functions because of recent errors. I'm not entirely…
Schuere
  • 1,579
  • 19
  • 33
11
votes
3 answers

CultureInfo For Swedish

I want to convert the datetime to Swedish Culture. DateTime.Today.ToString("dd MMMM yyyy"); Above line of code gives me results as 27 December 2013 I want to have results which display december in swedish language.
Manoj Sethi
  • 1,898
  • 8
  • 26
  • 56
11
votes
2 answers

Where does the default culture get set in a .NET application

I am writing a WPF app and am having some difficulty with cultures. I'd like to know where .NET applications pick up the value for CurrentThread.CurrentCulture when no value is explicitly set. It's not from the Windows culture info because I have…
serlingpa
  • 12,024
  • 24
  • 80
  • 130
11
votes
3 answers

How to find the default dateformat of a Culture

Well, I am trying to get the default date format of a culture. For example en-us has "m/dd/yyyy" , en-uk 'd/mm/yyyy'. Culture could be anything at the client machine. and Dateformat can also be anything. like for Culture is en-us but dateformat is…
user1899600
  • 113
  • 1
  • 5
10
votes
6 answers

Best practices for a single large SVN project

I have inherited a single project in svn: 30Gb in over 300 000 files. There are tons of binary files in there mostly in an images folder. Operations like updating the entire project can be dramatically slow. The team has evolved a process to only…
Talesh
  • 550
  • 1
  • 5
  • 12
10
votes
4 answers

NUnit, testing against multiple cultures

Using NUnit I wish to run all the tests in a certain project against multiple cultures. The project deals with parsing data that should be culture neutral, to ensure this I would like to run every test against multiple cultures. The current solution…
Chris Chilvers
  • 6,429
  • 3
  • 32
  • 53
10
votes
2 answers

Pandoc: setting language of exported Word docx

I export Word docx from markdown using Pandoc. By default, everything seems to be marked as English in the docx file. So I tried to override this, e.g. by command line option pandoc -s -S images.md -o images.docx -V lang=de or in the header…
Joshua Muheim
  • 12,617
  • 9
  • 76
  • 152
10
votes
7 answers

Get just the hour of day from DateTime using either 12 or 24 hour format as defined by the current culture

.Net has the built in ToShortTimeString() function for DateTime that uses the CultureInfo.CurrentCulture.DateTimeFormat.ShortTimePattern format. It returns something like this for en-US: "5:00 pm". For a 24 hour culture such as de-DE it would return…
InvisibleBacon
  • 3,137
  • 26
  • 27
10
votes
2 answers

IndexOf and ordinal string comparisons

My problem is that String.IndexOf returns -1. I would expect it to return 0. The parameters: text = C:\\Users\\User\\Desktop\\Sync\\̼ (note the Combining Seagull Below character) stringToTrim = C:\\Users\\User\\Desktop\\Sync\\ When I check for the…
Alexandru
  • 12,264
  • 17
  • 113
  • 208
10
votes
4 answers

Receiving an Arabic datetime error in asp.net

I use ADO disconnected mode to get data from database by filling dataset ds. All data come true except the date field string strDate = ds.Tables[0].Rows[0]["H_DT"].ToString(); it throws an exception says: Specified time is not supported in this…
Abraham Josef
  • 653
  • 1
  • 8
  • 30