The issue is that those columns in the TextStyle table are not marked as 
localizable so the !(loc variable replacement never happens.

Please file a sourceforge bug on this.

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kelly Leahy
Sent: Friday, November 02, 2007 8:51 AM
To: Paul Houldridge
Cc: [EMAIL PROTECTED]; Eric Baudouin; wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Font definition and WXL


Actually, paul, I suspect that Facename isn't working either, you just don't 
get an XSD validation error because there's no rules for the format of the face 
name.

I bet if you hardcoded the size and bold attributes and compiled your MSI you'd 
have the !(...) stuff in your facename in the output MSI.  You just wouldn't 
get a validation error, because there's no way for MSI to know that the 
facename you supplied isn't a valid font name -- after all, who wouldn't want 
to call their font "!(loc.BannerTextStyle_Facename)"? <wink/>



Paul Houldridge <[EMAIL PROTECTED]>

11/02/2007 08:17 AM

To

Eric Baudouin <[EMAIL PROTECTED]>, Kelly Leahy <[EMAIL PROTECTED]>

cc

"wix-users@lists.sourceforge.net" <wix-users@lists.sourceforge.net>, "[EMAIL 
PROTECTED]" <[EMAIL PROTECTED]>

Subject

RE: [WiX-users] Font definition and WXL







I actually rewrote the code for the last test.  If you look at the original 
example the names match.

However, after trying a few more things, it looks like the FaceName attribute 
takes the localized string just fine.  It’s the Size and Bold attributes that 
are not preprocessing the localized string.  Look at the original errors below.

Paul

From: Eric Baudouin
Sent: Thursday, November 01, 2007 5:20 PM
To: Kelly Leahy
Cc: Paul Houldridge; wix-users@lists.sourceforge.net; [EMAIL PROTECTED]
Subject: RE: [WiX-users] Font definition and WXL

Not a bad suggestion☺

Paul would you mind to have  a look at this, in case the linker is case 
sensitive.

Thank you.

E.

From: Kelly Leahy [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 01, 2007 4:59 PM
To: Eric Baudouin
Cc: Paul Houldridge; wix-users@lists.sourceforge.net; [EMAIL PROTECTED]
Subject: Re: [WiX-users] Font definition and WXL


Ok... It also appears that your error message says 'Facename' (lowercase 'N'), 
but your declaration shows an uppercase.  Not sure if it matters, just thought 
I'd mention it since I noticed it.

Kelly
Eric Baudouin <[EMAIL PROTECTED]>

Sent by: [EMAIL PROTECTED]

11/01/2007 04:44 PM


To

Kelly Leahy <[EMAIL PROTECTED]>

cc

"[EMAIL PROTECTED]" <[EMAIL PROTECTED]>, Paul Houldridge <[EMAIL PROTECTED]>, 
"wix-users@lists.sourceforge.net" <wix-users@lists.sourceforge.net>

Subject

Re: [WiX-users] Font definition and WXL











Here is the answer from Paul, so it look like syntaxically speaking we were 
doing the right thing.
So I think we need to focus more on the methodology. Thank you anyway for your 
reply.

No luck.  Using the ! instead of the $ is right.  $ is deprecated.

.\SetupUI.wix(26) : warning LGHT1073 : The localization variable 
$(loc.BannerTextStyle_Facename) uses a deprecated prefix '$'.  Please use the 
'!' prefix instead.  Since the prefix '$' is also used by the preprocessor, it 
has been deprecated to avoid namespace collisions.
warnings in directory c:\drs_sync_1\sql\sync\src\setup\core
c:\drs_sync_1\sql\sync\src\setup\core\setupui.wix(26) : warning LGHT1073 : The 
localization variable $(loc.BannerTextStyle_Facename) uses a deprecated prefix 
'$'.  Please use the '!' prefix instead.  Since the prefix '$' is also used by 
the preprocessor, it has been deprecated to avoid namespace collisions.
.\SetupUI.wix(26) : error LGHT0102 : The localization variable 
!(loc.BannerTextStyle_Facename) is unknown.  Please ensure the variable is 
defined.
errors in directory c:\drs_sync_1\sql\sync\src\setup\core
c:\drs_sync_1\sql\sync\src\setup\core\setupui.wix(26) : error LGHT0102 : The 
localization variable !(loc.BannerTextStyle_Facename) is unknown.  Please 
ensure the variable is defined.
NMAKE : fatal error U1077: 'C:\DRS_SYNC_1\Tools\wix3\light.exe' : return code 
'0x66'
NMAKE : fatal error U1077: 'C:\DRS_SYNC_1\Tools\wix3\light.exe' : return code 
'0x66'
Stop.


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



**************************************************************************************
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 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

Reply via email to