]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4136 Fixed missing l10n labels
authorJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>
Thu, 20 Jun 2013 13:40:33 +0000 (15:40 +0200)
committerJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>
Thu, 20 Jun 2013 13:40:33 +0000 (15:40 +0200)
plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties
sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_create_form.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_delete_form.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_edit_form.html.erb

index f47c3cfb744405b9782a49b9e314bbf9da90aa7e..7528990291e44c7614fcb08d01b818ea5b170600 100644 (file)
@@ -646,7 +646,8 @@ dashboard.no_dashboard=No dashboard
 dashboard.do_you_want_to_delete_dashboard=Do you want to delete this dashboard?
 dashboard.available_dashboards=Available Dashboards
 dashboard.shared_dashboards=Shared Dashboards
-dashboard.create_dashboard=New dashboard
+dashboard.new_dashboard=New dashboard
+dashboard.create_dashboard=Create dashboard
 dashboard.create_project_dashboard=Create project dashboard
 dashboard.create_global_dashboard=Create global dashboard
 dashboard.edit_dashboard=Edit dashboard
@@ -661,6 +662,8 @@ dashboard.global_dashboards.description=These dashboards are displayed to anonym
 dashboard.project_dashboards.description=These dashboards are displayed to anonymous users or users who have not customized their dashboards.
 dashboard.shared_dashboards.description=These dashboards can be added to default dashboards.
 dashboard.username.default=[SonarQube]
+dashboard.delete_confirm_title=Delete dashboard
+dashboard.delete_dashboard=Delete dashboard
 
 
 #------------------------------------------------------------------------------
@@ -2200,7 +2203,7 @@ global_role.admin.desc=Ability to perform all administration functions for the i
 global_role.profileadmin=Quality Profile Administration
 global_role.profileadmin.desc=Ability to perform any action on the quality profiles.
 global_role.sharedashboard=Dashboard Sharing
-global_role.sharedashboard.desc=Ability to share eligible dashboards.
+global_role.sharedashboard.desc=Ability to share dashboards that any user will be able to follow.
 
 
 #------------------------------------------------------------------------------
index 13606eac007ee24ef1cdc098b5ad97048b1c784e..5cee02f7eafe62b6d67154f430ca72127c774f62 100644 (file)
@@ -6,12 +6,12 @@
   <% end %>
   <fieldset>
     <div class="modal-head">
-      <h2><%= message('dashboard.create_dashboard') -%></h2>
+      <h2><%= message('dashboard.new_dashboard') -%></h2>
     </div>
     <div class="modal-body">
       <% if @dashboard %>
-        <% @dashboard.errors.each do |attr, msg| %>
-          <p class="error"><%= h "#{attr} #{msg}" -%></p>
+        <% @dashboard.errors.full_messages.each do |msg| %>
+          <p class="error"><%= h msg -%></p>
         <% end %>
       <% end %>
       <div class="modal-field">
@@ -30,7 +30,7 @@
       <% end %>
     </div>
     <div class="modal-foot">
-      <input type="submit" value="<%= h message('save') -%>" id="save-submit"/>
+      <input type="submit" value="<%= h message('dashboard.create_dashboard') -%>" id="save-submit"/>
       <a href="#" onclick="return closeModalWindow()" id="save-cancel"><%= h message('cancel') -%></a>
     </div>
   </fieldset>
index 87eb2f68ea2971bf8af6c61a0d38c9a22174bfa6..cdc4ea42cc5fc37caac81132f37accd3d23531e0 100644 (file)
@@ -5,13 +5,16 @@
       <h2><%= message 'dashboard.delete_confirm_title' -%></h2>
     </div>
     <div class="modal-body">
+      <% @dashboard.errors.full_messages.each do |msg| %>
+        <p class="error"><%= h msg -%></p>
+      <% end %>
       <div class="info">
         <img src="<%= ApplicationController.root_context -%>/images/information.png" style="vertical-align: text-bottom"/>
-        <%= message 'dashboard.delete_confirm_message' -%>
+        <%= message 'dashboard.do_you_want_to_delete_dashboard' -%>
       </div>
     </div>
     <div class="modal-foot">
-      <input type="submit" value="<%= message 'dashboard.delete_confirm_button' -%>" id="confirm-submit"/>
+      <input type="submit" value="<%= message 'dashboard.delete_dashboard' -%>" id="confirm-submit"/>
       <a href="#" onclick="return closeModalWindow()" id="confirm-cancel"><%= h message('cancel') -%></a>
     </div>
   </fieldset>
index ee8aab6036346c62e7fe441ed091df1b82edf63b..a3312878ae5fe77314eccc09284b166ea82e59de 100644 (file)
@@ -10,8 +10,8 @@
       <h2><%= message('dashboard.edit_dashboard') -%></h2>
     </div>
     <div class="modal-body">
-      <% @dashboard.errors.each do |attr, msg| %>
-        <p class="error"><%= h "#{attr} #{msg}" -%></p>
+      <% @dashboard.errors.full_messages.each do |msg| %>
+        <p class="error"><%= h msg -%></p>
       <% end %>
       <div class="modal-field">
         <label for="name"><%= h message('name') -%> <em class="mandatory">*</em></label>
@@ -37,7 +37,7 @@
       <% end %>
     </div>
     <div class="modal-foot">
-      <input type="submit" value="<%= h message('save') -%>" id="save-submit"/>
+      <input type="submit" value="<%= h message('dashboard.update_dashboard') -%>" id="save-submit"/>
       <a href="#" onclick="return closeModalWindow()" id="save-cancel"><%= h message('cancel') -%></a>
     </div>
   </fieldset>