The lang is based on the user defined one. If the language is automatic, no language will be specified. Fixes #1216