Internationalization

There are 2 entries for the tag Internationalization

The Turkish İ Problem and Why You Should Care

Take a look at the following code. const string input = "interesting"; bool comparison = input.ToUpper() == "INTERESTING"; Console.WriteLine("These things are equal: " + comparison); Console.ReadLine(); Let’s imagine that input is actually user input or some value we get from an API. That’s going to print out These things are equal: True right? Right?! Well not if you live in Turkey. Or more accurately, not if the current culture of your operating system is tr-TR (which is likely if you live in Turkey). To prove...

Easily Test Your Code For Multiple Cultures

Most of the time when I’m testing my code, I only test it using the en-US culture since, ...well..., I speak English and I live in the U.S. Isn’t the U.S. the only country that matters anyway? ;) Fortunately, there are Subtext team members living in other countries ready to smack such nonsensical thoughts from my head and keep me honest about Localization and Internationalization issues. Simone, who is an Italian living in New Zealand, pointed out that a particular unit test that works on my machine always fails on his machine. Here’s the test. [RowTest] [Row("4/12/2006", "04/12/2006 00:00:00 AM")] [Row("20070123T120102", "01/23/2007 12:01:02...