Change the query to deal with the lang in the externalRegistration trigger.