infinite loop in LanguageEditor

Takashi Yamamiya tak at
Sun May 14 02:57:58 UTC 2006

Pascal, Yoshiki,

>   Pascal,
>> 1. Since the status bar message of LanguageEditor is still untranslated (at
>> least in french), the (un)translated phrases lists are reinitialized each
>> time the status bar is updated (ie. every 2 seconds). This is caused by
>> NaturalLanguageTranslator>>translate: which re-registers the phrase each
>> time, thus sending a NaturalLanguageTranslator>>changed:#untranslated which
>> in turn triggers the reinitialization of LanguageEditor's UI.
>> Because of that, it is impossible to select a phrase for translation for
>> more than 2 seconds, unless we translate the status bar phrase at lightning
>> speed.

Latest version of LanguageEditor in SqueakSource is tested in
Squeak3.8 and backport patch, but not for Squeakland. See;

I guess this problem is caused for it.
I'm not comfortable such miss compatibility, and I'll merge it soon.

>> 2. Even more nasty: if using a filter in the untranslated phrases panel, an
>> infinite loop between NaturalLanguageTranslator>>translate: and
>> LanguageEditor>>untranslated is triggered, because the former method tries
>> to find the filter string in all unstranslated phrases *and their
>> translations* (which do not exist, of course).

Thank you, I didn't know that.

>   Takashi is the best person to comment on these, but it looks these
> are real bugs.  Nice catch.

- Takashi

More information about the Squeak-dev mailing list