Re: Localized Folders
Re: Localized Folders
- Subject: Re: Localized Folders
- From: Stefan Schüßler <email@hidden>
- Date: Wed, 13 Aug 2003 17:12:18 +0200
Thanks for your advice, but NSFileManager's displayNameAtPath does not
return a localized string. I just get the name I pass. E.g.
[[NSFileManager defaultManager] displayNameAtPath:@"/Users"] returns
"Users" (on a German system). Any other ideas?
'custom localized folders' - I want to create a folder that is
localized when it is displayed in the Finder, just like the
system-folders (Applications, Users, etc). The method described in
http://developer.apple.com/documentation/MacOSX/Conceptual/
SystemOverview/FileSystem/chapter_9_section_2.html (Localizing
Directory Names) does not work. In fact, the extension ".localized" is
shown although it is set hidden.
Stefan
Am Mittwoch, 13.08.03 um 15:50 Uhr schrieb Wade Tregaskis:
Where do I find the localized names of folders like
Applications, Users, Desktop, Music and so on? And
by the way, is there a way to create custom localized
folders?
I think you can use NSFileManager's displayNameAtPath method to get
the localized name of any path, for the user's current localization
settings. Unfortunately the documentation doesn't explicitly state
this - Apple's documentation is curiously missing any mention of this.
As for creating 'custom localized folders', I'm not sure what you
mean... do you mean you want to supply localization folders in your
bundle(s) for languages not "standard", or that you want to provide
new localizations for existing folders (e.g. Applications, Users,
etc)? If the former, then I believe you need only use the appropriate
country code in the folder name. Apple do have some documentation on
this somewhere, which I don't have handy. If you mean the latter,
then I don't think there's any way, short of adding an extra language
to the whole system (which is probably entirely possible, but may
entail translating much more than just those few folder names).
Wade Tregaskis
-- Sed quis custodiet ipsos custodes?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.