Bug 448072 - Context Menu is overlapping text with shortcuts in RTL mode and Arabic Interface
Summary: Context Menu is overlapping text with shortcuts in RTL mode and Arabic Interface
Status: RESOLVED UPSTREAM
Alias: None
Product: lokalize
Classification: Applications
Component: editor (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Simon Depiets
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-07 15:54 UTC by Zayed Al-Saidi
Modified: 2022-02-11 03:06 UTC (History)
2 users (show)

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


Attachments
overlapped text in context menu (RTL layout + Arabic Interface) (145.09 KB, image/png)
2022-01-07 15:54 UTC, Zayed Al-Saidi
Details

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