/**
  * 
  * Enable a language by saving (primary) locale to database storage
  * 
  * @param string $locale - Locale to be enabled
  * @return int - status code
  */
 public function actionEnable($locale)
 {
     Language::enable($locale);
     return 0;
 }
Exemplo n.º 2
0
 public function run($id)
 {
     Language::enable($id);
     exit;
 }