Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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);
 }
Example #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();
 }
Example #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);
 }
Example #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);
 }
Example #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();
 }