Skip to content

[Bug]: Accessible names read Latin text backwards in right-to-left languages #3054

Backlog

Description

@jgregoriorincon

Before you start

  • I searched the existing issues and did not find a duplicate.
  • This is a bug report, not a usage question.

What happened?

tl! and i18n::fmt return text in display form: in a line that starts with right-to-left text, the Latin runs are reversed so that egui lays them out correctly. Widgets built from those strings take the same text as their accessible name, so in Persian a screen reader would get the Latin runs backwards, for example "PostGIS" in the Add PostGIS layer label.

Found by reading the code, not with a screen reader. #3053 fixes it for the ribbon's tool indicator only.

Steps to reproduce

  1. Set the interface language to Persian.
  2. Turn on a screen reader and move to a control whose translated label contains Latin text.

Expected behavior

Accessible names carry the text in logical order, while what is painted stays in display form, and a test checks it in Persian.

How are you running RustGIS?

Desktop app (built from source)

Version

main at the commit the PR starts from

Operating system, browser and graphics

Linux (Fedora), any.

Sample data

No response

Screenshots or logs

No response

Activity

  1. jgregoriorincon commented on Nov 26, 2026

    @jgregoriorincon
    ContributorAuthor

    I'll take this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions