by Michael S. Kaplan, published on 2006/01/31 11:01 -05:00, original URI: http://blogs.msdn.com/b/michkap/archive/2006/01/31/520694.aspx
It is probable bordering on certainty that the Zombies were not singing about cultures in the .NET Framework in their song Time of the Season. Even in some kind of prophetic sense.
And while I'm sure there are parents out there who may not be keen on the resource model that the .NET Framework uses (i.e. if resources do not exist for a particular language, check what its parents have!), the resource fallback model has some important customization abilities over simple string parsing of RFC-1766 or RFE-3066 names.
But this post is not about any of that. This post is about Windows.
I mean, it is easy to claim in the .NET Framework that CultureInfo names are where it is at, and that LCIDs are just there for backwards compatibility.
But meanwhile back in Windows, the NLS API and all of its functions pivot on LCID.
Well, they used to, I mean.
Because Windows Vista supports new functions that take locale names rather than LCIDs!
For now, I'll just list a bunch of the ones that are on the MSDN site online:
And of course there is the easy moving between names and LCIDs with LCIDToLocaleName and LocaleNameToLCID.
Future posts will talk about various details of many of these new functions and the special things that some of them can do that go above and beyond their LCID-based versions.
And just so you don't think the post title was entirely gratuitous:
So now any developer running Vista can ask of a locale those immortal questions first asked by The Zombies -- What's your name? Who's your daddy?
And parents throughout the world will shudder at the precedent since those often neutral names that are the parents can be used for resource fallback, along with the new MUI functions for UI language that I will talk about another day..... :-)
This post brought to you by "𝅘𝅥" (U+1d15f, a.k.a. MUSICAL SYMBOL QUARTER NOTE)
# ChipH on 31 Jan 2006 2:23 PM:
# Michael Dunn_ on 31 Jan 2006 6:59 PM:
# Michael S. Kaplan on 31 Jan 2006 8:09 PM:
# mdolenga on 31 Jan 2006 10:48 PM:
# Nathan on 1 Feb 2006 1:16 AM:
# PatriotB on 6 Feb 2006 10:13 PM:
# Michael S. Kaplan on 6 Feb 2006 10:24 PM:
# PatriotB on 7 Feb 2006 4:30 PM:
# Michael S. Kaplan on 7 Feb 2006 10:08 PM:
# laura on 3 Mar 2006 5:45 PM:
2007/03/19 A way better model for features, part 2
2006/07/16 Nobody likes change
go to newer or older post, or back to index or month or day