Add language detection to print different messages.