fix bug 647796 - better accept-language logic
Merge pull request #918 from groovecoder/accept-language-647796

fix bug 647796 - better accept-language logic