Bug 506790

Summary: Right-click menu shows keyboard shortcuts over the menu item text when using Plasma with Arabic language.
Product: [Plasma] Breeze Reporter: Finley Watson <fin-w>
Component: QStyleAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: nate, noahadvs, uhhadd, uneasy_latitude544, zayed.alsaidi
Priority: NOR Keywords: rtl
Version First Reported In: 6.3.6   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Lokalize menu with our style applied, shows incorrectly
Lokalize menu with fusion style applied, shows better

Description Finley Watson 2025-07-09 10:04:39 UTC
Created attachment 183081 [details]
Lokalize menu with our style applied, shows incorrectly

When using Arabic as system language, the Lokalize program's right-click menu over the source language in the edit tab (open a translation file e.g. PO file to open the tab) shows the keyboard shortcuts left-aligned over the menu item text, and the menu item text also left-aligned.

Running Lokalize with `-style fusion` does not show the same issue.
Comment 1 Finley Watson 2025-07-09 10:05:19 UTC
Created attachment 183082 [details]
Lokalize menu with fusion style applied, shows better
Comment 2 easy_lad 2025-07-09 10:25:52 UTC
I can reproduce same results.
Comment 3 Zayed Al-Saidi 2025-07-09 10:28:32 UTC
This also appears in the search field of the applications launcher.
Comment 4 Finley Watson 2025-07-09 10:52:54 UTC
Zayed, you mean outside of Lokalize? Because if so, then hopefully the problem is fairly top-level and can be fixed easily. I was going to dig out the Lokalize code that creates the menu but I can't find it. It might be that the problem is entirely outside of Lokalize.
Comment 5 Zayed Al-Saidi 2025-07-09 11:20:53 UTC
(In reply to Finley Watson from comment #4)
> Zayed, you mean outside of Lokalize? Because if so, then hopefully the
> problem is fairly top-level and can be fixed easily. I was going to dig out
> the Lokalize code that creates the menu but I can't find it. It might be
> that the problem is entirely outside of Lokalize.

Quick check,  I can repduce it on:
1- open file dialog in Kate [file name field]
2- save as dialog in Kate [ file name field]
3- Search field in Konsole
4- in Filter field in Dolphin 

But I can't repduce it on
1- search field on Dolphin
2- Search field on Kate
3- krdc filter and address bar

As you notice in same application you get two different behaviors.
At this point, I m not sure is it top level issue or local issue for each app.