Check all modules for installed languages (see #6678)
Check the global language cache before the hook to really support nested calls