carlxaeron / django-rosetta

Automatically exported from code.google.com/p/django-rosetta
MIT License
0 stars 0 forks source link

Set 'direction: rtl' on textfields when translating right-to-left languages #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The attached patch adds a template variable indicating whether the
translation language is written right-to-left. This variable is then used
to set the 'direction: rtl' style on translation textfields.

Original issue reported on code.google.com by joost.cassee on 17 Aug 2008 at 6:38

Attachments:

GoogleCodeExporter commented 8 years ago
Good point & thank you for the patch, Joost.

Original comment by mbonetti on 17 Aug 2008 at 8:39

GoogleCodeExporter commented 8 years ago
Thanks for following up on issues so quickly!

I believe that r25 does not set the rosetta_i18n_lang_bidi variable in the view 
yet,
so the template will never set the correct css class.

Original comment by joost.cassee on 18 Aug 2008 at 9:39

GoogleCodeExporter commented 8 years ago
(That would be r37, of course.)

Original comment by joost.cassee on 18 Aug 2008 at 9:41

GoogleCodeExporter commented 8 years ago
How odd, I forgot to commit the view. Should be fine as of r38

Original comment by mbonetti on 18 Aug 2008 at 9:58