- Subject: Re: Looping and composite conditions
- From: "Klaus Schmid" <klaus.schmid@xxxxxx>
- Date: Thu, 19 Dec 2002 20:57:31 +0100
Morten Bo Johansen wrote
>...
> but they produced a hang and when aborting with ctrl-g I got this
>
> S-Lang Error: User Break: Error while executing find_untranslated
>...
Seems the while-loop gets infinite, if there is a translated msgstr.
I would try to insert 'else ()= down(1);' as follows:
% find the next untranslated msgstr
define find_untranslated ()
{
push_mark();
while (bol_fsearch ("msgstr"))
if (is_untranslated () and fsearch ("\""))
{
pop_mark(0);
go_right_1();
return;
}
else
()= down(1);
message ("Not found");
pop_mark(1);
}
Unfortunately this is not tested and I have no glance of po-files,
hope it helps anyway.
Klaus
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2002 date index]
[2002 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]