Verified Commit 1f39ab4d authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

remove redundant I18n

parent b9f4663a
Pipeline #22730 passed with stage
in 45 minutes and 33 seconds
......@@ -12,7 +12,7 @@ module FormatHelper
return '' if hours.blank?
dates = hours.map(&:meeting_date)
return format_hours_multiple_dates_semester(dates) if dates.size > 1
I18n.t('semester.one_semester', number: BillingExpense.semester_of_year(dates.first),
t('semester.one_semester', number: BillingExpense.semester_of_year(dates.first),
year: BillingExpense.semester_display_year(dates.first))
end
......@@ -25,13 +25,13 @@ module FormatHelper
max_semester = BillingExpense.semester_of_year(max_date)
if max_year != min_year
'%s – %s' % [
I18n.t('semester.one_semester', number: min_semester, year: min_year),
I18n.t('semester.one_semester', number: max_semester, year: max_year)
t('semester.one_semester', number: min_semester, year: min_year),
t('semester.one_semester', number: max_semester, year: max_year)
]
elsif min_semester == max_semester
I18n.t('semester.one_semester', number: max_semester, year: max_year)
t('semester.one_semester', number: max_semester, year: max_year)
else
I18n.t('semester.two_semesters_same_year', year: max_year)
t('semester.two_semesters_same_year', year: max_year)
end
end
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment