(sorry if this message gets sent twice, but I think it failed the first
time)


Yes, I have a Strings1033.wxl file for my localized strings. In there I have
a line:

  <String Id="LicenseFilename">EULA1033.rtf</String>

The on the light.exe command line I add the option 

   -loc Strings1033.wxl

I have other strings in there and they work OK in other places. In fact I
can put $(loc.LicenseFilename) as the text in the title bar of the license
agreement dialog and that works; that is, it puts the actual filename in the
title bar. It just doesn't seem to work in the 'SourceFile' attribute.

Jim


-----Original Message-----
From: Derek Cicerone [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 09, 2006 5:19 PM
To: 'jhewes'; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Localization of ScrollableText filename not
working.

I don't think there is a good way to do this in 2.0 right now.  The solution
you suggested below seems like it should work as long as a value for the
variable is supplied.  Did you supply a value for the variable when calling
light?

Derek 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of jhewes
Sent: Friday, June 09, 2006 5:12 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Localization of ScrollableText filename not
working.


Sorry, forgot to mention that. I'm using version 2.0.4103. I just downloaded
it a couple of days ago.


-----Original Message-----
From: Derek Cicerone [mailto:[EMAIL PROTECTED]
Sent: Friday, June 09, 2006 4:59 PM
To: 'jhewes'; wix-users@lists.sourceforge.net
Subject: RE: [WiX-users] Localization of ScrollableText filename not
working.

What version of WiX are you using?

Derek 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of jhewes
Sent: Friday, June 09, 2006 4:50 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Localization of ScrollableText filename not working.

Hi, I'm new to Wix and to the list. I've been working on my installer, which
needs to be multilingual. I'm using the Mondo UI. In the license agreement
dialog, there are a couple of lines that define the text window that holds
the text of the license agreement. It looks like this:

<Control Id="LicenseText" Type="ScrollableText" X="20" Y="60" Width="330"
Height="140" Sunken="yes" TabSkip="no">
    <Text SourceFile="License.rtf" />
</Control>

Since my license agreement text is in various languages, I have a different
file for each. I wanted to modify the existing code to localize the license
filename something like this:

<Text SourceFile="$(loc.LicenseFilename)" />

Unfortunately this doesn't seem to work: the substitution never gets made
and the linker complains that it can't find the file with filename
"$(loc.LicenseFilename)".

Is this my misunderstanding, a bug, or by design? If the above method cannot
work, then what's the next best way to handle this? (As a last resort, I'll
probably just do a file copy/rename of the license file before compiling.)

Thanks!

Jim



_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users




_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users




_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to