tobie/ua-parser — pull request #281 by josephsu (2013-07-31 09:29:38+00:00)
Title: Some Android devices does not report the subcode in the language code.

Example:

Mozilla/5.0 (Linux; U; Android 4.1.1; en-; HTC Butterfly Build/JRO03C)
AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30