[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: auto-translate seemed to hang on GTK3


On Mon, 16 Sept 2024 at 14:26, Bruce Steers <bsteers4@xxxxxxxxx> wrote:

> I just made this commit...
>
> https://gitlab.com/bsteers4/gambas/-/commit/65adbf99f1dbc4b5d355dfb55e20ef671adfb80f
>
> I found when using GTK3 when you translated all items nothing happens
> until it is completed.
>
> With QT5 the list is updated after each translation so you can see
> progress (and that it hasn't just crashed)
>
> In that commit the change that fixed GTK3 not updating anything was
> changing a Wait instruction into Wait 0.1
>
> I also made the auto-translate menu button show the progress while working.
> (i used the menu button as not sure of anywhere else convenient to display
> the progress)
>
> Just to let you know Ben, auto-translate all with GTk3 just hangs till
> completed.
> (you may have a better fix)
>
> Respects
> BruceS
>

I think that bug i mentioned is similar to the one you recently fixed that
got the offline documentation finally working in GTK3 as a difference in
the Wait args fixes it.
I improved my progress reading too by making a quick count of the unfilled
fields before starting so my total is the strings to be filled not all
items.

But i soon required another feature with the translator.
I just wanted to view the unfilled translations not have to scroll through
all of them.

So I added a checkbox called 'Hide filled' to the translator view.

Public Sub chkHideFilled_Click()

  For Each sKey As String In cvwTranslate.Keys
    cvwTranslate[sKey].Visible = If(chkHideFilled.Value,
cvwTranslate[sKey][1] = "", True)
  Next

End

Very handy :)

Respects

BruceS

Follow-Ups:
Re: auto-translate seemed to hang on GTK3gbWilly <gbWilly@xxxxxxxxxxxxxx>
Re: auto-translate seemed to hang on GTK3Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>
References:
auto-translate seemed to hang on GTK3Bruce Steers <bsteers4@xxxxxxxxx>