Commit 732b657c06a0fc5fa35119fbb37bdd16e190a10e

Authored by Renan Fichberg
Committed by Diego Camarinha
1 parent d7438013

Fixed grammar, strings and blank spaces.

app/views/compound_metric_configurations/_metric_options.html.erb
... ... @@ -17,7 +17,7 @@
17 17 </div>
18 18 <div class="help-container">
19 19 <p>
20   - A short description about your compound metric.
  20 + A short description of your compound metric.
21 21 </p>
22 22 </div>
23 23 </div>
... ...
app/views/metric_configurations/_form.html.erb
... ... @@ -10,7 +10,7 @@
10 10 </div>
11 11 <div class="help-container">
12 12 <p>
13   - It is the weight of the metric
  13 + It is the Weight of the metric
14 14 </p>
15 15 </div>
16 16 </div>
... ... @@ -22,7 +22,7 @@
22 22 </div>
23 23 <div class="help-container">
24 24 <p>
25   - It is the aggregation form of the metric
  25 + It is the Aggregation Form of the metric
26 26 </p>
27 27 </div>
28 28 </div>
... ... @@ -37,7 +37,7 @@
37 37 </div>
38 38 <div class="help-container">
39 39 <p>
40   - The reading group that is associated with this metric
  40 + The Reading Group associated with this metric
41 41 </p>
42 42 </div>
43 43 </div>
... ...
app/views/metric_configurations/_no_ranges.html.erb
1   -<tr>
  1 +<tr>
2 2 <!-- TODO: expand this columns when the user owns the metric configurations and can edit or delete this range -->
3   - <td colspan="3">There are no ranges yet!</td>
  3 + <td colspan="3">There are no Ranges yet!</td>
4 4 </tr>
5 5 \ No newline at end of file
... ...
app/views/metric_configurations/_ranges.html.erb
... ... @@ -7,12 +7,12 @@
7 7 </td>
8 8 <td><%= mezuro_range.beginning %></td>
9 9 <td><%= mezuro_range.end %></td>
10   - <td>
  10 + <td>
11 11 <% if mezuro_configuration_owner? @metric_configuration.configuration_id %>
12 12 <%= link_to 'Edit', edit_mezuro_configuration_metric_configuration_mezuro_range_path(
13 13 @metric_configuration.configuration_id, @metric_configuration.id, mezuro_range.id), class: 'btn btn-info' %>
14 14 <%= link_to 'Destroy', mezuro_configuration_metric_configuration_mezuro_range_path(@metric_configuration.configuration_id,
15   - @metric_configuration.id, mezuro_range.id), method: :delete, data: { confirm: 'Are you sure that you want to destroy this range?' },
  15 + @metric_configuration.id, mezuro_range.id), method: :delete, data: { confirm: 'Are you sure that you want to destroy this Range?' },
16 16 class: 'btn btn-danger' %>
17 17 <% end %>
18 18 </td>
... ...
app/views/metric_configurations/choose_metric.html.erb
1 1 <div class="page-header">
2   - <h1>Choose a metric from a base tool:</h1>
  2 + <h1>Choose a metric from a Base Tool:</h1>
3 3 </div>
4 4  
5 5 <%= form_tag mezuro_configuration_new_metric_configuration_path(@mezuro_configuration_id) do %>
... ...
app/views/metric_configurations/new.html.erb
... ... @@ -5,12 +5,15 @@
5 5 <p>
6 6 <b>Base Tool:</b> <%= @metric_configuration.base_tool_name %>
7 7 </p>
  8 +
8 9 <p>
9 10 <b>Metric Name:</b> <%= @metric_configuration.metric.name %>
10 11 </p>
  12 +
11 13 <p>
12 14 <b>Metric Description:</b> <%= @metric_configuration.metric.description.nil? ? "No description available." : @metric_configuration.metric.description %>
13 15 </p>
  16 +
