/** * 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_Icalendar'; self::$_directory = '@data_dir@' == '@' . 'data_dir' . '@' ? __DIR__ . '/../../../locale' : '@data_dir@/Horde_Icalendar/locale'; return parent::ngettext($singular, $plural, $number); }
/** * Return the organizer display name or email. * * @return string The organizer name to display for this event. */ public function organizerName() { try { $organizer = $this->getAttribute('ORGANIZER', true); } catch (Horde_Icalendar_Exception $e) { return Horde_Icalendar_Translation::t("An unknown person"); } if (isset($organizer[0]['CN'])) { return $organizer[0]['CN']; } $organizer = parse_url($this->getAttribute('ORGANIZER')); return $organizer['path']; }