Bug 448072

Summary: Context Menu is overlapping text with shortcuts in RTL mode and Arabic Interface
Product: [Applications] lokalize Reporter: Zayed Al-Saidi <zayed.alsaidi>
Component: editorAssignee: Simon Depiets <sdepiets>
Status: RESOLVED UPSTREAM    
Severity: normal CC: safa1996alfulaij, shafff
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: overlapped text in context menu (RTL layout + Arabic Interface)

Description Zayed Al-Saidi 2022-01-07 15:54:06 UTC
Created attachment 145198 [details]
overlapped text in context menu (RTL layout + Arabic Interface)

SUMMARY
***
As the editor view of source entry area is set to Left to Right in English to Arabic projects, the context menu layout is RTL (following the parent widget by default) . This cause an issue when the Application interface is Arabic. In that situation the context menu "text" overlap with "shortcuts". Please see the attachment. 

I think the context menu layout should be forced (maybe something like menu->setLayoutDirection(Qt::RightToLeft) )  to follow the main application layout (either RTL or LTR)

***


STEPS TO REPRODUCE
1. Set the project to translate from English to Arabic
2. Run the lokalize with Arabic interface
3. Open any file, for example this one: 
http://websvn.kde.org/*checkout*/trunk/l10n-kf5/ar/messages/lokalize/lokalize._desktop_.po
4- go to the source text view.
5- right click and see the context menu

OBSERVED RESULT
the context menu "text" overlap with "shortcuts"

EXPECTED RESULT
the context menu "text" should align to right with "shortcuts"

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.90.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-40-generic (64-bit)
Graphics Platform: X11
Processors: 3 × AMD Ryzen 9 3900X 12-Core Processor
Memory: 4.9 غ.بايت of RAM
Graphics Processor: llvmpipe

ADDITIONAL INFORMATION
Lokalize version is 21.07.70
Comment 1 Safa Alfulaij 2022-02-11 03:06:50 UTC
Upstream bug: https://bugreports.qt.io/browse/QTBUG-43478
Please add more information if you can to reopen the bug.