taichino
taichino

Reputation: 1165

How to get localized name of System Folder in Cocoa

I want to get localized name of System Folders according to user's language settings. For example, "Documents" directory is displayed "Documentos" in Spanish, "書類" in Japanese.

Is there any way to get these localized folder name programmatically? I'm using Cocoa framework on OSX 10.6 and 10.7.

Upvotes: 3

Views: 722

Answers (1)

Amy Worrall
Amy Worrall

Reputation: 16337

Look into this method on NSFileManager:

- (NSString *)displayNameAtPath:(NSString *)path

Upvotes: 5

Related Questions