Modified the timing of change language

1. Added the localization sentence
2. Modified the code for performance