Bug 468395

Summary: Scanning progress label makes me dizzy in Polish
Product: [Applications] filelight Reporter: Christopher Yeleighton <giecrilj>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: martin.sandsmark
Priority: NOR    
Version: 22.12.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Christopher Yeleighton 2023-04-11 16:55:08 UTC
SUMMARY
When the application scans a folder, it displays its progress ("%d files, %d total") in a centred label.  This works well when it does it in English but not so well in Polish.  Polish, along with many other languages, has declination.  Moreover, like in a few other languages, numerals >4 are not numbers and must be followed by the genitive case.  In numerals >20 the  lowest digit counts.  Incidentally, the genitive case for "files" has a different length than the nominative case.

STEPS TO REPRODUCE
1.  Scan the home folder.

OBSERVED RESULT
The progress message alternates between "???4 pliki, ??? GB" and "???5 plików, ??? GB", depending on the least significant digit.  The message is centred, so the place where it begins fluctuates in the most annoying way.

EXPECTED RESULT
There should be separate controls for COUNT, FILES, SUBTOTAL, UNITS and they should all have a fixed width:
<INPUT TYPE=NUMBER READONLY NAME=COUNT > <INPUT TYPE=TEXT READONLY NAME=FILES >,
 <INPUT TYPE=NUMBER READONLY NAME=SUBTOTAL > <INPUT TYPE=TEXT READONLY NAME=UNITS >

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: openSUSE Tumbleweed 20230410
(available in About System)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Alternatively, displaying only numbers that end with 0 would do the trick too.  But it would be a hack, of course.
Comment 1 Bug Janitor Service 2023-04-12 10:18:33 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/filelight/-/merge_requests/79
Comment 2 Harald Sitter 2023-04-18 09:12:43 UTC
Git commit 52071a461c3e5195c31562edc308bc2236d8b152 by Harald Sitter.
Committed on 18/04/2023 at 09:12.
Pushed by sitter into branch 'master'.

use the default loading text for polish

the language doesn't lend itself well to the advanced text label we have
going on there.

M  +2    -1    src/qml/MapPage.qml

https://invent.kde.org/utilities/filelight/commit/52071a461c3e5195c31562edc308bc2236d8b152
Comment 3 Harald Sitter 2023-04-18 09:13:31 UTC
Git commit 1118237e54be471764ede7df1133b2326341f363 by Harald Sitter.
Committed on 18/04/2023 at 09:12.
Pushed by sitter into branch 'release/23.04'.

use the default loading text for polish

the language doesn't lend itself well to the advanced text label we have
going on there.


(cherry picked from commit 52071a461c3e5195c31562edc308bc2236d8b152)

M  +2    -1    src/qml/MapPage.qml

https://invent.kde.org/utilities/filelight/commit/1118237e54be471764ede7df1133b2326341f363