Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

In non-english versions Windows Vista and Windows 7 the usual special folders (such as the "My documents" folder) have dual naming: For instance "My documents" can be accessed (in german systems) via

C:UsersUsernameDocuments

But is displayed (in explorer and file choosing dialogs) as

C:BenutzerUsernameEigene Dokumente

In my (C#) application, I would like to display the second form but need to use the first one internally. So I'm looking for some function to convert e.g. the result of Environment.GetFolderPath() (which is always the english name) to the localized form.

Since I do not know, how this feature is called (and my english is somehow limited), I don't even know how to google it.

Any hints are very appreciated!

Thanks Martin

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
178 views
Welcome To Ask or Share your Answers For Others

1 Answer

Ok, after some more research, I found out myself: The concepts I was looking for were

I will open up a separate question about a function for getting this "LocalizedResourceName" automatically (I do not want to look it up manually for each directory in my path...)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...