Ticket #4106 (closed Bug: fixed)

Opened 7 years ago

Last modified 3 years ago

Arrows Problem - Right To Left

Reported by: Anonymous User Owned by:
Priority: minor Milestone: 2.1
Component: Templates/CSS Version:
Severity: Keywords:
Cc:

Description

You are here: Home → Articles → article1

→ → → The arrows should go from right to left

should be ←

Change History

comment:1 Changed 7 years ago by spliter

Seems like the title shoud be "RTL problem with breadcrumbs", Ofer ;) Here is (feel free to customize it, since I'm not a pythonist) the solution: in global_pathbar replace the following:

WAS:

<span tal:condition="breadcrumbs" class="breadcrumbSeparator">&rarr;</span>

IS NEEDED:

<span tal:condition="python:isRTL and breadcrumbs"

class="breadcrumbSeparator">&larr;</span>

<span tal:condition="python: not isRTL and breadcrumbs"

class="breadcrumbSeparator">&rarr;</span>

_ and one more place _:

WAS:

<span class="breadcrumbSeparator" tal:condition="not: is_last"> &rarr; </span>

IS NEEDED:

<span tal:condition="python:isRTL and not is_last"

class="breadcrumbSeparator">&larr;</span>

<span tal:condition="python: not isRTL and not is_last"

class="breadcrumbSeparator">&rarr;</span>

comment:2 Changed 7 years ago by reinout

Fixed it a bit, limi fixed it better. Please try it out and see if it's any good :-)

comment:3 Changed 7 years ago by limi

Checked in a first attempt at a fix for this. When using mixed RTL and LTR content, the order is jumbled, though - not sure if this is a common use case in these languages.

Feedback appreciated.

comment:4 Changed 7 years ago by limi

  • Status changed from new to closed
  • Resolution set to fixed

comment:5 Changed 3 years ago by hannosch

  • Component changed from Visual and templates to Templates/CSS
Note: See TracTickets for help on using tickets.