Updated language detection.
Implemented language detection by content.