Opened 9 months ago
Last modified 8 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)
Change History (16)
by , 9 months ago
Attachment: | screenshot2.png added |
---|
by , 9 months ago
Attachment: | screenshot3.png added |
---|
comment:1 by , 9 months ago
comment:2 by , 9 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 , 9 months ago
Attachment: | screenshot4.png added |
---|
by , 9 months ago
Attachment: | screenshot5.png added |
---|
comment:3 by , 9 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:5 by , 9 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:8 by , 9 months ago
Owner: | changed from | to
---|---|
Status: | new → in-progress |
comment:9 by , 9 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 , 9 months ago
I don't think switching the slider position makes sense. All the other screensavers do it in the same way.
comment:12 by , 8 months ago
I think this code may help for newLabel formatting.
https://cgit.haiku-os.org/haiku/tree/src/servers/print/ConfigWindow.cpp#n529
Could you elaborate? I don't see any bug in those screenshots.