Skip to content

Plasma desktop remains LTR even when desktop locale uses RTL script because qt5-qttranslations is not available by default #240101

@mahmoudajawad

Description

@mahmoudajawad

Describe the bug

As described in the long title; Package qt5-qttranslations is responsible for providing Qt applications necessary aspects to render Plasma and the applications RTL when the desktop locale is set to RTL (Such as Arabic), however, the package, although available in NixOS repos, is not installed by default, resulting in desktop rendering LTR with the correct language such as:
Screenshot from 2023-06-27 14-12-21

I've faced this issue before with Fedora, and the solution is to simply install qt5-qttranslations package as shown in the issue reported to Fedora KDE SIG: https://pagure.io/fedora-kde/SIG/issue/311

However, this doesn't work with NixOS. Emily and K900 from Matrix channel assumes this doesn't work because of how Nix packages are containerised and that a special treatment is needed in place for this issue.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install NixOS with Plasma.
  2. Set system language to Arabic (from Plasma Settings).
  3. Restart.
  4. Desktop remains LTR.

Expected behavior

Desktop and applications direction to be RTL such as:
fedora-screenshot

Screenshots

In issue description.

Additional context

N/A

Notify maintainers

N/A

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.34, NixOS, 23.05 (Stoat), 23.05.1139.572d2693045`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions