Thanks Bob.

The trick is how to get that localisation value into my project and have it 
vary for two builds. I finally worked out a way.

The basic idea is to use the culture to providing wrapping of the language ID  
for localisation and force generation of two cultures.

So I have two wxl files in the project.

<WixLocalization Culture="zh-cn" Codepage="936" 
xmlns="http://schemas.microsoft.com/wix/2006/localization";>
        <String Id="LanguageId" Overridable="yes">2052</String>
...

<WixLocalization Culture="en-us" 
xmlns="http://schemas.microsoft.com/wix/2006/localization";>
        <String Id="LanguageId" Overridable="yes">1033</String>
...

In the .wixproj Build tab, in Visual Studio, the value "Cultures to build:" = 
en-us;zh-cn,en-us

That means, build two cultures - one en-us and the second zh-cn falling back to 
en-us for any missing strings.

Note that I made the string LanguageId Overridable. That attribute is necessary 
only because of my use of the fallback. It could have been omitted if I just 
specified a  "Cultures to build:" = en-us;zh-cn

There is a misleading comment underneath the entry box which says "Example: 
en-US;ja-JP. Leave blank to build all cultures".
I found that when I left this blank, only the en-us culture was built, even 
though I had two different cultures included in my project

One other gotcha which was relatively obscure - if you see examples that pass 
in the -cultures flag to a command-line version of light, they may use either 
commas or semicolons to separate languages but in that context it ONLY refers 
to the fallback order of languages. The use of semicolons to separate multiple 
builds is a feature of the MSBuild integration.

-----Original Message-----
From: Bob Arnson [mailto:b...@joyofsetup.com]
Sent: Thursday, 4 October 2012 10:28 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Building multiple projects with different Language

On 03-Oct-12 21:24, DENT Andy wrote:
> I can get the projects to build for multiple cultures but how do I vary the 
> Language attribute per-culture?
Use a !(loc.stringid) loc string for Language's value.

--
sig://boB
http://joyofsetup.com/


------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
This email and any attachments are intended solely for the use of the 
individual or entity to whom it is addressed and may be confidential and/or 
privileged.

If you are not one of the named recipients or have received this email in error,

(i) you should not read, disclose, or copy it,

(ii) please notify sender of your receipt by reply email and delete this email 
and all attachments,

(iii) Dassault Systemes does not accept or assume any liability or 
responsibility for any use of or reliance on this email.

For other languages, go to http://www.3ds.com/terms/email-disclaimer

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to