tdesktop icon indicating copy to clipboard operation
tdesktop copied to clipboard

Error on displaying text in any RTL language

Open Muaath5 opened this issue 3 years ago • 8 comments

Steps to reproduce

  1. Use link https://t.me/setlanguage/ar-beta To set language ar-bata

Expected behaviour

Numbers displayed correctly. English text is displayed correctly. RTL View for the application (Menu in the right)

Actual behaviour

Numbers are reversed!! For example:

  1. Chat members count are reversed
  2. Poll voters count (also in the tip)
  3. The number of the version of the app.
EXAMPLE (Red means error, Green means Good):

Reversed numbers example

ANOTHER EXAMPLE (App version is reversed, It should be 2.6.2, But it's 6.2.2!!):

App version number is reversed

Some text has wrong alignment! For example:

EXAMPLE:

Wrong alignment example

Some english text are reversed in displaying!!

EXAMPLE:

"HTTP" word is reversed in Proxy settings

Configuration

Operating system: Microsoft Windows 10 Pro (2004)

Version of Telegram Desktop: 2.6.2 (Last version)

Installation source (Linux Only) - the official website / GitHub releases / flatpak / snap / distribution package:

Used theme: TgDarkBlueTheme

Logs: [2021.03.15 16:19:38] Launched version: 2006002, install beta: [TRUE], alpha: 0, debug mode: [FALSE]

[2021.03.15 16:19:38] Executable dir: E:/Telegram Desktop/, name: Telegram.exe [2021.03.15 16:19:38] Initial working dir: E:/Telegram Desktop/ [2021.03.15 16:19:38] Working dir: E:/Telegram Desktop/ [2021.03.15 16:19:38] Command line: E:\Telegram Desktop\Telegram.exe -noupdate -tosettings [2021.03.15 16:19:38] Executable path before check: E:/Telegram Desktop/Telegram.exe

[2021.03.15 16:19:38] Logs started

[2021.03.15 16:19:38] Connecting local socket to Global\1e941763e028d44b1e269790f00fa357-{87A94AB0-E370-4cde-98D3-ACC110C5967D}...

[2021.03.15 16:19:38] This is the only instance of Telegram, starting server and app...

[2021.03.15 16:19:38] Moved logging from 'E:/Telegram Desktop/log_start1.txt' to 'E:/Telegram Desktop/log.txt'!

[2021.03.15 16:19:38] Old start log 'log_start0.txt' found, deleted: [TRUE]

[2021.03.15 16:19:38] Primary screen DPI: 96

[2021.03.15 16:19:38] Font: from ':/gui/fonts/DAOpenSansRegular.ttf' loaded 'DAOpenSansRegular'

[2021.03.15 16:19:38] Font: from ':/gui/fonts/DAVazirRegular.ttf' loaded 'DAVazirRegular'

[2021.03.15 16:19:38] Font: from ':/gui/fonts/DAOpenSansRegularItalic.ttf' loaded 'DAOpenSansRegularItalic'

[2021.03.15 16:19:38] Font: from ':/gui/fonts/DAVazirRegular.ttf' loaded 'DAVazirRegular'

[2021.03.15 16:19:38] Font: from ':/gui/fonts/DAOpenSansSemiboldAsBold.ttf' loaded 'DAOpenSansSemibold'

[2021.03.15 16:19:38] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'

[2021.03.15 16:19:38] Font: from ':/gui/fonts/DAOpenSansSemiboldItalicAsBold.ttf' loaded 'DAOpenSansSemiboldItalic'

[2021.03.15 16:19:38] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'

[2021.03.15 16:19:38] Font: from ':/gui/fonts/DAOpenSansSemiboldAsBold.ttf' loaded 'DAOpenSansSemibold'

[2021.03.15 16:19:39] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'

[2021.03.15 16:19:39] Font: from ':/gui/fonts/DAOpenSansSemiboldItalicAsBold.ttf' loaded 'DAOpenSansSemiboldItalic'

[2021.03.15 16:19:39] Font: from ':/gui/fonts/DAVazirMediumAsBold.ttf' loaded 'DAVazirMedium'

[2021.03.15 16:19:39] App Info: reading settings...

[2021.03.15 16:19:39] App Info: reading encrypted settings...

[2021.03.15 16:19:39] Lang Info: Loaded cached, keys: 3069

[2021.03.15 16:19:39] OpenAL Logging Level: (not set)

[2021.03.15 16:19:39] Audio Playback Devices: OpenAL Soft on Speakers (USB Audio Device);OpenAL Soft on VA2719 Series (NVIDIA High Definition Audio)

[2021.03.15 16:19:39] Audio Playback Default Device: OpenAL Soft on Speakers (USB Audio Device)

[2021.03.15 16:19:39] Audio Capture Devices: OpenAL Soft on Microphone (USB Audio Device)

[2021.03.15 16:19:39] Audio Capture Default Device: OpenAL Soft on Microphone (USB Audio Device)

[2021.03.15 16:19:39] App Info: reading accounts info...

[2021.03.15 16:19:39] App Info: bad decrypt key, data not decrypted - incorrect password?

[2021.03.15 16:19:39] App Info: could not decrypt pass-protected key from info file, maybe bad password...

[2021.03.15 16:19:41] App Info: reading accounts info...

[2021.03.15 16:19:41] App Info: reading encrypted info...

[2021.03.15 16:19:41] App Info: reading map...

[2021.03.15 16:19:41] App Info: reading encrypted map...

[2021.03.15 16:19:41] App Info: reading encrypted user settings...

[2021.03.15 16:19:41] App Info: encrypted user settings read.

[2021.03.15 16:19:41] App Info: reading encrypted mtp data...

[2021.03.15 16:19:41] MTP Info: read keys, current: 5, to destroy: 0

[2021.03.15 16:19:41] Map read time: 4

[2021.03.15 16:19:41] App Info: reading encrypted mtp config...

[2021.03.15 16:19:42] Export Info: Destroy top bar by controller removal.

[2021.03.15 16:19:47] API Warning: not loaded minimal channel applied.

[2021.03.15 16:24:51] FINISHED UPDATE FOR: 1

[2021.03.15 16:24:51] LOADER ID: 413830552

[2021.03.15 16:24:51] SENT

Muaath5 avatar Mar 15 '21 13:03 Muaath5

Seem to be a duplicate of #5518, but was closed by reporter for some reason. TL;DR someone interested should add RTL support to https://github.com/desktop-app/lib_ui/blob/master/ui/text/text.cpp (this is a copy of QText from Qt 5.6 that didn't have proper RTL support).

ilya-fedin avatar Mar 15 '21 14:03 ilya-fedin

Seem to be a duplicate of #5518, but was closed by reporter for some reason. TL;DR someone interested should add RTL support to https://github.com/desktop-app/lib_ui/blob/master/ui/text/text.cpp (this is a copy of QText from Qt 5.6 that didn't have proper RTL support).

Ok, Can you add label: "3rd party issue" please?

Muaath5 avatar Apr 26 '21 06:04 Muaath5

Ok, Can you add label: "3rd party issue" please?

This is not a 3rd party issue, lib_ui is a part of tdesktop

ilya-fedin avatar Apr 26 '21 19:04 ilya-fedin

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

stale[bot] avatar Dec 21 '21 19:12 stale[bot]

No, this problem wasn't fixed

Muaath5 avatar Dec 22 '21 17:12 Muaath5

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

stale[bot] avatar Jun 23 '22 00:06 stale[bot]

The problem wan't fixed yet

Muaath5 avatar Jul 29 '22 21:07 Muaath5

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

github-actions[bot] avatar Jan 26 '23 01:01 github-actions[bot]

I have the same problem in Farsi paragraphs. in android app everything is displayed correctly but in desktop app English words and numbers in Farsi paragraphs are reversed.

mehdikhody avatar Apr 11 '23 03:04 mehdikhody