fixed a bug that text resources written in english are displayed randomly (need more test)

fixed a bug that text resources are displayed incorrectly if
navigator.language has language with locale
Merge branch 'uidev'