Fix the lang and lang_dir variable population.