From c6b30b8ee0609dd820f43d3e98cbc94e9308607e Mon Sep 17 00:00:00 2001 From: Brad Beattie Date: Wed, 15 Apr 2009 10:27:36 -0700 Subject: [PATCH] * Added French translation (thanks Thomas) * Tweaking recent status changes graph padding --- app/views/graphs/recent_status_changes_graph.html.erb | 6 +++--- app/views/my/blocks/_recent_status_changes_graph.html.erb | 2 +- config/locales/fr.yml | 6 ++++++ 3 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 config/locales/fr.yml diff --git a/app/views/graphs/recent_status_changes_graph.html.erb b/app/views/graphs/recent_status_changes_graph.html.erb index 16b97a9..bab7944 100644 --- a/app/views/graphs/recent_status_changes_graph.html.erb +++ b/app/views/graphs/recent_status_changes_graph.html.erb @@ -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 %> - + <% @status_changes.each do |status_change| %> <% diff --git a/app/views/my/blocks/_recent_status_changes_graph.html.erb b/app/views/my/blocks/_recent_status_changes_graph.html.erb index d1a8694..339305c 100644 --- a/app/views/my/blocks/_recent_status_changes_graph.html.erb +++ b/app/views/my/blocks/_recent_status_changes_graph.html.erb @@ -1,5 +1,5 @@

<%= l(:label_graphs_issue_status_flow) %>

-<%= 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')) %>
diff --git a/config/locales/fr.yml b/config/locales/fr.yml new file mode 100644 index 0000000..f2bdd22 --- /dev/null +++ b/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) \ No newline at end of file