Let me check with Paul, this might simply explains why the variables were not
replaced.
Thank you.
E.
From: Kelly Leahy [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 01, 2007 4:31 PM
To: Eric Baudouin
Cc: Paul Houldridge; wix-users@lists.sourceforge.net; [EMAIL PROTECTED]
Subject: Re: [WiX-users] Font definition and WXL
Don't you want $(loc.BannerTextStyle_Size) not !(loc.BannerTextStyle_Size)?
Kelly
Eric Baudouin <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
11/01/2007 04:17 PM
To
"wix-users@lists.sourceforge.net" <wix-users@lists.sourceforge.net>
cc
Paul Houldridge <[EMAIL PROTECTED]>
Subject
[WiX-users] Font definition and WXL
Hello,
We have moved our resource to a wxl file to facilitate the localization of our
component.
In the localization world it is a good practice to make sure that the font size
and the font facename can be localized.
I was hoping that I could move the font style attribute in the WXL as well so
that the localization team could change it accordingly, since the font size and
the font facename are different for the Japanese, or any far-east languages.
Unfortunately as you can see down below replacing the font attribute with the
WXL loc ID causes the compiler to break, because the preprocessor might run
some validation because linked the loc data in the code.
Would you have a different approach we could use so that at least we have a
work-around.
Thank you very much.
E.
<wixloc:String Id="BannerTextStyle_FaceName">MS Sans Serif</wixloc:String>
<wixloc:String Id="BannerTextStyle_Size">12</wixloc:String>
<wixloc:String Id="BannerTextStyle_Bold">yes</wixloc:String>
Then within my <UI> tag I have:
<TextStyle Id="BannerTextStyle"
FaceName="!(loc.BannerTextStyle_FaceName)" Size="!(loc.BannerTextStyle_Size)"
Red="0" Green="0" Blue="0" Bold="!(loc.BannerTextStyle_Bold)"/>
The error I get indicates that the !(loc.name) syntax does not work within the
attributes for TextStyle. The loc variables are not getting processed into the
defined values. This is the error I get:
errors in directory c:\harmonica\sql\sync\src\setup\core
c:\harmonica\sql\sync\src\setup\core\setupui.wix(26) : error CNDL0008 : The
TextStyle/@Size attribute's value, '!(loc.BannerTextStyle_Size)', is not a
legal integer value. Legal integer values are from -2,147,483,648 to
2,147,483,647.
c:\harmonica\sql\sync\src\setup\core\setupui.wix(26) : error CNDL0015 : The
TextStyle/@Bold attribute's value, '!(loc.BannerTextStyle_Bold)', is not a
legal yes/no value. The only legal value is 'no' or 'yes'.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>
http://get.splunk.com/_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
**************************************************************************************
This communication is intended solely for the addressee and is
confidential. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. Unless indicated
to the contrary: it does not constitute professional advice or
opinions upon which reliance may be made by the addressee or any
other party, and it should be considered to be a work in progress.
Unless stated otherwise, this communication does not form a prescribed
statement of actuarial opinion under American Academy of Actuaries
guidelines.
**************************************************************************************
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users