GNOME Bugzilla – Bug 782608
Fixes for RTL languages
Last modified: 2017-10-08 19:35:50 UTC
Since I have been working with localization of a web UI at work, and we have Arabic-speaking customers, I thought I should do some RTL testing of Maps. One thing I found is that the rendering of stored route searches in the search popover is always rendered "Place 1 → Place 2 →", I think we should maybe reverse the arrow in these cases, but it might be a bit more complicated, as if the leading text in the string is using a LTR charset (let's say the search used a latin name, despite the locale being an RTL one) the overall string direction will be LTR (as far as I know). There might be more things, but lo-and-behold the sliding animations and the back arrow and so forth for transit routing actually seems to work as expected! :-)
Maybe the places in the stored route presentation should always be ordered according to the locales direction (by using Unicode direction override characters) and the arrows would always be pointing in the "direction of the language".
Another thing we might want to mirror is the location of the arribution logo and text (the scale is already mirrored, I think libchamplain does that).
Created attachment 351922 [details] [review] storedRoute: Print route summary according to locale direction Reverse the direction of separating arrows of stored route search results. Also add Unicode directional characters according to the locale direction to get the right rendering order for place names using the "opposite" direction from the currently running locale.
Created attachment 361150 [details] [review] storedRoute: Print route summary according to locale direction Reverse the direction of separating arrows of stored route search results. Also add Unicode directional characters according to the locale direction to get the right rendering order for place names using the "opposite" direction from the currently running locale.
Attachment 361150 [details] pushed as 32cc59d - storedRoute: Print route summary according to locale direction