Bug 446659

Summary: [RTL] Add possibility of string translation in DolphinView::requestStatusBarText() when one item is selected
Product: [Applications] dolphin Reporter: Zayed Al-Saidi <zayed.alsaidi>
Component: bars: statusAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kfm-devel, sh.yaron
Priority: NOR Keywords: rtl
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: status bar at right postion in RTL mode
status bar at wrong postion in RTL mode

Description Zayed Al-Saidi 2021-12-08 03:40:04 UTC
Created attachment 144336 [details]
status bar at right postion in RTL mode

SUMMARY
***
As status bar doesn't support RTL mode (i.e force every thing to be in RTL mode), I face issue when I have mixed files name (English name and Arabic name). The status bar shows English name at the left and Arabic name at the right. This is confusing. Currently status bar in RTL mode (dolphin -reverse)  showing every thing the right except in one case which when the selected item is just one file. I achieve that by putting  RIGHT-TO-LEFT MARK U+200F in the translation file for all the cases in DolphinView::emitStatusBarText (https://lxr.kde.org/source/system/dolphin/src/views/dolphinview.cpp#0594).
That works fine except for case when one item is selected which handled in DolphinView::requestStatusBarText(). That why I suggest to add possibility to translate that case.

Note: this solution is just a workaround for the real issue that status bar should be aware of interface language. Now this issue is happening in the LTR language like English but with swapped direction. 

***


STEPS TO REPRODUCE
1.  create two files one with name: اختبار.txt   and second with test.text
2. open Dolphin in reverse mode by dolphin -reverse
3. select اختبار.txt file only and notice the status bar string position
4- select test.txt file only and notice the status bar string position

OBSERVED RESULT
status bar string is at left when test.txt  is selected only. 

EXPECTED RESULT
status bar string is at right whenاtest.txt  is selected only. 

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.23.80
KDE Frameworks Version: 5.89.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
Comment 1 Zayed Al-Saidi 2021-12-08 03:41:06 UTC
Created attachment 144337 [details]
status bar at wrong postion in RTL mode