Thanks that helped. I did find it wasn't as clear cut as I expected. I
have several .wxl files one for English and the others for all the other
languages I support. Because not all strings are translated yet both in
my code and the WiX extensions it is necessary to link with this command
line:

light -cultures:ja-jp;en-us; -ext WixUIExtension -ext WixUtilExtension
-loc en-us.wxl -loc ja-jp.wxl -out Setup.msi obj\*.wixobj

This takes the translated strings where it can but defaults to English
if they are not found.


In en-us.wxl I set codepage 1252, in ja-jp.wxl I set 932 but when I link
this I get the error: 
        light.exe : error LGHT0101 : The codepage '1252' has been
specified in multiple
        localization files.  Please resolve the conflict.

To work around this I only set the codepage in ja-jp.wxl (and all the
other non-english wxl files).


Neil

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brian
Rogers
Sent: 20 August 2008 17:42
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Localisation of Codepage

Hey Neil,

If you use .wxl files to do your localization you could specify the
Codepage
as an attribute in that file. This would help normalize this for you a
bit.

Take a look at the http://schemas.microsoft.com/wix/2006/localization
and
WXL files.

Hope this helps,
-- 
Brian Rogers
"Intelligence removes complexity." - Me
http://icumove.spaces.live.com
On Wed, Aug 20, 2008 at 5:23 AM, Neil Sleightholm
<[EMAIL PROTECTED]>wrote:

> In the WiX help it talks about using a localisation variable for the
> Package/@SummaryCodepage and this seems like a good idea but you also
need
> to set Product/@Codepage to get the MSI built with the correct
codepage. The
> problem is that when I set Product/@Codepage to a localisation
variable e.g.
> !(loc.Codepage) I get an error from candle "CNDL0276 : The code page
> '!(loc.Codepage)' is not a valid Windows code page." (I am using WiX
> v3.0.4415.0)
>
> Is this a bug or am I doing something wrong?
>
> Neil
>
> Neil Sleightholm
> X2 Systems Limited
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to