mygpo icon indicating copy to clipboard operation
mygpo copied to clipboard

Support bidirectional text (ltr and rtl) [WIP]

Open stefankoegl opened this issue 6 years ago • 0 comments

To support bidirectional text in the UI (as opposed to content such as podcast names or descriptions), we need to figure out the currently used language in the template (see docs).

{% get_current_language as LANGUAGE_CODE %}

For some (currently still unknown reasons), this always returns en when in the context of the template. In the view (eg wtih django.utils.translation.get_language) the correct language is returned.

I have asked on Stack Overflow about this issue (https://stackoverflow.com/q/51641412/693140), but have not been able to figure it out.

Once this is fixed we can create a rtl-stylesheet that is conditional on the language.

See also

  • https://css-tricks.com/almanac/properties/d/direction/
  • https://css-tricks.com/almanac/properties/u/unicode-bidi/

stefankoegl avatar Aug 03 '18 16:08 stefankoegl