[i18n] Correcting UI in RTL languages

persian-horde at metanetworking.com persian-horde at metanetworking.com
Mon Apr 18 17:12:19 PDT 2005


Hello all

As you know our language (Persian) is a RTL language, IMP4 has translated
before for our local, but after selecting Persian language (or every RTL
language) in IMP login page, users can’t view a friendly GUI in some
pages ,Because  most of pages have designed for LTR languages.

For enhancement of this, we did some changes in some files.

For first step we changed  ‘compose.inc’  and  add one of two lines of
following PHP  codes to some of lines (depending to every case), for
correcting justification of fields  in  RTL directions. Our changes don’t
have any effect in LTR languages, But it make a friendly and correct GUI
for RTL users.

Cods:

1-    <?php echo (isset($nls['rtl'][$language]) ? 'right' : 'left') ?>
2-    <?php echo (isset($nls['rtl'][$language]) ? 'left' : 'right') ?>

diff file for main compose.inc and changed compose.inc , and screen-shots
of compose  page before applying changes for a RTL language and after
applying changes for a LTR and for a RTL language, and changed compose.inc
file  are in following address.

http://www.metanetworking.com/persian-horde/

Now, we want to know is it acceptable that we continue for changing other
pages that have problems in RTL languages.

With Thank and Regards
Persian-Horde team






More information about the i18n mailing list