Modified the way to change language environment.