Project

General

Profile

Defect #9839 » abbr_day.patch

何 于, 2011-12-19 08:46

View differences:

app/views/gantts/show.html.erb (working copy)
143 143
  width =  zoom - 1
144 144
  %>
145 145
  <div style="left:<%= left %>px;top:37px;width:<%= width %>px;height:<%= height %>px;font-size:0.7em;<%= "background:#f1f1f1;" if wday > 5 %>" class="gantt_hdr">
146
  <%= day_name(wday).first %>
146
  <%= abbr_day_name(wday).first %>
147 147
  </div>
148 148
  <%
149 149
  left = left + width + 1
lib/redmine/i18n.rb (working copy)
52 52
    def day_name(day)
53 53
      ::I18n.t('date.day_names')[day % 7]
54 54
    end
55

  
55
  
56
    def abbr_day_name(day)
57
      ::I18n.t('date.abbr_day_names')[day % 7]
58
    end
59
  
56 60
    def month_name(month)
57 61
      ::I18n.t('date.month_names')[month]
58 62
    end
(5-5/5)