Title: Help with WordPress localization
Last modified: August 30, 2016

---

# Help with WordPress localization

 *  Resolved [chaosthunder](https://wordpress.org/support/users/chaosthunder/)
 * (@chaosthunder)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/help-with-wordpress-localization/)
 * Hi everyone!
 * I am building a site of WP and facing this situation:
 * – Frontend language should be in Vietnamese
    – Backend language should be in 
   English
 * I use WordPress 4.3
 * In wp-config.php, I set `$locale = 'vi';`
 * Then, in theme’s functions.php, I use the following code:
 *     ```
       function setAdminLang($locale) {
           if( is_admin() ) {
               $locale = 'en_US';
           }
           return $locale;
       }
       add_filter('locale', 'setAdminLang');
       ```
   
 * The frontend displays Vietnamese OK.
    But I need Admin to display English, and
   now, it still displays Vietnamese.
 * Please help if there is something wrong here.
 * I learnt that $locale is a new way to set language for WordPress 4.0 and above.
   But maybe there is still something buggy?, I don’t know.
 * Thanks so much!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [chaosthunder](https://wordpress.org/support/users/chaosthunder/)
 * (@chaosthunder)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/help-with-wordpress-localization/#post-6598717)
 * Seems like no one know the answer!
 * So sad! Maybe I have to dig again to find solution by myself.
 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/help-with-wordpress-localization/#post-6598718)
 * Hi chaosthunder
 * Try it with a plugin:
    [https://wordpress.org/plugins/english-wp-admin/](https://wordpress.org/plugins/english-wp-admin/)
   [https://wordpress.org/plugins/kau-boys-backend-localization/](https://wordpress.org/plugins/kau-boys-backend-localization/)
 *  Thread Starter [chaosthunder](https://wordpress.org/support/users/chaosthunder/)
 * (@chaosthunder)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/help-with-wordpress-localization/#post-6598720)
 * Hi keesiemeijer,
 * I check the source of the plugin english-wp-admin and see that it has more code
   on the localization than any code I found before about localization.
 * I think someone should update WP codex to make the documentation match current
   WP version.
 * Anyway, the plugin solve my problem. Thanks for leting me know such plugin!
 * Thanks, keesiemeijer!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Help with WordPress localization’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [chaosthunder](https://wordpress.org/support/users/chaosthunder/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/help-with-wordpress-localization/#post-6598720)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
