Bug 446659 - [RTL] Add possibility of string translation in DolphinView::requestStatusBarText() when one item is selected
Summary: [RTL] Add possibility of string translation in DolphinView::requestStatusBarT...
Status: REPORTED
Alias: None
Product: dolphin
Classification: Applications
Component: bars: status (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords: rtl
Depends on:
Blocks:
 
Reported: 2021-12-08 03:40 UTC by Zayed Al-Saidi
Modified: 2024-01-09 01:19 UTC (History)
2 users (show)

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


Attachments
status bar at right postion in RTL mode (94.94 KB, image/png)
2021-12-08 03:40 UTC, Zayed Al-Saidi
Details
status bar at wrong postion in RTL mode (95.48 KB, image/png)
2021-12-08 03:41 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 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