14 17 <p>
15 18 <b>Language:</b> <%= @metric_configuration.metric.languages.to_s %>
16 19 </p>
... ... @@ -27,5 +30,4 @@
27 30 <%= f.submit 'Save', class: 'btn btn-primary' %>
28 31 <%= link_to 'Back', mezuro_configuration_choose_metric_path(@metric_configuration.configuration_id), class: 'btn btn-default' %>
29 32 </div>
30   -
31 33 <% end %>
... ...
app/views/metric_configurations/show.html.erb
... ... @@ -75,7 +75,7 @@
75 75 <%= link_to 'Back', mezuro_configuration_path(@metric_configuration.configuration_id), class: 'btn btn-default' %>
76 76 <% if mezuro_configuration_owner? @metric_configuration.configuration_id %>
77 77 <%= link_to 'Destroy Metric Configuration', mezuro_configuration_metric_configuration_path(@metric_configuration.configuration_id,
78   - @metric_configuration.id), method: :delete, data: { confirm: 'Are you sure that you want to destroy this metric configuration?' },
  78 + @metric_configuration.id), method: :delete, data: { confirm: 'Are you sure that you want to destroy this Metric Configuration?' },
79 79 class: 'btn btn-danger' %>
80 80 <% end %>
81 81 </p>
... ...
app/views/mezuro_configurations/_form.html.erb
... ... @@ -11,7 +11,7 @@
11 11 </div>
12 12 <div class="help-container">
13 13 <p>
14   - Your configuration name!
  14 + The name of your Configuration.
15 15 </p>
16 16 </div>
17 17 </div>
... ... @@ -23,7 +23,7 @@
23 23 </div>
24 24 <div class="help-container">
25 25 <p>
26   - Your configuration description!
  26 + A short description of your Configuration.
27 27 </p>
28 28 </div>
29 29 </div>
... ...
app/views/mezuro_configurations/_metric_configurations.html.erb
... ... @@ -11,7 +11,7 @@
11 11 </td>
12 12 <td>
13 13 <%= link_to 'Destroy', mezuro_configuration_metric_configuration_path(@mezuro_configuration.id, metric_configuration.id),
14   - method: :delete, data: { confirm: 'Are you sure that you want to destroy this metric configuration?' },
  14 + method: :delete, data: { confirm: 'Are you sure that you want to destroy this Metric Configuration?' },
15 15 class: 'btn btn-danger' %>
16 16 </td>
17 17 </td>
... ...
app/views/mezuro_configurations/_no_metric_configurations.html.erb
1   -<tr>
  1 +<tr>
2 2 <% col_number = mezuro_configuration_owner?(@mezuro_configuration.id) ? 5 : 3 %>
3   - <td colspan="<%= col_number %>">There are no metric configurations yet!</td>
  3 + <td colspan="<%= col_number %>">There are no Metric Configurations yet!</td>
4 4 </tr>
5 5 \ No newline at end of file
... ...
app/views/mezuro_configurations/index.html.erb
... ... @@ -4,12 +4,12 @@
4 4  
5 5 <% if user_signed_in? %>
6 6 <p>
7   - <%= link_to 'New configuration', new_mezuro_configuration_path, class: 'btn btn-primary' %>
  7 + <%= link_to 'New Configuration', new_mezuro_configuration_path, class: 'btn btn-primary' %>
8 8 </p>
9 9 <%else%>
10 10 <p class="alert alert-warning alert-dismissable">
11 11 <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
12   - To create new configurations you must be logged in page.
  12 + You must be logged in to create new Configurations.
13 13 </p>
14 14 <% end %>
15 15  
... ...
app/views/mezuro_configurations/show.html.erb
... ... @@ -27,7 +27,7 @@
27 27 <% if @mezuro_configuration_metric_configurations.empty? %>
28 28 <%= render partial: 'no_metric_configurations' %>
29 29 <% else %>
30   - <%= render partial: 'metric_configurations', collection: @mezuro_configuration_metric_configurations, as: :metric_configuration %>
  30 + <%= render partial: 'metric_configurations', collection: @mezuro_configuration_metric_configurations, as: :metric_configuration %>
