Skip to content

Commit

Permalink
* Added French translation (thanks Thomas)
Browse files Browse the repository at this point in the history
* Tweaking recent status changes graph padding
  • Loading branch information
bradbeattie committed Apr 15, 2009
1 parent 30056e7 commit c6b30b8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/views/graphs/recent_status_changes_graph.html.erb
Expand Up @@ -8,14 +8,14 @@
i = -1
@issue_statuses.each do |issue_status|
points[issue_status.id] = {
"x" => Math.sin(2*Math::PI*i/@issue_statuses.size)*100 + 150,
"y" => Math.cos(2*Math::PI*i/@issue_statuses.size)*100 + 150
"x" => Math.sin(2*Math::PI*i/@issue_statuses.size)*100 + 140,
"y" => Math.cos(2*Math::PI*i/@issue_statuses.size)*100 + 140
}
i -= 1
end
%>

<svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="300" height="300">
<svg xmlns="http://www.w3.org/2000/svg" version="1.0" width="280" height="280">
<g fill-opacity="0.2" stroke-opacity="0.5">
<% @status_changes.each do |status_change| %>
<%
Expand Down
2 changes: 1 addition & 1 deletion app/views/my/blocks/_recent_status_changes_graph.html.erb
@@ -1,5 +1,5 @@
<h3><%= l(:label_graphs_issue_status_flow) %></h3>

<div style="text-align: center">
<%= tag("embed", :width => "300", :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'graphs', :action => 'recent_status_changes_graph')) %>
<%= tag("embed", :width => "280", :height => 280, :type => "image/svg+xml", :src => url_for(:controller => 'graphs', :action => 'recent_status_changes_graph')) %>
</div>
6 changes: 6 additions & 0 deletions config/locales/fr.yml
@@ -0,0 +1,6 @@
fr:
label_graphs: Tendances
label_graphs_total_vs_closed_issues: Fermetures / Total
label_graphs_old_issues: Age des demandes
label_graphs_issue_growth: Total des demandes
label_graphs_issue_status_flow: Changements recent (dans les dernieres 24 heures)

0 comments on commit c6b30b8

Please sign in to comment.