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

Input string was not in a correct format. calling TimeSpan.FromSeconds(Convert.ToDouble(time)) in IE on Changing Culture

Hi i m using given below method to convert in to string its working fine chrome but in IE its through exception Input string was not in a correct format. at this line s = TimeSpan.FromSeconds(Convert.ToDouble(time)); these are values i m passing…
Zaq
  • 1
  • 3
0
votes
1 answer

Specify cultureinfo in XAML

I am developing a custom control for WinRT. I have a property with type CultureInfo. When I try to set this property in XAML, it shows following error.(But it shows possible values in intellisense.) Cannot assign text value 'af-ZA' into property…
Jawahar
  • 4,775
  • 1
  • 24
  • 47
0
votes
1 answer

Input decimal with commas in c#

i have a question in Indonesia, we usually use 8,5 not 8.5 but when i write 8,5 in textbox it mean 85 how to solve it? simply i want to change the dot with commas
Alvin Christian
  • 153
  • 1
  • 1
  • 8
0
votes
2 answers

What is the standard way to name a file based on CultureInfo?

Looking a recommendation for my criteria. I need to create a file for different countries and looking at the best naming strategy for this. I am working with .net 4.5. So example I need to create a file with Russian data, should it be…
amateur
  • 43,371
  • 65
  • 192
  • 320
0
votes
5 answers

SQL Server 2005 vs. ASP.net datetime format confusion

I've found a similar question on stack overflow, but it didn't really answer the question I have. I need to make sure that my asp.net application is formatting the date dd/mm/yyyy the same as my SQL Server 2005. How do I verify the date culture (if…
Paulj
  • 3,096
  • 3
  • 25
  • 30
0
votes
0 answers

Assembly resolve failed event fires when EF ObjectContext is created

I have found a strange thing. If you create an EF datacontext you get some assembly resolve failed events like this: Any EF will do my sample has: var db = new NorthwindEntities(); System.Xml.resources, Version=4.0.0.0, Culture=hu-HU,…
Laszlo Boke
  • 1,319
  • 1
  • 10
  • 22
0
votes
3 answers

Sql Server: culture changed once i moved to another server. c# .NET

Recently I decided to move to another server. Now my application runs on different servers with different culture (IT and EN). Everything worked fine but now i am facing many problems with date and numbers. The main problem seems to be SQL Server.…
user1589910
  • 1
  • 1
  • 3
0
votes
3 answers

PocketPC - Convert VT_DATE to an invariant VT_BSTR

I'm trying to convert a VARIANT from VT_DATE to an invariant VT_BSTR. The following code works on Windows XP: VARIANT va; ::VariantInit(&va); // set the variant to VT_DATE SYSTEMTIME st; memset(&st, 0, sizeof(SYSTEMTIME)); st.wYear =…
Chris Karcher
  • 2,252
  • 7
  • 24
  • 31
0
votes
2 answers

How to globally set the culture in a WPF application (Windows XP)?

I have a WPF application that uses 3rd party controls (like http://navigationpane.codeplex.com) which also provide translated UI (German in particular, which is the default and only language of my app). On Win7, everything is displayed in German as…
floele
  • 3,668
  • 4
  • 35
  • 51
0
votes
1 answer

How do I tell my application which resx file to use when it is passed a culture it doesn't understand? (WPF)

Subject says it all. I have Resources.en-US.resx, Resources.de-DE.resx, etc. I don't ever want the basic Resources.resx file to be referenced. If someone passes me a language that I don't have a resx for I want it to drop back and use…
Kamiikoneko
  • 785
  • 5
  • 12
  • 24
0
votes
1 answer

Time format in asp.net page

i use telerik RadDateTime control for insert date and time into one table of SQL Server DB. The problem is about what i see in browser: when my grid is bind to the DB, it shows the cell containing the datetime value in format dd/MM/yyyy hh.mm.ss and…
David
  • 73
  • 5
  • 14
0
votes
3 answers

Asp.Net resource manager always returns neutral culture resources

I am using embedded .resx to localize an asp.net application. It seems that no matter what the current culture is, the neutral culture resource is always returned. The code I am using to retrieve the value is as follows: protected string…
None
0
votes
1 answer

Cultute error on Entity Framework 4.3.1

I have updated my project in EF 4.0 to EF 4.3.1. However, when I create a new Context object, an exception is thrown: Culture is not supported. Parameter name: name 2.3.2 is an invalid culture identifier. The complete Stack Trace: at…
Aécio
  • 35
  • 1
  • 4
0
votes
1 answer

Setting requested Culture when consuming web services

I am looking for some solution how I could easily set the requested Culture at client and get it on server. So I would get for example return error message in requested language. Is there way to set it on WebRequest or WebMethod? Any suggestion…
Jaroslav Urban
  • 1,269
  • 3
  • 20
  • 32
-1
votes
2 answers

DateTime.ToString("dd.MM.yyyy") giving wrong format

I'm trying to convert a Date, into a Romanian DateTime String. This is my code: using System.Globalization; var date = DateTime.Now; var cult = CultureInfo.GetCultureInfo("ro-RO"); var dateToString =…
Katia S.
  • 197
  • 2
  • 13