Author: Jan Schneider (jan@horde.org)
Inheritance: extends Horde_Translation_Autodetect
Example #1
0
 /**
  * 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_LoginTasks';
     self::$_directory = '@data_dir@' == '@' . 'data_dir' . '@' ? __DIR__ . '/../../../locale' : '@data_dir@/Horde_LoginTasks/locale';
     return parent::ngettext($singular, $plural, $number);
 }
Example #2
0
 /**
  * Labels for the class constants.
  *
  * @return array  A mapping of constant to gettext string.
  */
 public static function getLabels()
 {
     return array(self::YEARLY => Horde_LoginTasks_Translation::t("Yearly"), self::MONTHLY => Horde_LoginTasks_Translation::t("Monthly"), self::WEEKLY => Horde_LoginTasks_Translation::t("Weekly"), self::DAILY => Horde_LoginTasks_Translation::t("Daily"), self::EVERY => Horde_LoginTasks_Translation::t("Every Login"));
 }