Add language functionality.
Check if lang is defined.
Merge pull request #3 from Twiebie/master

Added language support.