Source for file convert.action.php
Documentation is available at convert.action.php
* @copyright Refer to copyright.php
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @author Mambo Foundation Inc see README.php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
function execute(&$controller, &$request)
$from_charset =
$_POST['charset'];
$to_charset =
$_POST['newcharset'];
$lang =
$_POST['language'];
$language->charset =
$to_charset;
foreach ($language->files as $arr) {
$gettext_admin->convert_charset($arr['domain'], $textdomain, $lang, $from_charset, $to_charset);
$gettext_admin->message_format($arr['domain'], $textdomain, $lang);
#return $controller->redirect('index', 'language');
$request->set('task', 'edit');
$request->set('act', 'language');
$request->set('lang', $lang);
$controller->view('edit');
/*$admin = new PHPGettextAdmin();
$admin->convert_encoding($catalog, $from, $to);
dump(iconv_get_encoding());*/
Documentation generated on Mon, 05 May 2008 16:18:45 +0400 by phpDocumentor 1.4.0