Opened 10 months ago

Last modified 9 months ago

#18841 in-progress bug

[GLIFE] minor bugs

Reported by: tzu_mi Owned by: nephele
Priority: normal Milestone: Unscheduled
Component: Add-Ons/Screen Savers Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

Hi, there are some minor bugs in GLife screensaver:

  • there is too much room in the upper part of the view, and two sliders in the bottom, so it looks odd;
  • some strings aren't translated correctly, even if there are, apparently, in the catkeys (the attached screenshot is in catalan, but it happens in other localizations too).

Attachments (4)

screenshot2.png (556.5 KB ) - added by tzu_mi 10 months ago.
screenshot3.png (523.3 KB ) - added by tzu_mi 10 months ago.
screenshot4.png (44.2 KB ) - added by tzu_mi 10 months ago.
screenshot5.png (45.2 KB ) - added by tzu_mi 10 months ago.

Download all attachments as: .zip

Change History (16)

by tzu_mi, 10 months ago

Attachment: screenshot2.png added

by tzu_mi, 10 months ago

Attachment: screenshot3.png added

comment:1 by nephele, 10 months ago

Could you elaborate? I don't see any bug in those screenshots.

comment:2 by tzu_mi, 10 months ago

As you can see in the first attachment "Grid life delay:" is translated, in the second one it is not when it's followed by the multiplier, even if in the catkeys it's translated correctly, the same happens with every localization, the german one is going to be attached too.

I think that the upper extra room in the settings view appears just odd, probably it is aligned to the bottom

by tzu_mi, 10 months ago

Attachment: screenshot4.png added

by tzu_mi, 10 months ago

Attachment: screenshot5.png added

comment:3 by nephele, 10 months ago

Relevant code:


src/add-ons/screen_savers/glife/GLifeConfig.cpp

    if (delay <= 0)
        newLabel = B_TRANSLATE("Grid life delay: none");
    else {
        newLabel.SetToFormat(B_TRANSLATE_CONTEXT("Grid life delay: "
            "%" B_PRId32 "x", "This is a factor: the x represents 'times', "
            "don't translate '%" B_PRId32"'"), delay);
    }


It looks correct to me

(it could be reformated with 100 lines, and use unicode multiplication sign)

What haiku revision are you encountering this on?

comment:4 by tzu_mi, 10 months ago

I've just updated to hrev 57633

comment:5 by madmax, 10 months ago

That B_PRId32 has a different value in x86 and x86_64. I don't know how the catalog extraction works, but there's just one string in it, and that's for the 32 bits version. So it find the translation in 32 bits and does not in 64.

comment:6 by waddlesplash, 10 months ago

Indeed, B_PRI can't be used in translation strings directly.

comment:7 by nephele, 10 months ago

delay is of type int32, I‘ll reformat this.

Thanks for the hint :)

comment:8 by nephele, 10 months ago

Owner: changed from nobody to nephele
Status: newin-progress

comment:9 by Starcrasher, 10 months ago

Something wrong is that you shouldn't be allowed to resize the window and cut scales like in screenshot2, moreover if it hides a slider.

Indeed using a bit of the free space above to put one slider per line would be a good idea. And perhaps not make sliders using the full width to have a small margin.

comment:11 by nephele, 10 months ago

I don't think switching the slider position makes sense. All the other screensavers do it in the same way.

Note: See TracTickets for help on using tickets.