improved language file generation script