31 31 <% end %>
32 32 </tbody>
33 33 </table>
... ... @@ -37,6 +37,6 @@
37 37 <p>
38 38 <%= link_to 'Back', mezuro_configurations_path, class: 'btn btn-default' %>
39 39 <% if mezuro_configuration_owner? @mezuro_configuration.id %>
40   - <%= link_to 'Destroy Configuration', mezuro_configuration_path(@mezuro_configuration.id), method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger' %>
  40 + <%= link_to 'Destroy Configuration', mezuro_configuration_path(@mezuro_configuration.id), method: :delete, data: { confirm: 'Are you sure that you want to destroy this Configuration?' }, class: 'btn btn-danger' %>
41 41 <% end %>
42 42 </p>
... ...
app/views/mezuro_ranges/_form.html.erb
... ... @@ -11,7 +11,7 @@
11 11 </div>
12 12 <div class="help-container">
13 13 <p>
14   - Initial value where your range begins.
  14 + Value where your Range begins.
15 15 </p>
16 16 </div>
17 17 </div>
... ... @@ -24,7 +24,7 @@
24 24 </div>
25 25 <div class="help-container">
26 26 <p>
27   - Final value where your range ends.
  27 + Value where your Range ends.
28 28 </p>
29 29 </div>
30 30 </div>
... ... @@ -36,7 +36,7 @@
36 36 </div>
37 37 <div class="help-container">
38 38 <p>
39   - A short description about your range.
  39 + A short description of your Range.
40 40 </p>
41 41 </div>
42 42 </div>
... ... @@ -51,7 +51,7 @@
51 51 </div>
52 52 <div class="help-container">
53 53 <p>
54   - The reading that is associated with this range.
  54 + The Reading associated with this Range.
55 55 </p>
56 56 </div>
57 57 <% end %>
... ...
app/views/mezuro_ranges/_no_readings.html.erb
1 1 <div class="alert alert-error alert-dismissable">
2   - <h4 class="alert-heading">You must have readings in your associated reading group to create a new range.</h4>
  2 + <h4 class="alert-heading">You must have Readings within your associated Reading Group to create a new Range.</h4>
3 3 <p>
4 4 <% if reading_groups_owner? @reading_group_id %>
5   -
6 5 <br /><%= link_to 'Create New Reading', new_reading_group_reading_path(@reading_group_id), class: 'btn btn-danger' %>
7   -
8 6 <% else %>
9   -
10   - <p> Your metric configurations' reading group belongs to another user and you are not allowed to modify it.</p>
11   -
  7 + <p> Your Metric Configurations' Reading Group belongs to another user and you are not allowed to modify it.</p>
12 8 <% end %>
13 9 </p>
14   -
15 10 </div>
... ...
app/views/modules/_metric_result.html.erb
1 1 <% metric_configuration_snapshot = metric_result.metric_configuration_snapshot %>
2 2 <% unless metric_configuration_snapshot.range_snapshot.nil? %>
3   - <% range_snapshot = find_range_snapshot(metric_result)
  3 + <% range_snapshot = find_range_snapshot(metric_result)
4 4 metric_name = metric_configuration_snapshot.metric.name
5 5 %>
6 6 <tr>
7   - <td><%= link_to "<i class='icon-align-left'></i> #{metric_name}".html_safe, "",
  7 + <td><%= link_to "<i class='icon-align-left'></i> #{metric_name}".html_safe, "",
8 8 onclick: "new Module.Graphic('container#{metric_result.id}', '#{metric_name}', '#{module_result.id}')",
9 9 id: "metric_#{module_result.id}",
10 10 remote: true %>
... ... @@ -17,7 +17,7 @@
17 17 <td colspan="4">
18 18 <span id="loader_container<%= metric_result.id %>"><%= image_tag 'loader.gif' %> Loading data. Please, wait.</span>
19 19 <canvas id="container<%= metric_result.id %>" class="graphic_container" style="display: none"></canvas>
20   - <span id="container<%= metric_result.id %>" style="display: none">There is just a point and it should not be printed into a chart.</span>
  20 + <span id="container<%= metric_result.id %>" style="display: none">There is just a point and it will not be printed into a chart.</span>
