After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 383031 - left/right confusion in menu item labels in RTL languages
left/right confusion in menu item labels in RTL languages
Status: RESOLVED FIXED
Product: gnome-terminal
Classification: Core
Component: general
unspecified
Other All
: Normal minor
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on: 672433
Blocks:
 
 
Reported: 2006-12-06 15:26 UTC by seba
Modified: 2017-10-22 17:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Inverts the labels if an RTL locale is set (1.22 KB, patch)
2009-03-11 16:39 UTC, Simon van der Linden
needs-work Details | Review

Description seba 2006-12-06 15:26:09 UTC
Move Tab to the left describe action "Shift+Ctrl+Page Up" (this shortcut move the tab to the right)
Move Tab to the right describe action "Shift+Ctrl+Page Down" (this shortcut move the tab to the left)

Other information:
Move Tab to the right for "Shift+Ctrl+Page Up"
Move Tab to the left for "Shift+Ctrl+Page Down"
Comment 1 Mariano Suárez-Alvarez 2006-12-06 17:51:12 UTC
I am sorry but I do not understand what you mean by this.

Are you using a right-to-left locale?
Comment 2 Hanka Zalska 2006-12-13 09:20:20 UTC
Yes, this bug is related to arabic locale. The behaviour is not expected as it is described in menu.
Comment 3 Hanka Zalska 2006-12-13 09:28:10 UTC
Suggestion for fixing bug:

# cp /usr/share/locale/ar/LC_MESSAGES/gnome-terminal.mo \
     /usr/share/locale/ar/LC_MESSAGES/gnome-terminal.mo.orig
# msgunfmt /usr/share/locale/ar/LC_MESSAGES/gnome-terminal.mo > /var/tmp/a.po
# cat <<_EOF>>/var/tmp/a.po
msgid "Move Tab to the _Left"
msgstr "Move Tab to the _Right"

msgid "Move Tab to the _Right"
msgstr "Move Tab to the _Left"

_EOF
# msgfmt -o /var/tmp/a.mo -v /var/tmp/a.po
# mv /var/tmp/a.mo /usr/share/locale/ar/LC_MESSAGES/gnome-terminal.mo
# env LANG=ar_EG.UTF-8 gnome-terminal
Comment 4 Mariano Suárez-Alvarez 2007-01-19 23:25:43 UTC
Ah. The problem is that the ar translation is not complete, so you ar eseeing the English messages, intended to be used in a LTR locale. This will occur in any untranslated RTL language.

The fix for this is to translate the strings, then.
Comment 5 Takao Fujiwara 2008-01-28 11:46:55 UTC
Could you move the bug category into l10n/ar?
Comment 6 Djihed Afifi 2008-01-28 12:01:19 UTC
This is still the case for gnome-terminal for HEAD.

But it does strike me that it is odd to reverse the meanings with translations in order to fix this. (Like Hanka suggested).

It's easy to do that, but all RTL languages will need to do the same.

Somehow this does not seem to be to be a proper fix.

What do you think?
Comment 7 Behdad Esfahbod 2008-01-28 22:03:37 UTC
Seems Ok to me, as long as a translator comment is added to it.  We've done otherwise in other places, but it's not a big deal.  If someone wants to cook a patch either way, I can review that.
Comment 8 Simon van der Linden 2009-03-11 16:39:29 UTC
Created attachment 130467 [details] [review]
Inverts the labels if an RTL locale is set

Here is a fix using gtk_widget_get_direction.
Comment 9 Christian Persch 2009-05-26 20:32:22 UTC
IMHO as saner way would be to unify tabs_move_left_callback and tabs_move_right_callback callbacks into one, and do the direction based switching in there.
Comment 10 Behdad Esfahbod 2009-08-13 17:03:14 UTC
Makes sense.  ChPe, will you be looking into this anytime soon?
Comment 11 Christian Persch 2009-08-13 17:12:14 UTC
No. It's not hard, already has gnome-love keyword; anyone can do it :)
Comment 12 Julie Pichon 2009-08-19 22:04:25 UTC
I have some of this implemented (merging tabs_move_left_callback and tabs_move_right_callback into one), but I'd like some clarification on the labels issue. Is this about switching the labels depending on the text direction, or about changing the behaviour to match the label/action description?
Comment 13 Christian Persch 2017-10-22 17:01:07 UTC
Fixed with the gmenu port.