diff options
author | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2012-12-18 15:55:29 +0100 |
---|---|---|
committer | Fabrice Bellingard <fabrice.bellingard@sonarsource.com> | 2012-12-18 15:55:29 +0100 |
commit | 4bb34249f61a09c9ad29b0ba0df0ef8fc7315c17 (patch) | |
tree | 278f1a91fa4479dd2c2cd7fb9309d9ef18f98eac | |
parent | 7998f3c17e9d7e4cc180f6eabc7c231cb9bac3d3 (diff) | |
download | sonarqube-4bb34249f61a09c9ad29b0ba0df0ef8fc7315c17.tar.gz sonarqube-4bb34249f61a09c9ad29b0ba0df0ef8fc7315c17.zip |
Add missing translations.
3 files changed, 5 insertions, 4 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties index db48a0e27f9..c980f85eb5d 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties @@ -414,6 +414,7 @@ measure_filter.criteria.age.days=days measure_filter.criteria.components_of=Components of measure_filter.criteria.components_of_project=Components of project measure_filter.new_search=New search +measure_filter.favourite_filters=Favourite Filters measure_filter.more_criteria=+ More Criteria measure_filter.languages=Languages measure_filter.col.date=Date diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/measures/_favourites.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/measures/_favourites.html.erb index fa6492a1e3b..77124eb9e98 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/measures/_favourites.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/measures/_favourites.html.erb @@ -1,6 +1,6 @@ <div id="sidebar-favourites"> <% if logged_in? %> - <li class="sidebar-title">Favourite Filters</li> + <li class="sidebar-title"><%= message('measure_filter.favourite_filters') -%></li> <% current_user.favourited_measure_filters.each do |filter| %> <li <%= "class='active'" if @filter && filter.id==@filter.id -%>> <a href="<%= ApplicationController.root_context -%>/measures/filter/<%= filter.id -%>"><%= h filter.name -%></a> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/measures/_sidebar.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/measures/_sidebar.html.erb index df581e6d3a3..210e58bdb2c 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/measures/_sidebar.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/measures/_sidebar.html.erb @@ -84,7 +84,7 @@ end %> <li class="sidebar-title"> - <%= @filter.name.present? ? h(@filter.name) : 'New Search' -%> + <%= @filter.name.present? ? h(@filter.name) : message('measure_filter.new_search') -%> </li> <li class="marginbottom5"> <% @@ -124,8 +124,8 @@ <% condition_metrics = Metric.all.select { |m| m.numeric? && !m.hidden } %> <% for i in 1..3 %> <li id="criteria-metric-<%= i -%>" style="<%= "display: none" if hidden_condition_indexes.include?(i) -%>" class="marginbottom5"> - <%= metric_select_tag "c#{i}_metric", condition_metrics, :allow_empty => true, :selected_key => @filter.criteria("c#{i}_metric"), :width => '100%', :placeholder => 'Metric' -%> - <%= select_tag "c#{i}_period", options_for_select([['Value', ''], [Api::Utils.period_label(1), '1'], [Api::Utils.period_label(2), '2'], [Api::Utils.period_label(3), '3']], @filter.criteria("c#{i}_period")) -%> + <%= metric_select_tag "c#{i}_metric", condition_metrics, :allow_empty => true, :selected_key => @filter.criteria("c#{i}_metric"), :width => '100%', :placeholder => message('measure_filter.criteria.metric') -%> + <%= select_tag "c#{i}_period", options_for_select([[message('value'), ''], [Api::Utils.period_label(1), '1'], [Api::Utils.period_label(2), '2'], [Api::Utils.period_label(3), '3']], @filter.criteria("c#{i}_period")) -%> <br> <%= select_tag "c#{i}_op", options_for_select([['=', 'eq'], ['<', 'lt'], ['<=', 'lte'], ['>', 'gt'], ['>=', 'gte']], @filter.criteria("c#{i}_op")) -%> <input type="text" size="5" name="c<%= i -%>_val" value="<%= h @filter.criteria("c#{i}_val") -%>"> |