Add the ability to set the text direction
authorEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 23 Dec 2008 16:40:26 +0000 (16:40 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Tue, 23 Dec 2008 16:40:26 +0000 (16:40 +0000)
commit9389d9755d9121c1f99a5dc208ef90a10ca1b004
treee51e86c3b1e89d0289e561e62c7370552e53a75d
parentb4a3944b2b6bde5b57f86519135b959f4607cad3
Add the ability to set the text direction

The direction of the text depends on the locale, and it is the
basic setting needed to enable internationalization of user
interfaces.

This commit allows setting the direction of the PangoContext instance
used by Clutter by using the CLUTTER_TEXT_DIRECTION environment
variable, or by passing the --clutter-text-direction command line
argument. Valid values are:

        ltr     - for left-to-right locales
        rtl     - for right-to-left locales

The default is LTR.

Ideally, this should be a value set by the localization teams on the
PO file, but this step requires some build system surgery to allow
the translation of the Clutter strings.
clutter/clutter-main.c