fix dialect overflow in locale picker

    for example show TW instead of zh-TW
Merge pull request #2805 from refinery/dialect-overflow

fix dialect overflow in locale picker