Click here to Skip to main content
15,889,526 members
Everything / Culture

Culture

culture

Great Reads

by John B Oliver
Resolve unreferenced type in .NET app using partial type name from GAC
by Shweta Lodha
Issue with WPF app while performing localization
by Andrea Simonassi
A simplified guide to the RFC5646 document; what is a language tag, how must be parsed, what is the IANA registry. How to implement a library, in any programming lang, to lookup user preferred language against a list of supported languages. A C# implementation is provided.
by Jani Giannoudis
Structured approach to ASP.NET Localization

Latest Articles

by Jani Giannoudis
Structured approach to ASP.NET Localization
by John B Oliver
Resolve unreferenced type in .NET app using partial type name from GAC
by Andrea Simonassi
A simplified guide to the RFC5646 document; what is a language tag, how must be parsed, what is the IANA registry. How to implement a library, in any programming lang, to lookup user preferred language against a list of supported languages. A C# implementation is provided.
by doonhamer
A real world example of the IT setup used by a small UK based charity. It is high level and provides a brief but complete overview.

All Articles

Sort by Score

Culture 

16 Sep 2020 by John B Oliver
Resolve unreferenced type in .NET app using partial type name from GAC
4 Sep 2013 by Shweta Lodha
Issue with WPF app while performing localization
1 Nov 2016 by Andrea Simonassi
A simplified guide to the RFC5646 document; what is a language tag, how must be parsed, what is the IANA registry. How to implement a library, in any programming lang, to lookup user preferred language against a list of supported languages. A C# implementation is provided.
25 Sep 2013 by NeonMika
Hey there community,I have one question why my code is working. :PYeah, sounds strange, but I'm just curious...When I'm starting my application in English I'm setting my current culture info:CultureInfo cultureInfo;cultureInfo = new...
6 Jan 2014 by Karthik_Mahalingam
try this.string datestr = "01.08.2014"; string format = "MM.dd.yyyy"; DateTime dt = DateTime.ParseExact(datestr, format, System.Globalization.CultureInfo.InvariantCulture);
6 Jan 2014 by hari111r
i am having a problem converting a string with different culture to datetime.I want to convert any format (any culture) to datetime "Ср, 01.08.2014" Russian formatPlease help me to solve this.
15 Jan 2015 by Sergey Alexandrovich Kryukov
Force? Wrong word, I would say. You just need to output what you want.The problem you have is: all (is I'm not much mistaken) Arabic cultures and Urdu cultures use… "Arabic numerals" ("Indo-Arabic"), which are ironically… Western European 1234567890.What you show is not...
21 Jun 2016 by Maciej Los
To be able to properly set DataGridViewCell format, you have to set 2 properties:1) DataGridViewCellStyle.Format = "C";2) DataGridViewCellStyle.FormatProvider = IFormatProvider; //default is CurrentUICultureFor more details, please see:How to: Format Data in the Windows Forms...
25 Sep 2013 by Bernhard Hiller
The forward slash "/" is not meant to be a forward slash literally - it stands for the separator used in the date format. You did not change that (you could do so with cultureInfo.DateTimeFormat.DateSeparator = "/";, consequently the dot "." is still acceptable as the separator. And by the way,...
6 Jan 2014 by Reshma Babu
http://msdn.microsoft.com/en-us/library/5hh873ya(v=vs.90).aspx[^]
6 Jan 2014 by Shree66
Hi,Try with this:private static DateTime? ParseDate(string input){ DateTime result; if (DateTime.TryParseExact(input, formats, CultureInfo.InvariantCulture, DateTimeStyles.None, out result)) { return result; } return null;}Regards,Shree M.
30 Apr 2014 by Dexter11
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 problem while accessing the column using...
11 Jun 2014 by katela
Good dayHow to create a multilingual windows form that can change the display language of open dialog box?I have a form application and would like the user to change the language of display. Here is my code, so far I can change the form controls including the menu item, I couldn't change the...
4 Aug 2014 by markand911
I am facing a problem of validating date & time according to local culture.This is my RegularExpressionValidator
4 Aug 2014 by Jaimin H. Soni
try this Validation expression@"^(([0-2]\d|[3][0-1])\.([0]\d|[1][0-2])\.[2][0]\d{2})$"
2 Feb 2015 by AlwaysLearningNewStuff
I have dialog box made in resource editor that behaves as a child control of the main window.In normal mode, when behaving as a popup, dialog can receive WM_SETTINGCHANGE[^] message that notifies dialog box about user changing locale settings, but as a child it does not seem to receive this...
11 Feb 2015 by KarstenK
You must forward the message in your app. Post it with the same parameters to your actual window and handle it in a message handler.
3 Mar 2016 by Member 10773156
I have been beating my head against the preverbal wall trying to figure this out. I have a WPF application targeting .Net 4.5.1 using an MVVM pattern running on Windows 8.1. All I need is to switch the current culture for my application (or all of Windows) so the associated keyboard map is...
21 Jun 2016 by Sergey Alexandrovich Kryukov
In addition to using a culture directly for formatting, you can assign a culture to the whole thread. Please see:Thread.CurrentCulture Property (System.Threading),Thread.CurrentUICulture Property (System.Threading).You did not explain the problem with your code sample, but I can see one...
7 Feb 2018 by abdul subhan mohammed
Dear All, I have build multilingual website in asp.net c#. But, its not changing the page direction when changing cultureInfo. I have two languages "en-US" and "ar-SA". When cultureinfo changes, the text is getting change from English to Arabic, but, not changing the page direction from left...
7 Feb 2018 by Sinisa Hajnal
You need to change all these places (or at least most of them, this is something that works for me) protected override void InitializeCulture() { if (Request.Form["culture"] != null) { String selectedLanguage = Request.Form["culture"]; UICulture = selectedLanguage; Culture =...
19 Nov 2020 by Ram Kumar(Webunitech)
Hello All, I am having a few issues with setting globalization with the Chinese language with the asp.net website. We have a website in asp.net with VB.net and we have implemented the globalization English/French/Chinese language culture using a...
19 Nov 2020 by Gerry Schmitz
"Unsorted". How does anyone here know how they should be "sorted"? (Or not). Chinese uses double byte (and perhaps triple byte characters); English and French not so much. Maybe you need to consider those extra bytes, when "sorting" (or not).
16 Aug 2023 by Jani Giannoudis
Structured approach to ASP.NET Localization
26 Sep 2016 by doonhamer
A real world example of the IT setup used by a small UK based charity. It is high level and provides a brief but complete overview.
24 May 2013 by BBGq
This article describes the cultures of VB and C#.
11 Jun 2014 by Sergey Alexandrovich Kryukov
Nearly all the main ideas you will need to know are covered in my past answers on the topic:How to use a Single resx file for 3 languages[^],globalization in winforms[^],globalization/localization problem in winform .net[^].And also this one: Globalization of Checkboxes[^].The...
21 Jun 2016 by BEBE2011
Hi ,Trying to add United States Dollar Symbol $ to a columns cell, but it returns the Euro symbol €?BACKGROUND:The program im building is currency converter where a user enters an amount in a numericUpdown and a combobox with all the worlds currencys. The amount entered is then multiplied...
19 May 2013 by Shemeer NS
How to do SQL Server culture mapping with .NET Framework
9 Sep 2013 by trasi
I have a custom forms grid control that has a collection property which contains object which has two string properties set to be localized. This works as expected, except the Name (the key) used in the .resx file is too generic. As an example, it will assign the Name to be resource.Label,...
6 Sep 2013 by Sergey Alexandrovich Kryukov
I think you are going in a wrong direction. You should never use, say, label names "Label", "Label1", "Label2" or the like. Such name violate (good) Microsoft naming conventions which don't allow, in particular, digits, underscores and abbreviations in any names, for some really good reasons....
11 Jun 2014 by katela
Thank you for your message, but i am still struggling, I am not an expect in C#, could you provide me with just a simple code example on how to do this?Thanks
15 Jan 2015 by User 9174741
I want to force controls in my application to show specific numbers digitsExample ImageI set the CurrentCulture in the main procedure; but it does not change the numbers digits .. Public Shared Sub Main() CultureInfo.DefaultThreadCurrentCulture = New...