Re: language packagemaker is running in?
Re: language packagemaker is running in?
- Subject: Re: language packagemaker is running in?
- From: Stéphane Sudre <email@hidden>
- Date: Mon, 31 Mar 2008 22:47:26 +0200
On Mar 31, 2008, at 7:41 PM, Lisa Weimer wrote:
Thanks so much for getting back to me Stéphane, Bill and Bill.
I'm going to try the way of the locale command that Bill Janssen
suggested. I think that is what I am looking for, I will soon find
out ;)
I'm trying to maintain a consistent language experience across the
installer.
The problem is the locale that the user is installing in may not be
the same as the one root is in. So we might be running the
installer in French or German. The install requires root-- so the
user will click "install" and then they are prompted for their
password. The application installs and all the pre/postflight
scripts are run (as root).
During postflight we launch a small helper application to do some
more setup, but the helper application always launches in English.
I am thinking it's because the locale of root is English.
If I was able to pass the locale of the user running the install
into the helper application when I launch it in postflight, then
the helper application will correctly retrieve the correct
localized string and be in the same language the user is in.
(The app itself uses localization functions mentioned by Bill
Coderre, and knows how to display the correct strings)
If we run it through ARD, then of course there are no problems--
everything is done silently and correctly with no confusing
language jumps.
I'll let you know how it goes. If you have any more ideas now that
I have told you a bit more-- please let me know :)
Why not just use:
su $USER -c open
then?
_______________________________________________
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