Allow userland detectLanguage function and overriding other functions in init()