Commit d70f717984eea70345abe97055b09b6bb780902e
Committed by
Rafael Manzo
1 parent
090f0634
Exists in
colab
and in
4 other branches
Translate modules views
Showing
6 changed files
with
15 additions
and
5 deletions
Show diff stats
app/views/modules/_metric_result.html.erb
... | ... | @@ -15,9 +15,9 @@ |
15 | 15 | </tr> |
16 | 16 | <tr id="container<%= metric_result.id %>" style="display: none"> |
17 | 17 | <td colspan="4"> |
18 | - <span id="loader_container<%= metric_result.id %>"><%= image_tag 'loader.gif' %> Loading data. Please, wait.</span> | |
18 | + <span id="loader_container<%= metric_result.id %>"><%= image_tag 'loader.gif' %> <%= t('loading_data') %></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 only one point and it will not be printed into a chart.</span> | |
20 | + <span id="container<%= metric_result.id %>" style="display: none"><%= t('only_point_printed_chart') %></span> | |
21 | 21 | </td> |
22 | 22 | </tr> |
23 | 23 | <% end %> | ... | ... |
app/views/modules/_metric_results.html.erb
app/views/modules/_module_result.html.erb
... | ... | @@ -5,7 +5,7 @@ |
5 | 5 | <% else %> |
6 | 6 | <i class="icon-file"></i> |
7 | 7 | <% end %> |
8 | - <%= link_to format_module_name(module_result.kalibro_module.name), "#module_#{module_result.id}", onClick: "Module.Tree.load('#{escape_javascript(image_tag 'loader.gif')} Loading data. Please, wait.', #{module_result.id});" %> | |
8 | + <%= link_to format_module_name(module_result.kalibro_module.name), "#module_#{module_result.id}", onClick: "Module.Tree.load('#{escape_javascript(image_tag 'loader.gif')} #{escape_javascript(t('loading_data'))}', #{module_result.id});" %> | |
9 | 9 | </td> |
10 | 10 | <td><%= module_result.kalibro_module.granularity %></td> |
11 | 11 | <td><%= format_grade(module_result.grade) %></td> | ... | ... |
app/views/modules/_module_tree.html.erb
... | ... | @@ -11,7 +11,7 @@ |
11 | 11 | <%= format_grade(@root_module_result.grade) %> |
12 | 12 | </p> |
13 | 13 | <% unless @root_module_result.parent_id.nil? %> |
14 | - <p id="parent"><i class="icon-arrow-up"></i><%= link_to '../', '#parent', onClick: "Module.Tree.load('#{escape_javascript(image_tag 'loader.gif')} Loading data. Please, wait.', #{@root_module_result.parent_id});" %></p> | |
14 | + <p id="parent"><i class="icon-arrow-up"></i><%= link_to '../', '#parent', onClick: "Module.Tree.load('#{escape_javascript(image_tag 'loader.gif')} #{escape_javascript(t('loading_data'))}', #{@root_module_result.parent_id});" %></p> | |
15 | 15 | <% end %> |
16 | 16 | |
17 | 17 | <% cache("#{@root_module_result.id}_tree") do %> | ... | ... |