Bug 501449

Summary: i18n issues with spinboxes
Product: [Applications] Spectacle Reporter: Emir SARI <emir_sari>
Component: GeneralAssignee: Noah Davis <noahadvs>
Status: CONFIRMED ---    
Severity: normal CC: kde, nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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.