21 21 </td>
22 22 </tr>
23 23 <% end %>
24 24 \ No newline at end of file
... ...
app/views/projects/_form.html.erb
... ... @@ -10,7 +10,7 @@
10 10 </div>
11 11 <div class="help-container">
12 12 <p>
13   - Your project name!
  13 + The name of your Project.
14 14 </p>
15 15 </div>
16 16 </div>
... ... @@ -22,7 +22,7 @@
22 22 </div>
23 23 <div class="help-container">
24 24 <p>
25   - Tell us what your project will contain!
  25 + A short description of your Project.
26 26 </p>
27 27 </div>
28 28 </div>
... ...
app/views/projects/index.html.erb
... ... @@ -9,7 +9,7 @@
9 9 <%else%>
10 10 <p class="alert alert-warning alert-dismissable">
11 11 <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
12   - To create new projects you must be logged in page.
  12 + You must be logged in to create new Projects.
13 13 </p>
14 14 <% end %>
15 15  
... ...
app/views/projects/show.html.erb
... ... @@ -25,11 +25,11 @@
25 25  
26 26 <tbody>
27 27 <% if @project_repositories.size == 0 %>
28   - <tr>
  28 + <tr>
29 29 <% col_number = project_owner?(@project.id) ? 4 : 3 %>
30 30 <td colspan="<%= col_number %>">There are no repositories yet!</td>
31 31 </tr>
32   - <% end %>
  32 + <% end %>
33 33 <% @project_repositories.each do |repository| %>
34 34 <tr>
35 35 <td><%= repository.name %></td>
... ... @@ -52,6 +52,6 @@
52 52  
53 53 <p>
54 54 <% if project_owner? @project.id %>
55   - <%= link_to 'Destroy project', project_path(@project.id), method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger' %>
  55 + <%= link_to 'Destroy Project', project_path(@project.id), method: :delete, data: { confirm: 'Are you sure that you want to destroy this Project?' }, class: 'btn btn-danger' %>
56 56 <% end %>
57 57 </p>
... ...
app/views/reading_groups/_form.html.erb
... ... @@ -11,7 +11,7 @@
11 11 </div>
12 12 <div class="help-container">
13 13 <p>
14   - Your reading group name!
  14 + The name of your Reading Group.
15 15 </p>
16 16 </div>
17 17 </div>
... ... @@ -23,11 +23,10 @@
23 23 </div>
24 24 <div class="help-container">
25 25 <p>
26   - Your reading group description!
  26 + A short description of your Reading Group.
27 27 </p>
28 28 </div>
29 29 </div>
30   -
31 30 </div>
32 31 </div>
33 32  
... ...
app/views/reading_groups/_no_readings.html.erb
1   -<tr>
  1 +<tr>
2 2 <% col_number = reading_groups_owner?(@reading_group.id) ? 5 : 3 %>
3   - <td colspan="<%= col_number %>">There are no readings yet!</td>
  3 + <td colspan="<%= col_number %>">There are no Readings yet!</td>
4 4 </tr>
5 5 \ No newline at end of file
... ...
app/views/reading_groups/_reading.html.erb
... ... @@ -7,7 +7,7 @@
7 7 <%= link_to 'Edit', edit_reading_group_reading_path(@reading_group.id, reading.id), class: 'btn btn-info' %>
8 8 </td>
9 9 <td>
10   - <%= link_to 'Destroy', reading_group_reading_path(@reading_group.id, reading.id), method: :delete, data: { confirm: 'Are you sure that you want to destroy this reading?' }, class: 'btn btn-danger' %>
  10 + <%= link_to 'Destroy', reading_group_reading_path(@reading_group.id, reading.id), method: :delete, data: { confirm: 'Are you sure that you want to destroy this Reading?' }, class: 'btn btn-danger' %>
11 11 </td>
12 12 </td>
13 13 <% end %>
... ...
app/views/reading_groups/index.html.erb
... ... @@ -9,7 +9,7 @@
9 9 <%else%>
10 10 <p class="alert alert-warning alert-dismissable">
11 11 <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
12   - To create new reading groups you must be logged in page.
  12 + You must be logged in to create new Reading Groups.
