Added function to get language portion from locale
Merge pull request #1 from canduter/master

Added function to get language portion from locale