On Mon, Jun 25, 2012 at 9:04 AM, Nick <eveningnick@gmail.com> wrote:
Hi I am using a Packages installer. I am wondering, if it's possible somehow to let the user select the language for the installer itself and the application that is being installed, from the installer? Like it is done in most installers in Windows.
The short answer is: no, because this is not Windows. The detailed answer is: no and yes. o The Installer applications runs in the preferred language of the current user. So if you want to support multiple languages from within the installer, you just need to include the appropriate localized resources: e.g. EULA, ReadMe, choice descriptions, etc. In addition to that, if you provide localized EULAs, the end-user will be able to select the most appropriate language from a popup button. o The same is true for applications that have been installed. The idea is to provide a single application that includes all the available localizations. Then the language the application will be run in is determined by the preferred languages of the user. Now, if you really want to limit the languages supported by an application to one (or a few), a solution is to create one package for the non-localized items of your installation and then one package for each language you which to support that will include the appropriate localized items. I would recommended to embed at least one localization in the first package (English preferably). Then 2 solutions: ( 1 ) you let the user decide which additional languages to install using the custom install mode of the installer (this is how the Mac OS X installer used to work). or ( 2 ) you code a plugin that lets the user decide and then do some tricky checks either in JavaScript in the distribution or from the pre- or post-installation scripts of each localization package. The JavaScript solution may not work as expected in a lot of cases. The pre-/post-installation script solutions is really ugly. ( 1 ) is of course a better solution. The best solution being to install all localizations. _______________________________________________ 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: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com