# Column headers
headers = report.criteria.collect {|criteria| l(report.available_criteria[criteria][:label]) }
headers += report.periods
- headers << l(:label_total)
+ headers << l(:label_total_time)
csv << headers.collect {|c| Redmine::CodesetUtil.from_utf8(
c.to_s,
l(:general_csv_encoding) ) }
# Content
report_criteria_to_csv(csv, report.available_criteria, report.columns, report.criteria, report.periods, report.hours)
# Total row
- str_total = Redmine::CodesetUtil.from_utf8(l(:label_total), l(:general_csv_encoding))
+ str_total = Redmine::CodesetUtil.from_utf8(l(:label_total_time), l(:general_csv_encoding))
row = [ str_total ] + [''] * (report.criteria.size - 1)
total = 0
report.periods.each do |period|
%>
<div class="total-hours">
-<p><%= l(:label_total) %>: <%= html_hours("%.2f" % entries.sum(&:hours).to_f) %></p>
+<p><%= l(:label_total_time) %>: <%= html_hours("%.2f" % entries.sum(&:hours).to_f) %></p>
</div>
<% if entries.any? %>
<% end %>
<div class="total-hours">
-<p><%= l(:label_total) %>: <%= html_hours(l_hours(@total_hours)) %></p>
+<p><%= l(:label_total_time) %>: <%= html_hours(l_hours(@total_hours)) %></p>
</div>
<% unless @entries.empty? %>
<% unless @report.criteria.empty? %>
<div class="total-hours">
-<p><%= l(:label_total) %>: <%= html_hours(l_hours(@report.total_hours)) %></p>
+<p><%= l(:label_total_time) %>: <%= html_hours(l_hours(@report.total_hours)) %></p>
</div>
<% unless @report.hours.empty? %>
<% @report.periods.each do |period| %>
<th class="period" width="<%= columns_width %>%"><%= period %></th>
<% end %>
- <th class="total" width="<%= columns_width %>%"><%= l(:label_total) %></th>
+ <th class="total" width="<%= columns_width %>%"><%= l(:label_total_time) %></th>
</tr>
</thead>
<tbody>
<%= render :partial => 'report_criteria', :locals => {:criterias => @report.criteria, :hours => @report.hours, :level => 0} %>
<tr class="total">
- <td><%= l(:label_total) %></td>
+ <td><%= l(:label_total_time) %></td>
<%= ('<td></td>' * (@report.criteria.size - 1)).html_safe %>
<% total = 0 -%>
<% @report.periods.each do |period| -%>
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: الإجمالي
label_cross_project_tree: With project tree
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Cəmi
description_date_from: Въведете начална дата
description_date_to: Въведете крайна дата
text_repository_identifier_info: 'Позволени са малки букви (a-z), цифри, тирета и _.<br />Промяна след създаването му не е възможна.'
+ label_total_time: Общо
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Ukupno
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Total
field_inherit_members: Zdědit členy
field_closed_on: Uzavřeno
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Celkem
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Total
version_status_open: offen
warning_attachments_not_saved: "%{count} Datei(en) konnten nicht gespeichert werden."
+ label_total_time: Gesamtzeit
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Σύνολο
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Total
one: 1 issue
other: "%{count} issues"
label_total: Total
+ label_total_time: Total time
label_permissions: Permissions
label_current_status: Current status
label_new_statuses_allowed: New statuses allowed
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Total
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: "Kokku"
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Guztira
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: جمله
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Yhteensä
one: 1 demande
other: "%{count} demandes"
label_total: Total
+ label_total_time: Temps total
label_permissions: Permissions
label_current_status: Statut actuel
label_new_statuses_allowed: Nouveaux statuts autorisés
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Total
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: סה"כ
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Ukupno
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Összesen
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Total
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Totale
setting_jsonp_enabled: JSONPを有効にする
field_inherit_members: メンバーを継承
field_closed_on: 終了日
+ label_total_time: 合計
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: 합계
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Iš viso
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Kopā
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Вкупно
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Нийт
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Totaal
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Totalt
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Ogółem
field_inherit_members: Herdar membros
field_closed_on: Fechado
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Total
field_inherit_members: Herdar membros
field_closed_on: Fechado
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Total
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Total
field_inherit_members: Наследовать участников
field_closed_on: Закрыта
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Общее время
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Celkovo
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Skupaj
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Total
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Ukupno
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Укупно
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Total
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: จำนวนรวม
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Toplam
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Всього
field_inherit_members: Các thành viên kế thừa
field_closed_on: Đã đóng
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: Tổng cộng
description_date_to: 輸入結束日期
text_repository_identifier_info: '僅允許使用小寫英文字母 (a-z), 阿拉伯數字, 虛線與底線。<br />一旦儲存之後, 代碼便無法再次被更改。'
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: 總計
field_inherit_members: Inherit members
field_closed_on: Closed
setting_default_projects_tracker_ids: Default trackers for new projects
+ label_total_time: 合计
assert_select 'th:nth-child(2)', :text => '2009-52'
assert_select 'th:nth-child(3)', :text => '2009-53'
assert_select 'th:nth-child(4)', :text => '2010-1'
- assert_select 'th:nth-child(5)', :text => 'Total'
+ assert_select 'th:nth-child(5)', :text => 'Total time'
end
assert_select '#time-report tbody tr' do
assert_select 'td:nth-child(1)', :text => 'eCookbook'
assert_equal 'text/csv; header=present', @response.content_type
lines = @response.body.chomp.split("\n")
# Headers
- assert_equal 'Project,User,Activity,2007-3,2007-4,Total', lines.first
+ assert_equal 'Project,User,Activity,2007-3,2007-4,Total time', lines.first
# Total row
- assert_equal 'Total,"","",154.25,8.65,162.90', lines.last
+ assert_equal 'Total time,"","",154.25,8.65,162.90', lines.last
end
def test_report_csv_export
assert_equal 'text/csv; header=present', @response.content_type
lines = @response.body.chomp.split("\n")
# Headers
- assert_equal 'Project,User,Activity,2007-3,2007-4,Total', lines.first
+ assert_equal 'Project,User,Activity,2007-3,2007-4,Total time', lines.first
# Total row
- assert_equal 'Total,"","",154.25,8.65,162.90', lines.last
+ assert_equal 'Total time,"","",154.25,8.65,162.90', lines.last
end
def test_csv_big_5
assert_equal 'text/csv; header=present', @response.content_type
lines = @response.body.chomp.split("\n")
# Headers
- s1 = "Utilisateur;2011-11-11;Total"
- s2 = "Total"
+ s1 = "Utilisateur;2011-11-11;Temps total"
+ s2 = "Temps total"
if s1.respond_to?(:force_encoding)
s1.force_encoding('ISO-8859-1')
s2.force_encoding('ISO-8859-1')