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

Reply via email to