On Tue 8 June 2004, 16:31:41 +1000, Cyrille wrote:
> The problem seems to be solved.

Excellent

RA>>    * include %- at the end of the final %If statement in the
RA>>      master_new_message QT
> 
> This part does not seem to have an influence on the output.
> 
RA>> And if you omit the %- after
RA>>    %If:"%_SetLang"="PL":"%QInclude(new_PL)":
RA>> you will find you have one extra blank line in your Polish messages.
> 
> With or without %- same result. The Polish messages behave like all
> the others...

Even after adding the "" (<action if false>) at the end of the %If
statements? I am a little surprised, but only a little.

RA>> TB! will continue to look for what to do if the condition is false. I
RA>> don't know enough about how the %If macro handles improperly constructed
RA>> statements to work out how it interprets the set of statements you have,
RA>> but I'm sure it causes problems!
> 
> What does this mean for the SetLanguage QT? As far as I see there is
> also an empty <action if false> statement in the %If macros. Or is
> there something I misinterpret?
> After your (Robin's and Roelof's) debugging it looks like this now:
> 
> --------- [ SetLANGUAGE QT ] ---------

<...snip...>

> %If:'%_SLDomain'='fr':'%_SetLang="FR"'%-
> %If:'%_SLDomain'='de':'%_SetLang="DE"'%-
> %If:'%_SLDomain'='sk':'%_SetLang="SK"'%-
> %If:'%_SLDomain'='cz':'%_SetLang="SK"'%-
> %If:'%_SLDomain'='ru':'%_SetLang="RU"'%-
> %If:'%_SLDomain'='hu':'%_SetLang="HU"'%-
> %If:'%_SLDomain'='pl':'%_SetLang="PL"'#%-
> --------- [end of SetLANGUAGE QT ] ---------
> 
> Where is the <action if false> statement?

Good question. You say it works at the moment, and that probably reflects
the robustness of the macro's ability to parse the lines above. However
it would be better to make them read

%If:'%_SLDomain'='fr':'%_SetLang="FR"':''%-
%If:'%_SLDomain'='de':'%_SetLang="DE"':''%-
%If:'%_SLDomain'='sk':'%_SetLang="SK"':''%-
%If:'%_SLDomain'='cz':'%_SetLang="SK"':''%-
%If:'%_SLDomain'='ru':'%_SetLang="RU"':''%-
%If:'%_SLDomain'='hu':'%_SetLang="HU"':''%-
%If:'%_SLDomain'='pl':'%_SetLang="PL"':''#%-

--
Robin Anson
Using The Bat! v2.11.02 on Windows XP 5.1 Build 2600 Service Pack 1






________________________________________________
Current version is 2.11.02 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to