build_date=Build date
cancel=Cancel
category=Category
+calendar=Calendar
change_verb=Change
configure=Configure
class=Class
classes=Classes
+clear_verb=Clear
closed=Closed
code=Code
color=Color
files=Files
filter_verb=Filter
follow=Follow
+hide=Hide
identifier_abbreviated=Id
info=Info
key=Key
components.note_changes_impact_all_users=Note that these changes will impact all users and all projects.
+#------------------------------------------------------------------------------
+#
+# DRILLDOWN
+#
+#------------------------------------------------------------------------------
+
+drilldown.click_for_more_on_x=Click for more on {0} : {1}
+drilldown.no_violations=No violations
+drilldown.any_severity=Any severity
+drilldown.any_rule=Any rule
+
+
+#------------------------------------------------------------------------------
+#
+# TIME MACHINE
+#
+#------------------------------------------------------------------------------
+
+time_machine.show_date=Show date
+time_machine.show_event=Show event
+time_machine.distributions=Distributions
+time_machine.distribution_chart=Distribution chart
+time_machine.compare_on_chart=Compare on chart
+time_machine.set_as_default_for_all_users=Set as default (for all users)
+
+
#------------------------------------------------------------------------------
#
# REVIEWS
<% if @snapshot.project_snapshot.periods? %>
- <form method="GET" action="<%= url_for :only_path=>true, :overwrite_params => {:period => nil} -%>" style="display: inline">
<select id="select-comparison" name="period" onchange="submit()" class="small">
- <option value="">Time changes...</option>
+ <option value=""><%= message('time_changes') -%>...</option>
<%= violation_period_select_options(@snapshot, 1) -%>
<%= violation_period_select_options(@snapshot, 2) -%>
<%= violation_period_select_options(@snapshot, 3) -%>
max = value if value && value>max
end
%>
- <h3>Severity</h3>
+ <h3><%= message('severity') -%></h3>
<table class="spacedicon" style="border: 1px solid #ccc;">
- <%= render :partial => 'rule_priority', :locals => {:label => 'Blocker', :css => 'even', :priority_id => Sonar::RulePriority::PRIORITY_BLOCKER, :max => max, :measure => blocker_violations }%>
- <%= render :partial => 'rule_priority', :locals => {:label => 'Critical', :css => 'odd', :priority_id => Sonar::RulePriority::PRIORITY_CRITICAL, :max => max, :measure => critical_violations }%>
- <%= render :partial => 'rule_priority', :locals => {:label => 'Major', :css => 'even', :priority_id => Sonar::RulePriority::PRIORITY_MAJOR, :max => max, :measure => major_violations }%>
- <%= render :partial => 'rule_priority', :locals => {:label => 'Minor', :css => 'odd', :priority_id => Sonar::RulePriority::PRIORITY_MINOR, :max => max, :measure => minor_violations }%>
- <%= render :partial => 'rule_priority', :locals => {:label => 'Info', :css => 'even', :priority_id => Sonar::RulePriority::PRIORITY_INFO, :max => max, :measure => info_violations }%>
+ <%= render :partial => 'rule_priority', :locals => {:label => message('blocker'), :css => 'even', :priority_id => Sonar::RulePriority::PRIORITY_BLOCKER, :max => max, :measure => blocker_violations }%>
+ <%= render :partial => 'rule_priority', :locals => {:label => message('critical'), :css => 'odd', :priority_id => Sonar::RulePriority::PRIORITY_CRITICAL, :max => max, :measure => critical_violations }%>
+ <%= render :partial => 'rule_priority', :locals => {:label => message('major'), :css => 'even', :priority_id => Sonar::RulePriority::PRIORITY_MAJOR, :max => max, :measure => major_violations }%>
+ <%= render :partial => 'rule_priority', :locals => {:label => message('minor'), :css => 'odd', :priority_id => Sonar::RulePriority::PRIORITY_MINOR, :max => max, :measure => minor_violations }%>
+ <%= render :partial => 'rule_priority', :locals => {:label => message('info'), :css => 'even', :priority_id => Sonar::RulePriority::PRIORITY_INFO, :max => max, :measure => info_violations }%>
</table>
</td>
<td class="column" align="left" style="white-space: normal;">
- <h3>Rule</h3>
+ <h3><%= message('rule') -%></h3>
<div class="scrollable">
<table class="spacedicon" width="100%" id="col_rules">
<%
%>
<tr class="<%= clazz -%>">
<td width="1%" nowrap>
- <a id="<%= "rule#{rule_index}" -%>" title="Click for more on <%= rule.plugin_name -%>: <%= rule.plugin_rule_key -%>" onclick="window.open(this.href,'rule','height=800,width=900,scrollbars=1,resizable=1');return false;" href="<%= url_for :controller => 'rules', :action => 'show', :id => rule.key, :layout => 'false' -%>"><img src="<%= ApplicationController.root_context -%>/images/priority/<%= rule_measure.rule_priority -%>.png" /></a>
+ <a id="<%= "rule#{rule_index}" -%>" title="<%= message('drilldown.click_for_more_on_x', :params => [rule.plugin_name, rule.plugin_rule_key]) -%>" onclick="window.open(this.href,'rule','height=800,width=900,scrollbars=1,resizable=1');return false;" href="<%= url_for :controller => 'rules', :action => 'show', :id => rule.key, :layout => 'false' -%>"><img src="<%= ApplicationController.root_context -%>/images/priority/<%= rule_measure.rule_priority -%>.png" /></a>
</td>
<td>
<%= link_to(rule.name, {:overwrite_params => {:rule => rule.key, :sid => nil, :priority => Sonar::RulePriority.to_s(@priority_id)}}, :title => "#{rule.plugin_name}: #{rule.plugin_rule_key}") %>
<% end %>
<% if rule_index==0 %>
- <tr class="even"><td>No violations</td></tr>
+ <tr class="even"><td><%= message('drilldown.no_violations') -%></td></tr>
<% end %>
</table>
</div>
</table>
<br/>
<div style="font-size: 85%;background-color: #eee;color: #777;padding: 4px 5px;border: 1px solid #ddd;margin-bottom: 20px;">
-<b>Path:</b>
+<b><%= message('path') -%>:</b>
<% if @priority_id %>
-<%= Sonar::RulePriority.to_s(@priority_id) %> <%= link_to 'clear', {:overwrite_params => {:priority => nil}} %>
+<%= Sonar::RulePriority.to_s(@priority_id) %> <%= link_to message('clear_verb'), {:overwrite_params => {:priority => nil}} %>
<% else %>
-Any severity
+<%= message('drilldown.any_severity') -%>
<% end %> »
<% if @rule %>
-<%= h @rule.name %> <%= link_to 'clear', {:overwrite_params => {:rule => nil}} %>
+<%= h @rule.name %> <%= link_to message('clear_verb'), {:overwrite_params => {:rule => nil}} %>
<% else %>
-Any rule
+<%= message('drilldown.any_rule') -%>
<% end %> »
<% paths.each do |path| %>
-<%= path[0] %> <%= link_to 'clear', {:overwrite_params => {:rids => path[1]}} %> »
+<%= path[0] %> <%= link_to message('clear_verb'), {:overwrite_params => {:rids => path[1]}} %> »
<% end %>
</div>
<script>
<thead>
<tr>
<th valign="top" nowrap="nowrap" style="text-align: left">
- Show date
+ <%= message('time_machine.show_date') -%>
<div class="yui-skin-sam" style="display: inline;">
- <a href="#" id="calendar_link" class="nolink"><%= image_tag('calendar_view_day.png', :alt => 'Calendar') %></a>
+ <a href="#" id="calendar_link" class="nolink"><%= image_tag('calendar_view_day.png', :alt => message('calendar')) %></a>
<div id="calContainer"> </div>
</div><br/>
<%
selectable_events = @project.events_with_snapshot.select{|event| !(@sids.include?(event.snapshot_id))}
unless selectable_events.empty?
%>
- Show event
+ <%= message('time_machine.show_event') -%>
<select id="select_label" onchange="selectSnapshot(this.options[this.selectedIndex].value, true)">
<option value=""> </option>
<%
<b><%= event.fullname %></b>
<br/>
<% end %>
- <a href="#" onClick="unselectSnapshot(<%= snapshot.id -%>, true)" class="action">hide</a>
+ <a href="#" onClick="unselectSnapshot(<%= snapshot.id -%>, true)" class="action"><%= message('hide').downcase -%></a>
</th>
<% end %>
<th> </th>
</tr>
<% end %>
<tr>
- <td class="title"><br/>Distributions</td>
+ <td class="title"><br/><%= message('time_machine.distributions') -%></td>
<% @snapshots.each_with_index do |snapshot, index| %>
<td align="right" valign="bottom">
<% current_color = ChartsController::CHART_COLORS[index % ChartsController::CHART_COLORS.size ] %>
chart_id = "distribution_#{row.metric.key}"
%>
<div style="float:left;width: 400px;text-align:center;padding-bottom: 25px;">
- <%= chart(chart_url, :id => chart_id, :alt => 'Distribution chart', :width => 360, :height => 150) -%><br/>
+ <%= chart(chart_url, :id => chart_id, :alt => message('time_machine.distribution_chart'), :width => 360, :height => 150) -%><br/>
<b><%= row.metric.short_name -%></b>
</div>
<% end %>
<tfoot>
<tr>
<td colspan="<%= @snapshots.size + 2 -%>">
- <input type="submit" value="Compare on chart" />
+ <input type="submit" value="<%= message('time_machine.compare_on_chart') -%>" />
<% if is_admin? %>
- <a href="#" onClick="collectSelectedMetrics();$('chart_defaults_form').submit();return false;" class="action">Set as default (for all users)</a>
+ <a href="#" onClick="collectSelectedMetrics();$('chart_defaults_form').submit();return false;" class="action"><%= message('time_machine.set_as_default_for_all_users') -%></a>
<% end %>
</td>
</tr>