Fix bug 964848: Accept all properly formatted language codes.

@jgmize r? This should be a pretty easy one :) :cake: