I know that there is a LDML entry in Zend_Locale_Data for layout orientation based on locale:
<layout>
<orientation characters="right-to-left"/>
</layout>
But I don’t know how to retrieve it. I tried this:
Zend_Locale::getTranslationList('layout');
In returned array I couldn’t find this information. Where is the problem?
The orientation information is in the
charactersandlinesentries in the returned array. If those entries are empty, then Zend_Locale doesn’t have any information about thatlocale’s orientation, meaning it’s “normal” (characters left-to-right, lines top-to-bottom).
For example, calling getTranslationList for Arabic:
returns an array with
charactersset to'right-to-left', andlinesblank.On the other hand, the same call with a locale of ‘mn_Mong_CN’ returns an array with
charactersset to'top-to-bottom'andlinesset to'left-to-right'.