13 13 </p>
14 14 <% end %>
15 15  
... ...
app/views/reading_groups/show.html.erb
... ... @@ -27,7 +27,7 @@
27 27 <% if reading_group_readings.size == 0 %>
28 28 <%= render partial: 'no_readings' %>
29 29 <% else %>
30   - <%= render partial: 'reading', collection: reading_group_readings, as: :reading %>
  30 + <%= render partial: 'reading', collection: reading_group_readings, as: :reading %>
31 31 <% end %>
32 32 </tbody>
33 33 </table>
... ... @@ -36,6 +36,6 @@
36 36  
37 37 <p>
38 38 <% if reading_groups_owner? @reading_group.id %>
39   - <%= link_to 'Destroy Reading Group', reading_group_path(@reading_group.id), method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger' %>
  39 + <%= link_to 'Destroy Reading Group', reading_group_path(@reading_group.id), method: :delete, data: { confirm: 'Are you sure that you want to destroy this Reading Group?' }, class: 'btn btn-danger' %>
40 40 <% end %>
41 41 </p>
... ...
app/views/readings/_form.html.erb
... ... @@ -10,10 +10,10 @@
10 10 </div>
11 11 <div class="help-container">
12 12 <p>
13   - Give a name for how good is the current reading.
  13 + Name the quality of this reading.
14 14 </p>
15 15 <p>
16   - Example values: terrible, bad, regular, good, great, etc.
  16 + Example values: terrible, bad, regular, good, great etc.
17 17 </p>
18 18 </div>
19 19 </div>
... ... @@ -25,10 +25,10 @@
25 25 </div>
26 26 <div class="help-container">
27 27 <p>
28   - Your software will be given a grade for how good it is performing in each metric, here you define this grade.
  28 + Your software will be given a grade for its performance in each metric. Define this grade.
29 29 </p>
30 30 <p>
31   - Example values: 0, 1, 2, 3, 4, etc.
  31 + Example values: 0, 1, 2, 3, 4 etc.
32 32 </p>
33 33 </div>
34 34 </div>
... ... @@ -43,15 +43,14 @@
43 43 </div>
44 44 <div class="help-container">
45 45 <p>
46   - The color that represents your reading. Use the color picker to choose! (Or type it in hexadecimal)
  46 + The color that represents your Reading. You can choose one by typing its hexadecimal or using the color picker.
47 47 </p>
48 48 <p>
49   - Example values: 000000, 00ff00...
  49 + Example values: 000000, 00ff00 etc
50 50 </p>
51 51 </div>
52 52 </div>
53 53  
54   -
55 54 </div>
56 55 </div>
57 56  
... ...
app/views/repositories/_form.html.erb
... ... @@ -11,7 +11,7 @@
11 11 </div>
12 12 <div class="help-container">
13 13 <p>
14   - Your repository name!
  14 + The name of your Repository.
15 15 </p>
16 16 </div>
17 17 </div>
... ... @@ -23,7 +23,7 @@
23 23 </div>
24 24 <div class="help-container">
25 25 <p>
26   - Tell us what this repository contains!
  26 + A short description of your Repository.
27 27 </p>
28 28 </div>
29 29 </div>
... ... @@ -31,11 +31,11 @@
31 31 <div class="form-row">
32 32 <div class="field-container">
33 33 <%= f.label :license, 'License', class: 'control-label' %>
34   - <%= f.select( :license, license_options, class: 'text-area' ) %>
  34 + <%= f.select( :license, license_options, class: 'text-area' ) %>
35 35 </div>
36 36 <div class="help-container">
37 37 <p>
38   - How is this software licensed?
  38 + The software license.
39 39 </p>
40 40 </div>
41 41 </div>
... ... @@ -47,7 +47,7 @@
47 47 </div>
48 48 <div class="help-container">
49 49 <p>
50   - Which version control system does the software use?
  50 + The version control system the software use.
51 51 </p>
52 52 </div>
53 53 </div>
... ... @@ -59,7 +59,7 @@
59 59 </div>
60 60 <div class="help-container">
61 61 <p>
62   - Tell us the URL where the repository can be found.
  62 + The URL where the Repository is located.
