Set dialog text dir to locale

First part of the patch for CB-7499; sets the text direction on dialog messages to follow the locale.