Sunday, April 6, 2008

i18n for Chinese in .NET Framework 3.5

Well, I upgraded my development and production servers to .NET Framework 3.5.

I'm really not taking advantage of the .NET Framework 3.5 additions (lambda functions, LINQ) yet. Also, I haven't made a decision yet on LINQ vs. NHibernate. However, I've already made a significant time investment in NHibernate, so it would really take a lot of convincing to move to LINQ, unless there is a clear path for doing so from NHibernate.

I had noticed that on all the MSDN pages there was a little section that appeared as follows:

Figured it would be best to get on the latest version.

For the most part, the upgrade is painless. It was just a matter of downloading / running the .NET Framework 3.5 installer dotNetFx35setup from Microsoft. No code changes were required. However, one change I feel I should make, even though everything is still running is refactoring my project so that it uses the latest (and correct) Neutral Cultures for Simplified and Traditional Chinese. Here are the entries for both from the latest MSDN System.Globalization.CultureInfo documentation.

Culture/Language Name

zh-Hans Chinese (Simplified)
zh-Hant Chinese (Traditional)

I've had a bit of discussion with Shawn Steele on his blog about the latest .NET Framework changing Simplfied from zh-CHS to zh-Hans and Traditional from zh-CHT to zh-Hant. Although the old zh-CHS and zh-CHT are still supported, I don't want to use a deprecated method for getting to my RESX files.

No comments:

Post a Comment