function get_locale() { $locale = $this->guess_locale_from_lang(get_locale()); if (!$locale) { $locale = 'en_US'; } return $locale; }