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
396
votes
5 answers

What is the difference between CurrentCulture and CurrentUICulture properties of CultureInfo in .NET?

In .NET there is the CultureInfo class in the System.Globalization namespace. It has two similar properties both returning values of the CultureInfo type: CurrentCulture and CurrentUICulture. What is the difference between them? Which one should I…
splattne
  • 102,760
  • 52
  • 202
  • 249
310
votes
21 answers

How can I detect the encoding/codepage of a text file?

In our application, we receive text files (.txt, .csv, etc.) from diverse sources. When reading, these files sometimes contain garbage, because the files where created in a different/unknown codepage. Is there a way to (automatically) detect the…
GvS
  • 52,015
  • 16
  • 101
  • 139
195
votes
7 answers

How do I set the default locale in the JVM?

I want to set the default Locale for my JVM to fr_CA. What are the possible options to do this? I know of only one option Locale.setDefault()
MozenRath
  • 9,652
  • 13
  • 61
  • 104
185
votes
5 answers

What is the Invariant Culture?

Could anybody give an example to demonstrate the usage of the Invariant Culture? I don't understand what the documentation describes.
Ricky
  • 34,377
  • 39
  • 91
  • 131
130
votes
3 answers

Best practice for localization and globalization of strings and labels

I'm a member of a team with more than 20 developers. Each developer works on a separate module (something near 10 modules). In each module we might have at least 50 CRUD forms, which means that we currently have near 500 add buttons, save buttons,…
user1968030
123
votes
9 answers

How to localize ASP.NET MVC application?

What would be best practice to localize your ASP.NET MVC application? I would like to cover two situations: one application deployment in IIS which would handle multiple languages one language/application deployment. In first situation should you…
pirho
  • 2,972
  • 4
  • 23
  • 17
121
votes
8 answers

I need to store postal codes in a database. How big should the column be?

I expect the column to be a VARCHAR2, in my Oracle Database. US Zips are 9. Canadian is 7. I am thinking 32 characters would be reasonable upper limit What am I missing? [EDIT] TIL: 12 is a reasonable answer to the question Thanks to everyone who…
EvilTeach
  • 28,120
  • 21
  • 85
  • 141
76
votes
2 answers

Difference between CurrentCulture, InvariantCulture, CurrentUICulture and InstalledUICulture

What is the difference between CurrentCulture, InvariantCulture, CurrentUICulture and InstalledUICulture from System.Globalization.CultureInfo?
Diego Pacheco
  • 985
  • 1
  • 8
  • 14
74
votes
8 answers

What is the actual differences between I18n/L10n/G11n and specifically what does each mean for development?

Possible Duplicate: Localization and internationalization, what’s the difference? I18n/L10n/G11n all equal localization to me, but people keep making distinctions among these, especially in corporate and marketing, but I'm failing to see how…
Robert Gould
  • 68,773
  • 61
  • 187
  • 272
73
votes
6 answers

Get current language in CultureInfo

How to identify the operating system's language using CultureInfo? E.g. if the language in Windows is set to French, I need to identify French and load the fr resource files data.
Sharpeye500
  • 8,775
  • 25
  • 95
  • 143
72
votes
4 answers

Floating Point Number parsing: Is there a Catch All algorithm?

One of the fun parts of multi-cultural programming is number formats. Americans use 10,000.50 Germans use 10.000,50 French use 10 000,50 My first approach would be to take the string, parse it backwards until I encounter a separator and use this…
Michael Stum
  • 177,530
  • 117
  • 400
  • 535
68
votes
8 answers

Currency format for display

Is there a way to format the correct currency representation for a country? Example UK -£127.54 Netherlands € 127,54- USA $127.54 etc.. Some things to consider, Currency Symbol Currency symbol placement -- It can be either place before or after…
001
  • 62,807
  • 94
  • 230
  • 350
66
votes
9 answers

MVC 3 jQuery Validation/globalizing of number/decimal field

When using globalization culture="da-DK" in the Web.config file, the jQuery validation does not work. In Denmark, we use the notation 19,95 instead of the US way 19.95 when we write a price for at product, and that have given me a problem, that I…
65
votes
3 answers

how to set default culture info for entire c# application

I want to set default culture info for that class or for entire application. For example in Turkey 3,2 = in english 3.2 so application uses my local but i want it to use as default System.Globalization.CultureInfo.InvariantCulture How can i set it…
Furkan Gözükara
  • 22,964
  • 77
  • 205
  • 342
64
votes
8 answers

String format currency

I have this line in my razor view. @String.Format("{0:C}", @price) I want it to display a dollar sign in front of the price but instead it display a pound sign. How do I achieve this?
Sachin Kainth
  • 45,256
  • 81
  • 201
  • 304
1
2 3
95 96