If the application has to bypass or do something special with the selected language code, a callback validation method is required. For example, to bypass qqq language selection, which is a message documentation artificial language code in Mediawiki