/** * Return the summary for the event. * * @return string The summary. */ public function getSummary() { return $this->_vevent->getAttributeDefault('SUMMARY', Horde_Itip_Translation::t("No summary available")); }
/** * Return the short message for the response. * * @param boolean $is_update Indicates if the request was an update. * * @return string The short message. */ public function getShortMessage($is_update = false) { return $is_update ? Horde_Itip_Translation::t("has accepted the update to the following event") : Horde_Itip_Translation::t("has accepted the invitation to the following event"); }
/** * Returns the plural translation of a message. * * @param string $singular The singular version to translate. * @param string $plural The plural version to translate. * @param integer $number The number that determines singular vs. plural. * * @return string The string translation, or the original string if no * translation exists. */ public static function ngettext($singular, $plural, $number) { self::$_domain = 'Horde_Itip'; self::$_directory = '@data_dir@' == '@' . 'data_dir' . '@' ? __DIR__ . '/../../../locale' : '@data_dir@/Horde_Itip/locale'; return parent::ngettext($singular, $plural, $number); }