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 731923 - The calendar is revers in RTL in git master
The calendar is revers in RTL in git master
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: calendar
3.13.x
Other Linux
: Normal normal
: ---
Assigned To: Florian Müllner
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2014-06-19 16:02 UTC by Yosef Or Boczko
Modified: 2014-06-24 22:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
RTL calendar (72.59 KB, image/png)
2014-06-20 14:53 UTC, Florian Müllner
  Details
RTL calendar, 2nd shot (36.25 KB, image/png)
2014-06-20 15:39 UTC, Florian Müllner
  Details
calendar: Fix for RTL locales (2.34 KB, patch)
2014-06-20 15:52 UTC, Florian Müllner
committed Details | Review
calendar: Fix events for RTL locales (1.51 KB, patch)
2014-06-20 15:52 UTC, Florian Müllner
committed Details | Review
networkAgent: Fix layout for RTL locales (1.73 KB, patch)
2014-06-20 15:53 UTC, Florian Müllner
committed Details | Review
appDisplay: Fix folder icons for RTL locales (1.28 KB, patch)
2014-06-20 15:53 UTC, Florian Müllner
committed Details | Review

Description Yosef Or Boczko 2014-06-19 16:02:42 UTC
Since https://git.gnome.org/browse/gnome-shell/commit/js/ui/calendar.js?id=ec714864f2041ff1d128f4a3c3e457275264ebe4 (I think this is this commit cause
the bug) the calendar look wrong in RTL.

In RTL I wants to see the week starts in the right side (Sunday in the right side) and ends in the left side (Saturday in the left side).
Now the calender look in RTL same to LTR (start in left and end in right). it wrong, and I think
it caused by the commit I mention above.
Comment 1 Florian Müllner 2014-06-20 14:53:35 UTC
Created attachment 278840 [details]
RTL calendar

So for clarification - does the attached screenshot look correct for he_IL, or should the actual calendar use the same layout as LTR, e.g. only the weekdate should be mirrored as in the bug description?
Comment 2 Yosef Or Boczko 2014-06-20 15:00:16 UTC
It look better. but it still wrong.

If A it Sunday and G is Saturday, in Hebrew
א = A = Sunday and ש = G = Saturday, so what I see in your screenshot is:
ג ד ה ו ש א ב
But I need to see:
א ב ג ד ה ו ש

It mean the two last days (א ב) needs to be at the start (in the
right side), before the ג day.

I'm hope it clear.
Comment 3 Florian Müllner 2014-06-20 15:39:35 UTC
Created attachment 278841 [details]
RTL calendar, 2nd shot

Ah yes, I forget the header and running with the correct LC_TIME - how about this then?
Comment 4 Yosef Or Boczko 2014-06-20 15:40:35 UTC
It great, it exactly how it look in the calendar widget in GTK+ (see in gtk3-widget-factory).
Thanks!
Comment 5 Florian Müllner 2014-06-20 15:52:47 UTC
Created attachment 278842 [details] [review]
calendar: Fix for RTL locales

Unlike StTable, ClutterTableLayout does not take the actor's text
direction into account, so mirror columns ourselves now.
Comment 6 Florian Müllner 2014-06-20 15:52:58 UTC
Created attachment 278843 [details] [review]
calendar: Fix events for RTL locales

Unlike StTable, ClutterTableLayout does not take the actor's text
direction into account, so mirror columns ourselves now.
Comment 7 Florian Müllner 2014-06-20 15:53:04 UTC
Created attachment 278844 [details] [review]
networkAgent: Fix layout for RTL locales

Unlike StTable, ClutterTableLayout does not take the actor's text
direction into account, so mirror columns ourselves now.
Comment 8 Florian Müllner 2014-06-20 15:53:11 UTC
Created attachment 278845 [details] [review]
appDisplay: Fix folder icons for RTL locales

Unlike StTable, ClutterTableLayout does not take the actor's text
direction into account, so mirror columns ourselves now.
Comment 9 Yosef Or Boczko 2014-06-21 20:17:07 UTC
I can to confirm, it works very well, it look just nice! Thanks!
Comment 10 Florian Müllner 2014-06-24 22:04:09 UTC
Attachment 278842 [details] pushed as 6077e28 - calendar: Fix for RTL locales
Attachment 278843 [details] pushed as 256bb53 - calendar: Fix events for RTL locales
Attachment 278844 [details] pushed as 8abd183 - networkAgent: Fix layout for RTL locales
Attachment 278845 [details] pushed as 2bda6db - appDisplay: Fix folder icons for RTL locales