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

Linq expression decimal culture

I have this piece of code: fee.SingleOrDefault(f => 100.05M >= f.Rate); In the database the Fee.Rate is a money field stored using invariant culture. But using this select gives an error because my current culture will convert "100.05" to "100,05"…
jaap
0
votes
4 answers

How to Change value From Persian Culture to English

i have a variable with persian culture digits like this: string Value="۱۰۳۶۷۵۱"; i want to convert this digits to English version and save it again in my string like this Value="1036751"; please help me how can i do this if i can use easy way…
Amin AmiriDarban
  • 2,031
  • 4
  • 24
  • 32
0
votes
1 answer

asp.net merge more language in one culture

i'm using asp.net integrated language system for making my site multi-language. I used Culture="auto:it-IT" UICulture="auto" in every page to get italian as main language. Now i want my site to display in english too. I created another resource file…
HypeZ
  • 4,017
  • 3
  • 19
  • 34
0
votes
2 answers

JSON date to asp.net DateTime is changed at runtime

I've searched around and I'm really not sure why this happens. Most of the time my app runs in GMT from devices using GMT, but I just span a server up in Singapore, so the time is 8hrs ahead. I'm seeing some strange behaviour with DateTime objects…
Markive
  • 2,350
  • 2
  • 23
  • 26
0
votes
1 answer

Android/Java: How to code if-statements based on localisation-settings?

Right now I'm starting to think about localisation of my ANDROID app. I'm coding in JAVA and I'm using the ADT environment. The app is supposed to run in German and English once it is finished. I found quite a few nice tutorial about how to access…
Christian
  • 1,589
  • 1
  • 18
  • 36
0
votes
1 answer

Not consistently setting thread culture in ASP.net - bad idea?

I found a specific situation where we don't set the thread culture after a page loads. We also have a very rare case where someone's culture switches for no obvious reason. Are these two things related? I understand that when you use a thread pool,…
Chris Simpson
  • 7,821
  • 10
  • 48
  • 68
0
votes
0 answers

Validate users' number inputs considering the culture of the user

I am developing an ASP.Net web API application and I want to validate users' number inputs for the culture. Which means, if user has entered 12.0 when he is has used the culture as "no" (Norwegian), I should block this request and send an error to…
Thilok Gunawardena
  • 924
  • 5
  • 22
  • 44
0
votes
1 answer

Returning an array of culture formatted dates C# MVC3

I'm new to programming and trying to do an exercise that formats a date to the Thai culture in a variety of formats this is what I have for my code so far: public String[] FormatAsSpecified(DateTime theDate, String theCulture, String[] formats) …
user1875797
0
votes
1 answer

telerik RadDatePicker culture

I have a simple telerik:RadDatePicker.
Sanya530
  • 1,209
  • 4
  • 18
  • 24
0
votes
1 answer

Sitecore Advanced Database Crawler and Partial Language Falback

We have ADC and Partial Language Fallback both implemented in our Sitecore installs. We have identified an issue which we are hoping somebody else has come across and can help us in resolving this issue. Basically, when a non-default (Chinese for…
Gabbar
  • 4,006
  • 7
  • 41
  • 78
0
votes
1 answer

how do I select to collations for sql server database?

I am working with a number of sql server 2012 databases that contain data from different languages. I have been reading up on such and have found getting the collations for the sql server databases correct is something that needs careful…
amateur
  • 43,371
  • 65
  • 192
  • 320
0
votes
1 answer

VB.NET: Get native language name from LCID

I would like to get the native language name (for example "Deutsch (Deutschland)") for a given LCID. So far I have only seen example where I had to set the CurrentThread's culture to this culture. I am looking for a solution to it without having to…
tmighty
  • 10,734
  • 21
  • 104
  • 218
0
votes
1 answer

culture locale make up

The following is the culture locale for Belgium with the french language: fr-BE fr is the Two Letter ISO Language Name But what is the correct term/name for the "BE" aspect of the culture local?
amateur
  • 43,371
  • 65
  • 192
  • 320
0
votes
2 answers

Changing Culture Fails DateTime Conversion

Frustrating problem with DateTime, we have a section with a date picker on and if the culture is set to en-GB and the date is 01/11/2012 (dd/mm/yyyy) and then the culture is swapped to Chinese (zh-CN) the date is passed in the old culture format and…
user351711
  • 3,171
  • 5
  • 39
  • 74
0
votes
1 answer

Resource file for en-GB locale doesn't load in C# application

I am setting the locale of my application using Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-GB"); Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-GB"); but my "Resource.en-GB.resx"…
pengibot
  • 1,492
  • 3
  • 15
  • 35