Re: How to localize distribution package's requirements message
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:in-reply-to:references :mime-version:content-type:message-id:cc:content-transfer-encoding :from:subject:date:to:x-mailer; bh=ZJMFMcwHyVU+neHR0YkukWOpXPlgirtWJlqzFZr7s6I=; b=sZZu9laopnt749xrB4FfTgQhwccDgJ00nzznNVOWf3QJr50BSvJvV5EfoODK40z2LO obf34byQeMctdycB3/VQNf0xImESEM/X96Z0GCfPRp0HhuWaVGzrK+kzwAKDVTJQ2fM4 DadI1dCfhTYUT5aKvP2o8ud9+Xk3tgQepXT+M= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=in-reply-to:references:mime-version:content-type:message-id:cc :content-transfer-encoding:from:subject:date:to:x-mailer; b=phi3d+MwRwGLHO++Yh2icOxBJmSxOWr0OfGv3P6rg3UZ8xV4GFkJIDl4x9bAi/ULBj 2qCTUEW3UiS8n6gzr+0DfeuUUJPEmMn6V9JKRO4859c2ANw8gnP7bKN8sEQXI5TOlmSl Fa+vAygNPqtsgwt3o/3s45zEcT492X6NLH1dw= On Sep 8, 2009, at 6:15 PM, Ben Staveley-Taylor wrote: <script>function pm_install_check() { if(!(system.run('<My script path here>') == true)) { my.result.title = '<my English message title here>'; my.result.message = '<my English message text here>'; my.result.type = 'Fatal'; return false; } return true; } </script> my.result.title = 'MY_KEY_TITLE'; my.result.message = 'MY_KEY_MESSAGE'; English.lproj > Localizable.strings "MY_KEY_TITLE" = "This is my title in English"; "MY_KEY_MESSAGE" = "This is my message in English"; French.lproj > Localizable.strings "MY_KEY_TITLE" = "Ceci est mon titre en Français"; "MY_KEY_MESSAGE" = "Ceci est mon message en Français"; _______________________________________________ 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... Does anyone know how to provide localizations for the messages displayed by the Requirements elements of a distribution package? (This is using PackageMaker.) I am adding a requirement, if Result of Script then <Failure Message>, and I can't see any way to enter text other than in English. I have created localized Resource folders in the package using the Edit Interface button, but I don't think that's relevant. After building the .mpkg, it contains this in the distribution.dist file: so there doesn't appear to be any language parameter being used. For the record, you can't do this from PackageMaker. You will need to edit the built package. One solution is to use keys for the title and message and then provide standard Localizable.strings file for each localization. This email sent to site_archiver@lists.apple.com
participants (1)
-
Iceberg-Dev