/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
/** * 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); }
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(); }
/** * 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); }
/** * 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); }
/** * */ 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(); }