Bug 467934 - Percentage value not localisable
Summary: Percentage value not localisable
Status: REPORTED
Alias: None
Product: frameworks-ki18n
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Chusslove Illich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-29 18:36 UTC by Emir SARI
Modified: 2023-04-29 22:33 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
screenshot (29.49 KB, image/png)
2023-03-29 18:36 UTC, Emir SARI
Details

Note You need to log in before you can comment on or make changes to this bug.
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.