[qtdocgallery] Translate orientation strings to integer values.