fix #1399: Lowercase lang codes before comparing
Merge pull request #1414 from aronasorman/1399

fix #1399: Lowercase lang codes before comparing