63 63 </p>
64 64 </div>
65 65 </div>
... ... @@ -71,7 +71,7 @@
71 71 </div>
72 72 <div class="help-container">
73 73 <p>
74   - Select how often the project will be reanalyzed.
  74 + Select how often the Project will be reanalyzed.
75 75 </p>
76 76 </div>
77 77 </div>
... ... @@ -84,7 +84,7 @@
84 84 </div>
85 85 <div class="help-container">
86 86 <p>
87   - A configuration defines all the metrics to be analyzed in the source code. Choose your weapon.
  87 + A Configuration defines all the metrics to be analyzed in the source code. Choose your weapon!
88 88 </p>
89 89 </div>
90 90 </div>
... ...
app/views/repositories/_unstarted_processing.html.erb
1   -<p>This Repository has no processings yet. Please, wait an instant as we start it!</p>
  1 +<p>This Repository has no processings yet. Please, wait an instant as we start it.</p>
2 2  
3 3 <div id="processing_information"><%= image_tag 'loader.gif' %> Loading data. Please, wait.</div>
4 4 \ No newline at end of file
... ...
app/views/repositories/show.html.erb
... ... @@ -83,6 +83,5 @@
83 83 <%= link_to 'Back', project_path(@repository.project_id), class: 'btn btn-default' %>
84 84 <% if project_owner? @repository.project_id %>
85 85 <%= link_to 'Reprocess', project_repository_process_path(@repository.project_id, @repository.id), class: 'btn btn-info' %>
86   - <%= link_to 'Destroy', project_repository_path(@repository.project_id, @repository.id), method: :delete, data: { confirm: 'Are you sure you want to DESTROY this repository?' }, class: 'btn btn-danger' %>
  86 + <%= link_to 'Destroy', project_repository_path(@repository.project_id, @repository.id), method: :delete, data: { confirm: 'Are you sure that you want to destroy this Repository?' }, class: 'btn btn-danger' %>
87 87 <% end %>
88   -
... ...
app/views/shared/_form_errors.html.erb
1 1 <% if object.errors.any? || object.kalibro_errors.any? %>
2 2 <div id="error_explanation">
3   - <h2><%= pluralize(object.errors.count + object.kalibro_errors.count, "error") %> prohibited this <%= object.class.to_s %> from getting saved:</h2>
  3 + <h2><%= pluralize(object.errors.count + object.kalibro_errors.count, "error") %> prohibited this <%= object.class.to_s %> from being saved:</h2>
4 4  
5 5 <ul>
6 6 <% object.errors.full_messages.each do |msg| %>
... ...
app/views/shared/_short_about.html.erb
1 1 <li class="nav-header">About Mezuro</li>
2 2 <li>
3   - <small> Mezuro project aims provide a platform to compare projects and metric techniques, teach how to use metrics through configurations, analyze code, avoid technical debts, and disseminate code metrics usage and understanding.</small>
  3 + <small> The Mezuro project attempts to provide a platform to compare projects and metric techniques, teaching how to use metrics through configurations, code analysis, avoid technical debts, and disseminate code metrics usage and understanding.</small>
4 4 <li>
5 5 <li>
6   - <small>Here you can try the front-end, which we call Prezento. It interacs with the <%= link_to 'Kalibro Web Service', 'https://github.com/mezuro/kalibro', target: '_blank' %> and <%= link_to 'Kalibro Processor', 'https://github.com/mezuro/kalibro_processr', target: '_blank' %>. It is intended to be a service where you can evaluate your code quality and, if you want, define wich set of metrics you want to use.</small>
  6 + <small>Here you can try the front-end, which we call Prezento. It interacts with the <%= link_to 'Kalibro Web Service', 'https://github.com/mezuro/kalibro', target: '_blank' %> and <%= link_to 'Kalibro Processor', 'https://github.com/mezuro/kalibro_processr', target: '_blank' %>. It is intended to be a service where you can evaluate your code quality and, if you want, define which set of metrics you want to use.</small>
7 7 </li>
8 8 \ No newline at end of file
... ...