Skip to content

Commit

Permalink
Merge pull request #19372 from mzazrivec/dont_use_gettext_in_model_co…
Browse files Browse the repository at this point in the history
…nstants_3

MiqReport::Generator -- don't use gettext in model constants
  • Loading branch information
martinpovolny committed Oct 8, 2019
2 parents 9876943 + a4e6045 commit 5065a24
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions app/models/miq_report/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ module MiqReport::Generator
include_concern 'Utilization'

DATE_TIME_BREAK_SUFFIXES = [
[_("Hour"), "hour"],
[_("Day"), "day"],
[_("Week"), "week"],
[_("Month"), "month"],
[_("Quarter"), "quarter"],
[_("Year"), "year"],
[_("Hour of the Day"), "hour_of_day"],
[_("Day of the Week"), "day_of_week"],
[_("Day of the Month"), "day_of_month"],
[_("Week of the Year"), "week_of_year"],
[_("Month of the Year"), "month_of_year"]
[N_("Hour"), "hour"],
[N_("Day"), "day"],
[N_("Week"), "week"],
[N_("Month"), "month"],
[N_("Quarter"), "quarter"],
[N_("Year"), "year"],
[N_("Hour of the Day"), "hour_of_day"],
[N_("Day of the Week"), "day_of_week"],
[N_("Day of the Month"), "day_of_month"],
[N_("Week of the Year"), "week_of_year"],
[N_("Month of the Year"), "month_of_year"]
].freeze

module ClassMethods
Expand Down

0 comments on commit 5065a24

Please sign in to comment.