Bug 501449 - i18n issues with spinboxes
Summary: i18n issues with spinboxes
Status: CONFIRMED
Alias: None
Product: Spectacle
Classification: Applications
Component: General (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Noah Davis
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-13 13:27 UTC by Emir SARI
Modified: 2025-03-13 20:32 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emir SARI 2025-03-13 13:27:48 UTC
src/Gui/SettingsDialog/ImageSaveOptions.ui:62

Qt spin boxes do not have a way to set their format as %1%2, there is either a suffix or prefix option. This is problematic for proper i18n, which does not allow customization of the word/operator order. There is an in-house solution for this in Ki18n (KLocalization::setupSpinBoxFormatString), however, in .ui files it is not possible to apply this. This is an issue with percentage values for instance.

It would be nice if these spin boxes were to be somehow declared in code.