Guest User

Untitled

a guest
Oct 11th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <?php
  2. // catch some weird locales served out by WP.
  3. $locales = array(
  4. 'ar'=> 'ar_ar',
  5. 'ca'=> 'ca_es',
  6. 'en'=> 'en_us',
  7. 'el'=> 'el_gr',
  8. 'et'=> 'et_ee',
  9. 'fi'=> 'fi_fi',
  10. 'ja'=> 'ja_jp',
  11. 'sq'=> 'sq_al',
  12. 'uk'=> 'uk_ua',
  13. 'vi'=> 'vi_vn',
  14. 'zh'=> 'zh_cn'
  15. );
  16.  
  17. if ( isset( $locales[ $locale ] ) )
  18. $locale = $locales[$locale];
Add Comment
Please, Sign In to add comment