Yes, it took me a while to understand too.

Just to be sure that we are talking about the same thing: you want to put
all languages in a single msi file. Right?
Because what I say does not apply if you just want to create a separate MSI
for each language. 

Wrong approach:

1. You localized all your code. 
2. You build separate msi for each language. If you run it, it shows
perfectly localized dialogs. 
3. You take one language as a base. For example, you take English, and
create transforms as
   difference between English and all other languages. 

   Now you have mst files for all of the languages except English.

4. You add all transforms back to English msi.

Now, when you run English - it's OK.
When you run any other language (by applying transform) some dialogs will
display English strings.

Right approach:
To fix I did the following:

2a. You build separate msi for each language. If you run it it shows
perfectly localized dialogs. 

     Take English version, put langID and codepage values to 0, and buld it.
Call this neutral.

3a. You take neutral as a base, not English.
    and create transforms as  difference between neutral and all other
languages, including English. 

   Now you have mst files for all of the languages INCLUDING English.

4a. You add all transforms back to neutral msi.

Use your bootstrap program to launch MSI with appropriate transform.

Best,
Igor







Rennie Petersen wrote:
> 
> Thanks for your feedback.
> 
> I'm afraid I still don't understand...
> 
> I've provided localization for ALL of the texts in ALL of the WiX dialog
> boxes.
> 
> The error messages you're talking about, are they maybe Windows
> Installer errors that are not part of the WiX UI?
> 
> Anyway, if they are displayed in the "wrong" language when a Danish MST
> is applied to an English MSI, then surely they will be just as wrong
> (they'll be the same) when a Danish MST is applied to a "neutral" MSI.
> After applying the Danish MST the LCID and Codepage info is set for
> Danish, and the previous settings (English or neutral) are gone. So how
> can there be a difference?
> 
> By the way, I'm using WiX 2.0. Maybe there's something different about
> WiX 3.0?
> 
> Rennie
>  
> 
>> -----Original Message-----
>> From: [EMAIL PROTECTED] 
>> [mailto:[EMAIL PROTECTED] On Behalf Of 
>> Igor Maslov
>> Sent: 2. maj 2007 20:29
>> To: wix-users@lists.sourceforge.net
>> Subject: Re: [WiX-users] wix3: automatically pick setup language
>> 
>> 
>> No, English is not OK. 
>> 
>> Suppose you have English as base and, for example, French as 
>> transform.
>> Then, on some dialogs you will have part of the strings 
>> (buttons, window titles in English, instead of French). It 
>> happens mostrly on error dialogs.
>> 
>> What worked for me:
>> 
>> 1. Create neutral base - set language ID and codepage to 0 
>> (LANG = 0). I still use English strings to make it compile
>> 
>>      <Product  Language="!(loc.LANG)" .......
>> UpgradeCode="$(var.ProductUpgradeCode)">
>>     
>>                 <Package Id="*" ...........  
>> Languages="!(loc.LANG)" />
>> 
>> 2. Create separate packages for other languages (English 
>> included). Set appropriate Language ID, codepage, culture strings
>> 
>> 3. Take base from 1) and create transform for each language
>> 
>> Hope this helps
>> 
>> 
>> 
>> 
>> 
>> Rennie Petersen wrote:
>> > 
>> > What exactly do you mean by "neutral culture settings"? Is 
>> English OK 
>> > for the base MSI, that the non-English MST's are created against? 
>> > That's what I've been doing and it seems to work OK.
>> > 
>> > Rennie
>> > 
>> > 
>> >> -----Original Message-----
>> >> From: [EMAIL PROTECTED]
>> >> [mailto:[EMAIL PROTECTED] On Behalf Of Igor 
>> >> Maslov
>> >> Sent: 2. maj 2007 19:16
>> >> To: wix-users@lists.sourceforge.net
>> >> Subject: Re: [WiX-users] wix3: automatically pick setup language
>> >> 
>> >> 
>> >> 
>> >> When you use transforms (MST) approach make sure that your base 
>> >> package has a neutral culture settings, otherwise you will 
>> see some 
>> >> weird mixture of languages
>> >> 
>> >> 
>> >> 
>> >> pdschmid wrote:
>> >> > 
>> >> > I am trying to have my setup program pick the 
>> appropriate language 
>> >> > based on the user's computer: If the user has a German
>> >> Windows, I want
>> >> > my setup program to be German. In all other cases, I want
>> >> it to be in
>> >> > English.
>> >> > Can I do anything like this with wix3?
>> >> > If yes, how?
>> >> > 
>> >> > Thanks,
>> >> > 
>> >> > Patrick Schmid
>> >> > 
>> >> > 
>> >> > 
>> >> 
>> ---------------------------------------------------------------------
>> >> -
>> >> > --- This SF.net email is sponsored by DB2 Express Download
>> >> DB2 Express
>> >> > C - the FREE version of DB2 express and take control of
>> >> your XML. No
>> >> > limits. Just data. Click to get it now.
>> >> > http://sourceforge.net/powerbar/db2/
>> >> > _______________________________________________
>> >> > WiX-users mailing list
>> >> > WiX-users@lists.sourceforge.net
>> >> > https://lists.sourceforge.net/lists/listinfo/wix-users
>> >> > 
>> >> > 
>> >> 
>> >> --
>> >> View this message in context: 
>> >> http://www.nabble.com/wix3%3A-automatically-pick-setup-languag
>> > e-tf3678011.html#a10290586
>> >> Sent from the wix-users mailing list archive at Nabble.com.
>> >> 
>> >> 
>> >> --------------------------------------------------------------
>> >> -----------
>> >> This SF.net email is sponsored by DB2 Express Download DB2 
>> Express C 
>> >> - the FREE version of DB2 express and take control of your XML. No 
>> >> limits. Just data. Click to get it now.
>> >> http://sourceforge.net/powerbar/db2/
>> >> _______________________________________________
>> >> WiX-users mailing list
>> >> WiX-users@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/wix-users
>> >> 
>> > 
>> > 
>> ----------------------------------------------------------------------
>> > --- This SF.net email is sponsored by DB2 Express Download 
>> DB2 Express 
>> > C - the FREE version of DB2 express and take control of 
>> your XML. No 
>> > limits. Just data. Click to get it now.
>> > http://sourceforge.net/powerbar/db2/
>> > _______________________________________________
>> > WiX-users mailing list
>> > WiX-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/wix-users
>> > 
>> > 
>> 
>> --
>> View this message in context: 
>> http://www.nabble.com/wix3%3A-automatically-pick-setup-languag
>> e-tf3678011.html#a10291690
>> Sent from the wix-users mailing list archive at Nabble.com.
>> 
>> 
>> --------------------------------------------------------------
>> -----------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/wix3%3A-automatically-pick-setup-language-tf3678011.html#a10295640
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to