Ejemplo n.º 1
0
 /**
  * Switch to a new language
  * @author Howard <*****@*****.**>
  * @static
  * @param string $language
  * @return boolean
  */
 public static function switch_language($language)
 {
     $path = wpl_global::get_language_mo_path($language);
     $result = wpl_global::load_textdomain(WPL_TEXTDOMAIN, $path);
     if ($result) {
         wpl_request::setVar('wpllang', $language);
     }
     return $result;
 }