This issue is splitted from the RTL API decisions on the the general core language direction (RTL) support discussion.

After review, it was decided to add the language direction information to the locales_meta table.

I suggest to add a general field named 'data' field in order to allow future properties as well. The locales_meta.data field should have the same format as users.data.

Please add the field to the locales_meta table, as well as to the upgrade and install scripts (if needed).

Thanks

Amnon

Comments

druvision’s picture

Status: Active » Needs review
druvision’s picture

The field will be used by the Language direction API

druvision’s picture

On a second thought, after reading Budapest internationalization meeting findings, I would stay with the 'direction' field since it's easier for module writers to use without needing a special conversion function.

gábor hojtsy’s picture

Status: Needs review » Closed (duplicate)

Drupal 6.x-dev now has support for directions, the global $language objects has a direction property, which can be used throughout the page building process. We put the $language detection as early as possible, so as many components can build on it as required.