Re: Package install problems
Re: Package install problems
- Subject: Re: Package install problems
- From: Mike Fischer <email@hidden>
- Date: Thu, 3 Nov 2005 14:23:55 +0100
Am 03.11.2005 um 04:25 schrieb email@hidden:
What am I doing wrong here ? I can't hard-code a default location of
/Applications in the pkg files, as this default location would be
different on the German install.
Yes you can. The names on disk for standard locations are the same
regardless of the current language used by the user account. The
Finder and other applications use a number of mechanisms to display
localized names instead of the real file system names. See
LaunchServices documentation and LSCopyDisplayNameForRef()/
LSCopyDisplayNameForURL() for the standard way to get the correctly
localized name of a file or folder in code.
To test this create a new user and configure it to use some other
language (i.e. German). You will find that:
a) The /Applications directory is now displayed localized to
"Programme";
b) if you do a get info in the Finder you'll see that it is still
named /Applications;
c) if you use fast user switching to additionally log in to your
English account you'll see that the name on disk has not changed and
you can see the same folder having two different display names at the
same time, depending on which user is looking at it.
This is one relativly cool feature of Mac OS X. (It does not scale
well when using Aliasses though, but that should not concern you.)
HTH
Mike
--
Mike Fischer Softwareentwicklung, EDV-Beratung
Schulung, Vertrieb
Web: <http://homepage.mac.com/mike_fischer/index.html>
Note: I read this list in digest mode!
Send me a private copy for faster responses.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden