Skip to content

Commit

Permalink
Missed one case; and one typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed May 21, 2015
1 parent 8394376 commit 25e3bd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/Date/lib/Horde/Date/Recurrence.php
Expand Up @@ -223,6 +223,7 @@ public function getRecurName()
return Horde_Date_Translation::t("Weekly");
case self::RECUR_MONTHLY_DATE:
case self::RECUR_MONTHLY_WEEKDAY:
case self::RECUR_MONTHLY_LAST_WEEKDAY:
return Horde_Date_Translation::t("Monthly");
case self::RECUR_YEARLY_DATE:
case self::RECUR_YEARLY_DAY:
Expand Down Expand Up @@ -1679,7 +1680,7 @@ public function toString($date_format)
$string = _("Monthly: Recurs every") . ' ' . $this->getRecurInterval() . ' ' . _("month(s)") . ' ' . _("on the same date");
} elseif ($this->hasRecurType(self::RECUR_MONTHLY_WEEKDAY)) {
$string = _("Monthly: Recurs every") . ' ' . $this->getRecurInterval() . ' ' . _("month(s)") . ' ' . _("on the same weekday");
} elseif ($this->hasRecurType(self::RECUR_MONTHLY_LASTWEEKDAY)) {
} elseif ($this->hasRecurType(self::RECUR_MONTHLY_LAST_WEEKDAY)) {
$string = _("Monthly: Recurs every") . ' ' . $this->getRecurInterval() . ' ' . _("month(s)") . ' ' . _("on the same last weekday");
} elseif ($this->hasRecurType(self::RECUR_YEARLY_DATE)) {
$string = _("Yearly: Recurs every") . ' ' . $this->getRecurInterval() . ' ' . _("year(s) on the same date");
Expand Down

0 comments on commit 25e3bd7

Please sign in to comment.