#228761 by zsanmartin, roborn: Installer did not recognize language files with dashes in them, such as pt-pt or zh-hans. Fixing pattern and pt-pt language code.