site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Thread-index: Acox8sVDGi6sZ7roSISJkyP2X6vaNAAMT2kQ Thread-topic: How to localize distribution package's requirements message You might find it easier to create the .mpkg once, and then just update and amend your .dist script manually after that. You can create the .pkg(s) individually using Iceberg/PackageMaker, and then copy them into the Packages folder in your .mpkg. -----Original Message----- From: installer-dev-bounces+david.glover=prometheanworld.com@lists.apple.com [mailto:installer-dev-bounces+david.glover=prometheanworld.com@lists.app le.com] On Behalf Of Ben Staveley-Taylor Sent: 10 September 2009 09:44 To: Iceberg-Dev Cc: installer-dev@lists.apple.com Subject: Re: How to localize distribution package's requirements message Thanks again for your reply. I can see how the distribution.dist script should look now (and I've taken a look at the one Apple use in the iWork Trial installer). I'm just puzzled how you are supposed to author it. If I enter system.localizedString('MY_KEY_MESSAGE') in PackageMaker's Requirements Failure Message field, that gets quoted in the script as my.result.message = 'system.localizedString(\'MY_KEY_MESSAGE\')'; so again it appears literally in the alert instead of being processed as a script command. I can only surmise that to get this to work you have to manually author your distribution.dist file and then replace (or merge it with) the one that PackageMaker generates. It's all just too troublesome and error-prone, IMO. Fortunately I am only installing a single package, so I can fall back to the deprecated InstallationCheck script and its InstallationCheck.strings localization file. That seems to do what I need, so I'm happy. Coupled with other PackageMaker deficiencies -- specifically that it keeps silently re-enabling my "Allow Relocation" component settings and thus building an installer that puts files in the wrong places -- I'm going to use Iceberg as my authoring tool. I've already got a more reliable installer out of Iceberg in a day than I had in a week with PackageMaker. I'd definitely recommend it. -- Ben. On 9 Sep 2009, at 21:59, Iceberg-Dev wrote:
I just forgot to mention that you need to call a JavaScript method.
my.result.title = system.localizedString('MY_KEY_TITLE');
my.result.message = system.localizedString('MY_KEY_MESSAGE');
mea culpa
_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/david.glover%40prom etheanworld.com This email sent to david.glover@prometheanworld.com Promethean Limited is a company registered in England and Wales with company number 1308938 and VAT number GB 572 2599 18 ______________________________________________ Promethean Ltd and or associated and or subsidiary companies : The views expressed in this communication may not necessarily be the views held by Promethean Ltd and or associated and or subsidiary companies. This e-mail is for the exclusive use of the addressee(s). Unauthorised disclosure, copying or distribution is prohibited. This e-mail message has been swept for the presence of computer viruses. Promethean Ltd and or associated and or subsidiary companies accepts no liability for any loss resulting from this email transmission. Promethean, Promethean House, Lower Philips Road, Blackburn, Lancashire, BB1 5TH, UK. Please update your records accordingly. Thank you! _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com