window buttons alignment is wrong in RTL locales

Bug #1947698 reported by Danial Behzadi
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gtk4 (Ubuntu)
Fix Released
High
Jeremy Bícha
Jammy
Fix Released
High
Jeremy Bícha

Bug Description

Impact
------
gtk4 is completely untranslated.

For RTL locales (such as Farsi, Arabic, and Hebrew), GTK4 apps also have the wrong alignment because of this bug.

Test Case
---------
https://translations.launchpad.net/ubuntu/jammy/+source/gtk4/+pots/gtk40
will look similar to
https://translations.launchpad.net/ubuntu/kinetic/+source/gtk4/+pots/gtk40

and

https://translations.launchpad.net/ubuntu/jammy/+source/gtk4/+pots/gtk40-properties
will look similar to
https://translations.launchpad.net/ubuntu/kinetic/+source/gtk4/+pots/gtk40-properties

They will show long lists of languages, many partially translated

Other Info
----------
This bug won't be fully fixed until a new language pack is built and published. That will happen shortly before the Ubuntu 22.04.1 milestone (so approximately late July).

Original Bug Report
-------------------
In RTL locales (e.g. fa_IR.UTF-8), the alignment of window buttons (close, min, max) is reverted.

For example, in the `gnome-chess` or `extensions`, window buttons are in the right corner, when all other windows has buttons on the left.

21.10
-----
This bug also affects Ubuntu 21.10 but there just isn't time to get this bug fixed there before End of Life on July 14.

If you're affected, please upgrade to Ubuntu 22.04 LTS which will be supported for many more years.

ProblemType: Bug
DistroRelease: Ubuntu 21.10
Package: libgtk-4-1 4.4.0+ds1-5
ProcVersionSignature: Ubuntu 5.13.0-19.19-generic 5.13.14
Uname: Linux 5.13.0-19-generic x86_64
ApportVersion: 2.20.11-0ubuntu70
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Tue Oct 19 12:57:21 2021
InstallationDate: Installed on 2021-07-13 (98 days ago)
InstallationMedia: Ubuntu 21.04 "Hirsute Hippo" - Release amd64 (20210420)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fa_IR
 SHELL=/bin/bash
SourcePackage: gtk4
UpgradeStatus: Upgraded to impish on 2021-10-16 (2 days ago)

Revision history for this message
Danial Behzadi (dani.behzi) wrote :
Jeremy Bícha (jbicha)
Changed in gtk4 (Ubuntu):
importance: Undecided → High
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gtk4 (Ubuntu):
status: New → Confirmed
Jeremy Bícha (jbicha)
description: updated
Changed in gtk4 (Ubuntu):
status: Confirmed → Fix Committed
Changed in gtk4 (Ubuntu Jammy):
importance: Undecided → High
status: New → Triaged
assignee: nobody → Jeremy Bicha (jbicha)
Changed in gtk4 (Ubuntu):
assignee: nobody → Jeremy Bicha (jbicha)
Jeremy Bícha (jbicha)
description: updated
Jeremy Bícha (jbicha)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gtk4 - 4.6.5+ds-1ubuntu4

---------------
gtk4 (4.6.5+ds-1ubuntu4) kinetic; urgency=medium

  * Fix the build directory for the previous upload

 -- Jeremy Bicha <email address hidden> Thu, 30 Jun 2022 14:21:26 -0400

Changed in gtk4 (Ubuntu):
status: Fix Committed → Fix Released
Jeremy Bícha (jbicha)
description: updated
Jeremy Bícha (jbicha)
description: updated
Changed in gtk4 (Ubuntu Jammy):
status: Triaged → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Danial, or anyone else affected,

Accepted gtk4 into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/gtk4/4.6.6+ds-0ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in gtk4 (Ubuntu Jammy):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-jammy
Revision history for this message
Jeremy Bícha (jbicha) wrote :

This bug was fixed with the language pack updates that were just pushed to jammy-updates.

I verified the bug fix by installing language-pack-gnome-he from jammy-updates (I force-enabled Phased Updates to get the 1:22.04+20220721 version).

I installed gnome-text-editor and gnome-shell-extension-manager.

I ran LANGUAGE=he gnome-text-editor and LANGUAGE=he extension-manager and verified that the window buttons were on the left side like they were supposed to be.

I also checked Arabic but gnome-text-editor hasn't been translated to Arabic yet so its buttons were still on the right side.

We don't actually need the updated gtk4 version in jammy-updates to fix this bug. But the gtk4 update is still wanted for other fixes.

tags: added: verification-done verification-done-jammy
removed: verification-needed verification-needed-jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gtk4 - 4.6.6+ds-0ubuntu1

---------------
gtk4 (4.6.6+ds-0ubuntu1) jammy; urgency=medium

  * New upstream release (LP: #1980742)
  * Build-Depend on dh-sequence-translations
    - Needed to fix missing translations and RTL support (LP: #1947698)
  * debian/rules: Handle the second translation template for dh-translations

 -- Jeremy Bicha <email address hidden> Tue, 05 Jul 2022 14:21:19 -0400

Changed in gtk4 (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for gtk4 has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.