added language code test: if undefined set 'und'.