Merge pull request #1848 from C-Otto/tracks-1847

Fix description of monthly recurring tests
This commit is contained in:
Matt Rogers 2015-08-07 20:29:40 -04:00
commit a9023960fc
3 changed files with 14 additions and 12 deletions

View file

@ -103,8 +103,8 @@ module RecurringTodos
def recurrence_pattern_for_specific_day
on_day = " #{I18n.t('todos.recurrence.pattern.on_day_n', :n => every_x_day)}"
if every_xth_day(0) > 1
I18n.t("todos.recurrence.pattern.every_n_months", :n => every_xth_day) + on_day
if every_x_month > 1
I18n.t("todos.recurrence.pattern.every_n_months", :n => every_x_month) + on_day
else
I18n.t("todos.recurrence.pattern.every_month") + on_day
end