Bug 467934

Summary: Percentage value not localisable
Product: [Frameworks and Libraries] frameworks-ki18n Reporter: Emir SARI <emir_sari>
Component: generalAssignee: Chusslove Illich <caslav.ilic>
Status: REPORTED ---    
Severity: normal CC: christoph, kdelibs-bugs-null, waqar.17a
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot

Description Emir SARI 2023-03-29 18:36:40 UTC
Created attachment 157699 [details]
screenshot

See screenshot. The percentage value for "Don't indent lines wider than:" uses a spin box and a suffix to indicate the percentage, plus some additional text. Here, the spin box value and the percentage sign should be unified (plus the additional text) in order to properly localise it.

Tried to look at the source, but the QML source was too frightening to look at :).
Comment 1 Waqar Ahmed 2023-03-29 18:56:52 UTC
I am not sure if that is possible with QSpinbox... The additional text is just a suffix.
Comment 2 Emir SARI 2023-03-29 19:23:24 UTC
If that’s the case, shall I open a ticket with Qt?
Comment 3 Emir SARI 2023-03-31 21:23:32 UTC
This might help: https://invent.kde.org/libraries/perceptualcolor/-/snippets/2565
Comment 4 Christoph Cullmann 2023-04-29 14:46:30 UTC
I would prefer that this it either provided by some framework or Qt but I don't see that we shall add such workarounds to our code, given this seems to be a rather small glitch.
Comment 5 Christoph Cullmann 2023-04-29 14:56:02 UTC
Perhaps the below linked template or similar would make sense in ki18n, as pure template it might be feasible without extra deps.
Comment 6 Emir SARI 2023-04-29 22:33:30 UTC
This is on the radar of Qt right now, but I really do not know if they would fix this limitation.

I will look into integrating Lukas' code into KF.