Right now Commons relies on templates like {{GetFallback}} and {{GetFallback2}} to retrieve fallback languages. These templates consist of hard-coded switch statements which have to be updated by hand.
It should be rather trivial to code a parser function which returns Language::getFallbackFor( $code ) so that such templates aren't necessary.
Version: unspecified
Severity: enhancement