Questions tagged [globalization]

The process of making an application suitable for use for a world-wide audience, regardless of culture.

Cultures world-wide differ in many ways beyond the language spoken by users.

Globalization (or globalisation) is the process of making software appropriate for many different cultures. This might include

  • ensuring left-to-right and right-to-left character sets and display layouts are supported
  • different sort orders and search conventions are honoured
  • using non-pejorative user interface conventions, e.g. avoiding use of certain colours
  • understanding different conventions for people's names
  • recognising different ways to identify buildings and companies

It can be contrasted with localization, which is the process of tailoring software software for a particular locale.

1436 questions
32
votes
10 answers

CurrentCulture incorrectly defaulting to en-US in ASP.net

I have just migrated around 100 ASP.net sites from IIS 6 on Windows Sever 2003 to IIS 7 on Windows 2008. I've just noticed that various pieces of code that use things like DateTime.Parse have started kicking up errors "String was not recognized as a…
Siegemos
  • 385
  • 1
  • 3
  • 10
32
votes
2 answers

How to configure invariant culture in ASP.NET globalization?

I need to fix CurrentCulture as the invariant culture in an ASP.NET application. How can I do this? ...
Mike Chaliy
  • 25,801
  • 18
  • 67
  • 105
29
votes
3 answers

Why doesn't object have an overload that accepts IFormatProvider?

When converting for instance a decimal to a string, you use the CultureInfo.InvariantCulture and pass it as an IFormatProvider. But why is this overload not in object? A nice implementation would be: public virtual string ToString() { //…
Oskar Kjellin
  • 21,280
  • 10
  • 54
  • 93
28
votes
3 answers

Globalization vs. Localization

Possible Duplicates: Terminology used for language and culture-aware software What is system.globalization And what’s the difference between it and localization What is the difference between Globalization and Localization?
skb
  • 30,624
  • 33
  • 94
  • 146
28
votes
2 answers

ASP.NET MVC: When to set Thread.CurrentThread.CurrentUICulture?

I am just beginning to localize an ASP.NET MVC application. Most of the strings will be defined in resource files and retrieved via Matt's Localization Helpers. Other strings must be stored in a database. My Question: Should I set CurrentUICulture…
Robert Claypool
  • 4,262
  • 9
  • 50
  • 61
27
votes
4 answers

Globalization in ASP.Net MVC 3

I am trying to achieve globalization/localization in my MVC 3 application. I don't want different Views for each language. Please suggest how I can proceed. Any supported links/URLs will be of great help.
Vivek
  • 271
  • 1
  • 3
  • 3
27
votes
2 answers

Constants for CultureInfo Name

Is there a set of constants or an enumeration in C# system/globalization namespace which contains valid culture names? I am looking for something so that I don't have to type in "en-GB", etc.
Annie B
  • 637
  • 1
  • 9
  • 14
25
votes
1 answer

Android change and set default locale within the app

I am working on globalization of Android app. I have to provide options to choose different locales from within the app. I am using the following code in my activity (HomeActivity) where I provide option to change the locale Configuration config =…
Xavier DSouza
  • 2,861
  • 7
  • 29
  • 40
24
votes
5 answers

How to check if culture exists in .NET

I have this code, when I try to get not existed culture I get exception. Is there exists method like TryGetCultureInfo, which return bool value? I don't want to use try-catch statement CultureInfo culture =…
Jacek
  • 11,661
  • 23
  • 69
  • 123
23
votes
4 answers

How to set decimal separators in ASP.NET MVC controllers?

I'm working with the NerdDinner application trying to teach myself ASP.NET MVC. However, I have stumbled upon a problem with globalization, where my server presents floating point numbers with a comma as the decimal separator, but Virtual Earth map…
Pawel Krakowiak
  • 9,940
  • 3
  • 37
  • 55
23
votes
15 answers

Localization in ASP.Net core MVC not working - unable to locate resource file

In trying to localize my application, I've followed the steps here: https://docs.asp.net/en/latest/fundamentals/localization.html Here is my code: Startup.cs public List RequestCultureProviders { get; private set; } // This…
genericuser
  • 1,430
  • 4
  • 22
  • 40
23
votes
5 answers

Proper way to change language at runtime

What is the proper way to change Form language at runtime? Setting all controls manually using recursion like this Save language choice to file > Restart Application > Load languge choice before InitializeComponent(); Using Form constructor to…
formatc
  • 4,261
  • 7
  • 43
  • 81
22
votes
4 answers

Multilanguage in WPF

Can you recommend a good way to implement a Multilanguage system for a WPF app? The method I'm using right now involves XML, classes and a xaml extension. It Works fine in most of cases, but when I have to deal with dynamic labels or dynamic text in…
Jonathan
  • 11,809
  • 5
  • 57
  • 91
22
votes
7 answers

Localising date format descriptors

What is the best way to localise a date format descriptor? As anyone from a culture which does not use the mm/dd/yyyy format knows, it is annoying to have to enter dates in this format. The .NET framework provides some very good localisation…
ICR
  • 13,896
  • 4
  • 50
  • 78
22
votes
3 answers

How to set culture for date binding in Asp.Net Core?

I have an Asp.Net Core application with MVC. I'm submitting a form with a date on the form. Form looks (roughly) like this: @model EditCustomerViewModel
trailmax
  • 34,305
  • 22
  • 140
  • 234
1 2
3
95 96