コード例 #1
0
 /**
  * Export the locale files to the browser as a tarball.
  * Requires tar (configured in config.inc.php) for operation.
  */
 function export($args, $request)
 {
     $this->validate();
     $plugin =& $this->plugin;
     $this->setupTemplate($request);
     $locale = array_shift($args);
     if (!AppLocale::isLocaleValid($locale)) {
         $request->redirect(null, null, 'index');
     }
     TranslatorAction::export($locale);
 }
コード例 #2
0
 /**
  * Export the locale files to the browser as a tarball.
  * Requires /bin/tar for operation.
  */
 function export($args)
 {
     list($plugin) = TranslatorHandler::validate();
     TranslatorHandler::setupTemplate();
     $locale = array_shift($args);
     if (!Locale::isLocaleValid($locale)) {
         Request::redirect(null, null, 'index');
     }
     TranslatorAction::export($locale);
 }