carlxaeron / django-rosetta

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

improved BIDI language detection #76

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Currently rosetta assumes dir="ltr" on language ids that are not in 
settings.LANGUAGES_BIDI, which is not always correct. 
We are using "fa-AF" (Persian, Afghanistan) in our project and this isn't 
detected as a bidi language, using only "fa" (Persian) yields the correct 
results.

Django itself had a similar problem solved here:
http://code.djangoproject.com/ticket/4389
http://code.djangoproject.com/changeset/8596

Basically the same works for rosetta, see attached diff.

Original issue reported on code.google.com by mcallist...@gmail.com on 8 Jun 2010 at 10:22

Attachments:

GoogleCodeExporter commented 8 years ago
Fixed as of r95, thank you for the heads-up! 

Original comment by mbonetti on 12 Jun 2010 at 9:23