Пример #1
0
 /**
  * Translate the plural type using a count
  *
  * @param int $n The amount
  *
  * @return string
  */
 public function translateTypeCount($n)
 {
     return jngettext('%d Plugin', '%d Plugins', $n);
 }
Пример #2
0
 /**
  * Translate the plural type using a count
  *
  * @param int $n The amount
  *
  * @return string
  */
 public function translateTypeCount($n)
 {
     return jngettext('%d Template', '%d Templates', $n);
 }
Пример #3
0
 /**
  * Translate the plural type using a count
  *
  * @param int $n The amount
  *
  * @return string
  */
 public function translateTypeCount($n)
 {
     return jngettext('%d Package', '%d Packages', $n);
 }
Пример #4
0
 /**
  * Translate the plural type using a count
  *
  * @param int $n The amount
  *
  * @return string
  */
 public function translateTypeCount($n)
 {
     return jngettext('%d Web Application', '%d Web Applications', $n);
 }
Пример #5
0
 /**
  * Translate the plural type using a count
  *
  * @param int $n The amount
  *
  * @return string
  */
 public function translateTypeCount($n)
 {
     return jngettext('%d Library', '%d Libraries', $n);
 }
Пример #6
0
 public function cleanEcrLogs()
 {
     $logfiles = JFolder::files(ECRPATH_LOGS, 'log', false, true);
     if (count($logfiles)) {
         if (JFile::delete($logfiles)) {
             $this->response->message = sprintf(jngettext('1 logfile has been deleted', '%d logfiles have been deleted', count($logfiles)), count($logfiles));
         } else {
             $this->response->message = jgettext('The logfiles could not be deleted');
             $this->response->status = 1;
         }
     } else {
         $this->response->message = jgettext('No logfiles found');
     }
     echo $this->response;
     jexit();
 }
Пример #7
0
 /**
  * Translate the plural type using a count
  *
  * @param int $n The amount
  *
  * @return string
  */
 public function translateTypeCount($n)
 {
     return jngettext('%d Component', '%d Components', $n);
 }
Пример #8
0
 /**
  * Translate the plural type using a count
  *
  * @param int $n The amount
  *
  * @return string
  */
 public function translateTypeCount($n)
 {
     return jngettext('%d Module', '%d Modules', $n);
 }
Пример #9
0
 /**
  *
  */
 public function deployPackages()
 {
     ob_start();
     try {
         $count = EcrDeployer::getInstance()->deployPackage();
         $this->response->message = sprintf(jngettext('The file has been deployed.', '%d files have been deployed.', $count), $count);
     } catch (Exception $e) {
         $this->handleException($e);
     }
     $buffer = ob_get_clean();
     if ($buffer) {
         $this->response->status = 1;
         $this->response->debug .= $buffer;
     }
     echo json_encode($this->response);
     jexit();
 }