Bug 438193 - pt-br translation does not fit to spinbox in "Configure special window settings" window
Summary: pt-br translation does not fit to spinbox in "Configure special window settin...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: rules (other bugs)
Version First Reported In: git master
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-07 02:24 UTC by Patrick Silva
Modified: 2021-06-10 21:19 UTC (History)
2 users (show)

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


Attachments
screenshot (70.21 KB, image/png)
2021-06-07 02:24 UTC, Patrick Silva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Silva 2021-06-07 02:24:14 UTC
Created attachment 139063 [details]
screenshot

SUMMARY
When Plasma language is pt-br, translation does not fit to a spinbox in "Configure special window settings" window opened via context menu of a window decoration.
Please see the attached screenshot.

STEPS TO REPRODUCE
1. set Plasma language to pt-br
2. open "Configure special window settings" window via context menu of a window decoration
3. 

EXPECTED RESULT
translation fits to the spinbox

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.22.80
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.3
Graphics Platform: Wayland
Comment 1 Nate Graham 2021-06-08 23:29:54 UTC
LOL
Comment 2 Bug Janitor Service 2021-06-08 23:33:02 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/1086
Comment 3 Bug Janitor Service 2021-06-09 20:47:38 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/1092
Comment 4 Ismael Asensio 2021-06-10 21:17:27 UTC
Git commit 40d708f9c5614d37e638c2dd2e4ae67cd7b53f66 by Ismael Asensio.
Committed on 10/06/2021 at 21:16.
Pushed by iasensio into branch 'master'.

kcm/kwinrules: Adapt spinbox width to actual text

Use FontMetrics to calculate the expected max text width so it
doesn't overflow with wider fonts, specially in some languages
like pt_BR
FIXED-IN: 5.22.1

M  +12   -1    src/kcmkwin/kwinrules/package/contents/ui/RulesEditor.qml

https://invent.kde.org/plasma/kwin/commit/40d708f9c5614d37e638c2dd2e4ae67cd7b53f66
Comment 5 Ismael Asensio 2021-06-10 21:19:07 UTC
Git commit 79ff49f4927d0d3fbecfeabc5962c51b82c3254b by Ismael Asensio.
Committed on 10/06/2021 at 21:18.
Pushed by iasensio into branch 'Plasma/5.22'.

kcm/kwinrules: Adapt spinbox width to actual text

Use FontMetrics to calculate the expected max text width so it
doesn't overflow with wider fonts, specially in some languages
like pt_BR
FIXED-IN: 5.22.1
(cherry picked from commit 40d708f9c5614d37e638c2dd2e4ae67cd7b53f66)

M  +12   -1    src/kcmkwin/kwinrules/package/contents/ui/RulesEditor.qml

https://invent.kde.org/plasma/kwin/commit/79ff49f4927d0d3fbecfeabc5962c51b82c3254b