I'm needing to translate several Django sites/apps into arabic (a
Right-To-Left language) and I'm having difficulty editing the .po
files when the message to translate contains Left-To-Right variables
or HTML markup.

Whether I'm using TextMate, TextWrangler or poedit, if I'm editing a
translation it correctly has the text RTL, but it also turns any
variables/markup RTL when it needs to stay LTR.

For example, I get this:

verbose_name)s)% تم تحديثه بنجاح.

When it needs to be this:

%(verbose_name)s تم تحديثه بنجاح.

Similar problem if I need to do something like have a <strong> or <em>
tag around a piece of text in the translation file. As I type the LTR
HTML tags in the RTL text it tries to make the tags RTL too.

It looks like Django's arabic translation file [1] has variables LTR,
so I'm curious what editor the Django arabic translators are using,
what fixes I need for poedit or what I'm doing wrong when I edit.

>From Googling around, I did see a poedit issue logged a few years ago
[2], but they said it's a native control issue, which might explain
why I see this same behavior in every Mac OS X editor I've tried thus
far.


[1] 
http://code.djangoproject.com/svn/django/trunk/django/conf/locale/ar/LC_MESSAGES/django.po
[2] http://www.poedit.net/trac/ticket/296

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to