I've built several cultures using one wixproj. If you are using votive, the
setting is in the wixproj properties window in the "Build" tab. Otherwise
simply make a semi-colon delimited list of cultures (e.g. "zh-TW; en-US") as
a property called "Cultures".

produ...@language can be set using a !(loc.LCID) var (assuming you put a
string named LCID in your wxl files).

You will need to all ALL of your localized wxl files to your wixproj. Each
will be selected based on the wixlocalizati...@culture value.

Also there is a fallback mechanism. For instance, I can supply three wxl
files (one with @Culture="en-CA", one with @Culture="en-US", and one with
@Culture="en") and I can put the stuff that is common between en-CA and
en-US into the "en" wxl and the stuff that is different between them will go
into the more specific ones. Or, I put everything into the "en" one and
selectively override the strings using the specific ones. To do that, I have
to make my Cultures property look like this:
<Cultures>en-US,en;en-CA,en</Cultures>.

For the documentation on all this look for the "Specifying Cultures to
Build" topic in the wix.chm file.

If you do this, you may want to supply the codepage for the database using
the wixlocalizati...@codepage attribute instead of supplying it on the
Product element. You can't set the summary codepage this way, but summary
codepages can't be utf-8 anyway, so I usually require that summary info (the
stuff that is set using the <Package> element) be 7-bit ASCII (a codepage of
"0") forcing that to be entirely in English for all packages.

-----Original Message-----
From: Lian Jiang [mailto:lji...@microsoft.com] 
Sent: Sunday, October 11, 2009 7:25 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] LCID and language/culture fallback

Hi,

My installer has a wixproj for each culture/locale. For example, I have
LCID=1028 for Chinese-Taiwan, LCID=1033 for en-US. However, this requires
one wixproj for each culture/locale instead of each language. For example,
Chinese-Taiwan culture and Chinese-Hongkong culture cannot share one Chinese
traditional language wixproj. English language has much more cultures than
Chinese language - it is a pain to create a wixproj for each locale.

In my opinion:

1. there is no way to make a wixproj for each language since WIN32 API is
locale specific.
2. there is no culture/locale fallback mechanism so that Chinese-Hongkong
can fallback to Chinese-Taiway for example.
3. Even there is culture/locale fallback mechanism, it is not safe to
fallback due to some political/policy/legal reasons.

So I believe it is necessary to create a wixproj for each locale/culture.

Please correct me if I am thinking wrong.

Thanks
Lian
----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to