fix firefox locale issue

When using Firefox, $_SERVER["HTTP_ACCEPT_LANGUAGE"] is in xx-yy format like zh-tw, but not xx-YY like zh-TW, may cause missing some locales.