Source for file update.action.php

Documentation is available at update.action.php

  1. <?php
  2. /**
  3. @package Mambo
  4. @subpackage Languages
  5. @copyright  Refer to copyright.php
  6. @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
  7. @author Mambo Foundation Inc see README.php
  8. */ 
  9. defined'_VALID_MOS' or die'Direct Access to this location is not allowed.' );
  10. class updateAction extends Action
  11. {
  12.     function execute(&$controller&$request)
  13.     {
  14.         $lang $request->get('lang');
  15.         $language new mamboLanguage($lang);
  16.         //$language->load(true);
  17.         $domain $_POST['domain'];
  18.         $textdomain mamboCore::get('rootPath')."/language";
  19.         $gettext_admin new PHPGettextAdmin(true);
  20.  
  21.         $gettext_admin->compile($lang$textdomain,  $language->charset);
  22.         $language->save();
  23.         return  $controller->redirect('index''catalogs');
  24.     }
  25. }
  26. ?>

Documentation generated on Mon, 05 May 2008 16:23:54 +0400 by phpDocumentor 1.4.0