Here is what's up with localized paths in Vista (and in Windows!)

by Michael S. Kaplan, published on 2007/02/21 15:36 -05:00, original URI: http://blogs.msdn.com/b/michkap/archive/2007/02/21/1736611.aspx


Some of you may recall the confusion surrounding localized paths in Vista that I mentioned not too long ago. The comments in that post made it clear that lots of folks had opinions about the design and that there was much confusion about how to get the localized information.

Well, confusion can now be over, as Ming Zhu, a dev on the Shell team, has stepped up and not only clarified the usage of SHGetLocalizedName but also provided some code to get the localized names as well.

I wanted to elevate his response

His comment and code are here, and I think this should help resolve some of the confusion here, if for no other reason than pointing to the right methods to be considering (namely IShellItem::GetDisplayName and IShellFolder::GetDisplayNameOf).

The methodology will work not only in Vista but in prior versions, too. Excellent! :-)

It might be nice to see the docs for SHGetLocalizedName fixed up to both make the limitations clearer (for most users this is NOT the function they want) and to point folks in the right direction for some of the more common needs people will likely have here. But for now I'll just bask in the glow of a great answer to a confusing question....

For the other questions raised in the comments from people wondering about the design, I think we can probably let go of those ones now (since it is too late to change the design anyway).

 

This post brought to you by  (U+1368, a.k.a. ETHIOPIC PARAGRAPH SEPARATOR)


Mike on 22 Feb 2007 3:42 AM:

Will this mean that roaming Vista profiles who log in under a different MUI environment will now no longer get special shell folders created in additional languages?

I can't remember the exact case as I haven't done this in at about 4-5 years, but one would get the localized version of (say) My Pictures created under your roaming My Docs folder in addition to the regular one. It was quite repro-able (and apparently well known to people on loc projects), and when bugged it went to one of the Windows Architects, who was not exactly happy about it.

It was annoying because it was very difficult to delete these new folders, and they would just keep coming back when you logged into other language-interface machines.

Michael S. Kaplan on 22 Feb 2007 2:03 PM:

The point is that they will always be in English, but the display will change dynamically based on UI language. So that bug goes away?


Please consider a donation to keep this archive running, maintained and free of advertising.
Donate €20 or more to receive an offline copy of the whole archive including all images.

go to newer or older post, or back to index or month or day