Added helpers for right-to-left languages

For right-to-left languages (like Farsi, Arabic, etc.), some layout modifications are also needed to really switch to the language. In these 2 commits, I added some helper functions for handling layout/... changes needed fot right-to-left languages.
The changes will not break existing api, and only provides extra functionality if a `bidiHandler` is provided for a translation.