]> source.dussan.org Git - redmine.git/commitdiff
notice messages translation
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 30 Jul 2006 10:47:02 +0000 (10:47 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 30 Jul 2006 10:47:02 +0000 (10:47 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@17 e93f8b46-1217-0410-a6f0-8f06a7374b81

24 files changed:
redmine/app/controllers/account_controller.rb
redmine/app/controllers/admin_controller.rb
redmine/app/controllers/application.rb
redmine/app/controllers/custom_fields_controller.rb
redmine/app/controllers/documents_controller.rb
redmine/app/controllers/issue_categories_controller.rb
redmine/app/controllers/issue_statuses_controller.rb
redmine/app/controllers/issues_controller.rb
redmine/app/controllers/members_controller.rb
redmine/app/controllers/news_controller.rb
redmine/app/controllers/projects_controller.rb
redmine/app/controllers/roles_controller.rb
redmine/app/controllers/trackers_controller.rb
redmine/app/controllers/users_controller.rb
redmine/app/controllers/versions_controller.rb
redmine/app/helpers/application_helper.rb
redmine/app/helpers/custom_fields_helper.rb
redmine/app/views/account/my_account.rhtml
redmine/app/views/admin/mail_options.rhtml
redmine/app/views/projects/show.rhtml
redmine/lang/es.yml
redmine/public/stylesheets/application.css
redmine/test/integration/account_test.rb
redmine/test/integration/admin_test.rb

index bc65622b834c3c601d5d01d41d790cd17a4192f5..22ac8609a6d594a2d0155932291acd05e659e4e2 100644 (file)
@@ -72,14 +72,19 @@ class AccountController < ApplicationController
   # Change logged in user's password\r
   def change_password\r
     @user = self.logged_in_user\r
-    flash.now[:notice] = l(:notice_can_t_change_password) and render :action => 'my_account' and return if @user.auth_source_id\r
+    flash[:notice] = l(:notice_can_t_change_password) and redirect_to :action => 'my_account' and return if @user.auth_source_id\r
     if @user.check_password?(@params[:password])\r
       @user.password, @user.password_confirmation = params[:new_password], params[:new_password_confirmation]\r
-      flash.now[:notice] = l(:notice_account_password_updated) if @user.save\r
+      if @user.save\r
+        flash[:notice] = l(:notice_account_password_updated)\r
+      else\r
+        render :action => 'my_account'\r
+        return\r
+      end\r
     else\r
-      flash.now[:notice] = l(:notice_account_wrong_password)\r
+      flash[:notice] = l(:notice_account_wrong_password)\r
     end\r
-    render :action => 'my_account'\r
+    redirect_to :action => 'my_account'\r
   end\r
   \r
   # Enable user to choose a new password\r
index 68d08137d519eaab1f769229f4a03d40eed9888f..4b144e8d560bb7bdbebebbd01f64ba215347a2a7 100644 (file)
@@ -44,7 +44,7 @@ class AdminController < ApplicationController
         a.mail_enabled = (params[:action_ids] || []).include? a.id.to_s \r
         a.save\r
       }\r
-      flash[:notice] = "Mail options were successfully updated."\r
+      flash.now[:notice] = l(:notice_successful_update)\r
     end\r
   end\r
   \r
index 8acbb0926997030acfea7371fff432dfca1b04b8..3061359b2f519f75a043532a5804ba9f6b7a818b 100644 (file)
@@ -55,7 +55,7 @@ class ApplicationController < ActionController::Base
   def require_login\r
     unless self.logged_in_user\r
       store_location\r
-      redirect_to(:controller => "account", :action => "login")\r
+      redirect_to :controller => "account", :action => "login"\r
       return false\r
     end\r
     true\r
@@ -64,8 +64,7 @@ class ApplicationController < ActionController::Base
   def require_admin\r
     return unless require_login\r
     unless self.logged_in_user.admin?\r
-      flash[:notice] = "Acces denied"\r
-      redirect_to:controller => ''\r
+      render :nothing => true, :status => 403\r
       return false\r
     end\r
     true\r
@@ -86,8 +85,7 @@ class ApplicationController < ActionController::Base
     if @user_membership and Permission.allowed_to_role( "%s/%s" % [ @params[:controller], @params[:action] ], @user_membership.role_id )    \r
       return true              \r
     end                \r
-    flash[:notice] = "Acces denied"\r
-    redirect_to :controller => ''\r
+    render :nothing => true, :status => 403\r
     false\r
   end\r
        \r
index 57430743d809dd1ad93512553cb3be1e41960e1d..d0ffddf7f6a2f44a8e0cd16d9396bdedbe365505 100644 (file)
@@ -42,6 +42,7 @@ class CustomFieldsController < ApplicationController
         return\r
     end  \r
     if request.post? and @custom_field.save\r
+      flash[:notice] = l(:notice_successful_create)\r
       redirect_to :action => 'list'\r
     end\r
     @trackers = Tracker.find(:all)\r
@@ -53,7 +54,7 @@ class CustomFieldsController < ApplicationController
       if @custom_field.is_a? IssueCustomField\r
         @custom_field.trackers = params[:tracker_ids] ? Tracker.find(params[:tracker_ids]) : []\r
       end\r
-      flash[:notice] = 'Custom field was successfully updated.'\r
+      flash[:notice] = l(:notice_successful_update)\r
       redirect_to :action => 'list'\r
     end\r
     @trackers = Tracker.find(:all)\r
index cc30f8e1eafa25e4162cf04a1c9ba6ad90114f18..e8c8e2d03575c49e59d7db71fab955354d306808 100644 (file)
@@ -25,7 +25,7 @@ class DocumentsController < ApplicationController
   def edit\r
     @categories = Enumeration::get_values('DCAT')
     if request.post? and @document.update_attributes(params[:document])
-      flash[:notice] = 'Document was successfully updated.'
+      flash[:notice] = l(:notice_successful_update)
       redirect_to :action => 'show', :id => @document
     end
   end  \r
index cf0f9dc06ac8e65580bee50dcff856e99d78e7eb..965a15e780bdd7eb8b1b8b8809658540fd20638d 100644 (file)
@@ -21,7 +21,7 @@ class IssueCategoriesController < ApplicationController
        \r
   def edit
     if request.post? and @category.update_attributes(params[:category])
-      flash[:notice] = 'Issue category was successfully updated.'
+      flash[:notice] = l(:notice_successful_update)
       redirect_to :controller => 'projects', :action => 'settings', :id => @project
     end
   end
index 3de8158c619dc9199de7b099187a3680eeab803c..be577ef19f95d02357f8e1ca3898417812814e6c 100644 (file)
@@ -35,7 +35,7 @@ class IssueStatusesController < ApplicationController
   def create
     @issue_status = IssueStatus.new(params[:issue_status])
     if @issue_status.save
-      flash[:notice] = 'IssueStatus was successfully created.'
+      flash[:notice] = l(:notice_successful_create)
       redirect_to :action => 'list'
     else
       render :action => 'new'
@@ -49,7 +49,7 @@ class IssueStatusesController < ApplicationController
   def update
     @issue_status = IssueStatus.find(params[:id])
     if @issue_status.update_attributes(params[:issue_status])
-      flash[:notice] = 'IssueStatus was successfully updated.'
+      flash[:notice] = l(:notice_successful_update)
       redirect_to :action => 'list'
     else
       render :action => 'edit'
index fa97e7c1c355e5737ffbbd5d3dace735903912e3..07f2c773682b989008f4bb19cbcfcc761bcc9aa5 100644 (file)
@@ -38,7 +38,7 @@ class IssuesController < ApplicationController
                        @issue.custom_values = @custom_values\r
                        @issue.attributes = params[:issue]\r
                        if @issue.save
-                               flash[:notice] = 'Issue was successfully updated.'\r
+                               flash[:notice] = l(:notice_successful_update)\r
                                redirect_to :action => 'show', :id => @issue
                        end\r
                end             
@@ -56,7 +56,7 @@ class IssuesController < ApplicationController
                                @issue.fixed_version_id = (params[:issue][:fixed_version_id])\r
                                @issue.assigned_to_id = (params[:issue][:assigned_to_id])       \r
                                if @issue.save\r
-                                       flash[:notice] = 'Issue was successfully updated.'\r
+                                       flash[:notice] = l(:notice_successful_update)\r
                                        Mailer.deliver_issue_change_status(@issue) if Permission.find_by_controller_and_action(@params[:controller], @params[:action]).mail_enabled?\r
                                        redirect_to :action => 'show', :id => @issue\r
                                end
index ac6b08d26fece45d0c5eb742f3eaf6a2ad220b7f..be3f717d1972e1efb1aca3cd478e71af33bd03ed 100644 (file)
@@ -21,14 +21,14 @@ class MembersController < ApplicationController
 
        def edit
                if request.post? and @member.update_attributes(params[:member])
-                       flash[:notice] = 'Member was successfully updated.'
+                       flash[:notice] = l(:notice_successful_update)
                        redirect_to :controller => 'projects', :action => 'settings', :id => @project\r
                end
        end
 
        def destroy
                @member.destroy\r
-    flash[:notice] = 'Member was successfully removed.'
+    flash[:notice] = l(:notice_successful_delete)
                redirect_to :controller => 'projects', :action => 'settings', :id => @project
        end\r
 \r
index 065336f26418aa064e2a3ca600d23221d8d1a1ed..b50b59dc023c56f80f3815fe093b695b8c2e7706 100644 (file)
@@ -24,7 +24,7 @@ class NewsController < ApplicationController
 
   def edit
     if request.post? and @news.update_attributes(params[:news])
-      flash[:notice] = 'News was successfully updated.'
+      flash[:notice] = l(:notice_successful_update)
       redirect_to :action => 'show', :id => @news
     end
   end
index 3d45f7268f7f55c7f5df1624de2e8a976553c8f7..0f8f19422a86dbcdee8bad3dc8054cf0e2a00f7b 100644 (file)
@@ -58,7 +58,7 @@ class ProjectsController < ApplicationController
       @custom_values = ProjectCustomField.find(:all).collect { |x| CustomValue.new(:custom_field => x, :customized => @project, :value => params["custom_fields"][x.id.to_s]) }\r
       @project.custom_values = @custom_values                  \r
       if @project.save
-        flash[:notice] = 'Project was successfully created.'
+        flash[:notice] = l(:notice_successful_create)
         redirect_to :controller => 'admin', :action => 'projects'\r
          end           \r
     end        \r
@@ -92,7 +92,7 @@ class ProjectsController < ApplicationController
         @project.custom_values = @custom_values\r
       end\r
       if @project.update_attributes(params[:project])
-        flash[:notice] = 'Project was successfully updated.'
+        flash[:notice] = l(:notice_successful_update)
         redirect_to :action => 'settings', :id => @project\r
       else\r
         settings\r
@@ -114,6 +114,7 @@ class ProjectsController < ApplicationController
     if request.post?\r
       @issue_category = @project.issue_categories.build(params[:issue_category])\r
       if @issue_category.save\r
+        flash[:notice] = l(:notice_successful_create)\r
         redirect_to :action => 'settings', :id => @project\r
       else\r
         settings\r
@@ -126,6 +127,7 @@ class ProjectsController < ApplicationController
   def add_version\r
        @version = @project.versions.build(params[:version])\r
        if request.post? and @version.save\r
+         flash[:notice] = l(:notice_successful_create)\r
       redirect_to :action => 'settings', :id => @project\r
        end\r
   end\r
@@ -135,7 +137,7 @@ class ProjectsController < ApplicationController
     @member = @project.members.build(params[:member])\r
        if request.post?\r
       if @member.save\r
-        flash[:notice] = 'Member was successfully added.'\r
+        flash[:notice] = l(:notice_successful_create)\r
         redirect_to :action => 'settings', :id => @project\r
       else             \r
         settings\r
@@ -160,6 +162,7 @@ class ProjectsController < ApplicationController
         @attachment.author_id = self.logged_in_user.id if self.logged_in_user\r
       end      \r
       if @document.save\r
+        flash[:notice] = l(:notice_successful_create)\r
         redirect_to :action => 'list_documents', :id => @project\r
       end              \r
     end\r
@@ -188,7 +191,7 @@ class ProjectsController < ApplicationController
       @custom_values = @project.custom_fields_for_issues(@tracker).collect { |x| CustomValue.new(:custom_field => x, :customized => @issue, :value => params["custom_fields"][x.id.to_s]) }\r
       @issue.custom_values = @custom_values                    \r
       if @issue.save\r
-        flash[:notice] = "Issue was successfully added."\r
+        flash[:notice] = l(:notice_successful_create)\r
         Mailer.deliver_issue_add(@issue) if Permission.find_by_controller_and_action(@params[:controller], @params[:action]).mail_enabled?\r
         redirect_to :action => 'list_issues', :id => @project\r
       end              \r
@@ -243,6 +246,7 @@ class ProjectsController < ApplicationController
       @news.attributes = params[:news]\r
       @news.author_id = self.logged_in_user.id if self.logged_in_user\r
       if @news.save\r
+        flash[:notice] = l(:notice_successful_create)\r
         redirect_to :action => 'list_news', :id => @project\r
       end\r
     end\r
@@ -260,6 +264,7 @@ class ProjectsController < ApplicationController
         @attachment = @project.versions.find(params[:version_id]).attachments.build(params[:attachment])      \r
         @attachment.author_id = self.logged_in_user.id if self.logged_in_user\r
         if @attachment.save\r
+          flash[:notice] = l(:notice_successful_create)\r
           redirect_to :controller => 'projects', :action => 'list_files', :id => @project\r
         end\r
       end\r
@@ -285,8 +290,7 @@ private
   # used as a before_filter\r
   def find_project\r
     @project = Project.find(params[:id])               \r
-  rescue\r
-    flash[:notice] = 'Project not found.'
+  rescue
     redirect_to :action => 'list'                      \r
   end\r
 end
index 0e26ff56ccdd3ad625bee6986169eda885d53a80..6d524cf142f5aaadd130c2a857c8ab5a0d05df5e 100644 (file)
@@ -33,7 +33,7 @@ class RolesController < ApplicationController
     if request.post?
       @role.permissions = Permission.find(@params[:permission_ids]) if @params[:permission_ids]
       if @role.save
-        flash[:notice] = 'Role was successfully created.'
+        flash[:notice] = l(:notice_successful_create)
         redirect_to :action => 'list'
       end\r
     end
@@ -45,7 +45,7 @@ class RolesController < ApplicationController
     if request.post? and @role.update_attributes(params[:role])
       @role.permissions = Permission.find(@params[:permission_ids] || [])\r
       Permission.allowed_to_role_expired
-      flash[:notice] = 'Role was successfully updated.'
+      flash[:notice] = l(:notice_successful_update)
       redirect_to :action => 'list'
     end
     @permissions = Permission.find(:all, :conditions => ["is_public=?", false], :order => 'sort ASC')
@@ -73,7 +73,7 @@ class RolesController < ApplicationController
         }\r
       }\r
       if @role.save\r
-        flash[:notice] = 'Workflow was successfully updated.'\r
+        flash[:notice] = l(:notice_successful_update)\r
       end\r
     end\r
     @roles = Role.find_all\r
index 38cdb6cde8ef1c2ce97ab7e7006132e45a853781..bc76ea55600ab18e40a42e5a75083b8e78d5db3c 100644 (file)
@@ -16,8 +16,8 @@
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.\r
 \r
 class TrackersController < ApplicationController\r
-       layout 'base'\r
-       before_filter :require_admin\r
+  layout 'base'\r
+  before_filter :require_admin\r
 
   def index
     list
@@ -34,7 +34,7 @@ class TrackersController < ApplicationController
   def new
     @tracker = Tracker.new(params[:tracker])
     if request.post? and @tracker.save
-      flash[:notice] = 'Tracker was successfully created.'
+      flash[:notice] = l(:notice_successful_create)
       redirect_to :action => 'list'
     end
   end
@@ -42,7 +42,7 @@ class TrackersController < ApplicationController
   def edit
     @tracker = Tracker.find(params[:id])
     if request.post? and @tracker.update_attributes(params[:tracker])
-      flash[:notice] = 'Tracker was successfully updated.'
+      flash[:notice] = l(:notice_successful_update)
       redirect_to :action => 'list'
     end
   end
index 758afc2d852595a50ae7879b844332888257afa7..51c10ca8a72f9ae92ed3fea05f0b99b47cc1ba60 100644 (file)
@@ -53,7 +53,7 @@ class UsersController < ApplicationController
       @custom_values = UserCustomField.find(:all).collect { |x| CustomValue.new(:custom_field => x, :customized => @user, :value => params["custom_fields"][x.id.to_s]) }\r
       @user.custom_values = @custom_values                     \r
       if @user.save
-        flash[:notice] = 'User was successfully created.'
+        flash[:notice] = l(:notice_successful_create)
         redirect_to :action => 'list'
       end\r
     end
@@ -72,7 +72,7 @@ class UsersController < ApplicationController
         @user.custom_values = @custom_values\r
       end\r
       if @user.update_attributes(params[:user])
-        flash[:notice] = 'User was successfully updated.'
+        flash[:notice] = l(:notice_successful_update)
         redirect_to :action => 'list'
       end\r
     end
index c462867c877757ebf7d1327b98eebc995b295b07..57f56bf892c805e55b7a24b25825f8a5250909b9 100644 (file)
 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.\r
 \r
 class VersionsController < ApplicationController\r
-       layout 'base'\r
-       before_filter :find_project, :authorize\r
-       
-       def edit
-               if request.post? and @version.update_attributes(params[:version])
-      flash[:notice] = 'Version was successfully updated.'
+  layout 'base'\r
+  before_filter :find_project, :authorize\r
+
+  def edit
+    if request.post? and @version.update_attributes(params[:version])
+      flash[:notice] = l(:notice_successful_update)
       redirect_to :controller => 'projects', :action => 'settings', :id => @project
-               end
-       end
-       
-       def destroy\r
-               @version.destroy
-               redirect_to :controller => 'projects', :action => 'settings', :id => @project\r
+    end
+  end
+
+  def destroy\r
+    @version.destroy
+    redirect_to :controller => 'projects', :action => 'settings', :id => @project\r
   rescue\r
     flash[:notice] = "Unable to delete version"\r
-               redirect_to :controller => 'projects', :action => 'settings', :id => @project\r
-       end\r
-  \r
+    redirect_to :controller => 'projects', :action => 'settings', :id => @project\r
+  end\r
+\r
   def download\r
     @attachment = @version.attachments.find(params[:attachment_id])\r
     @attachment.increment_download\r
     send_file @attachment.diskfile, :filename => @attachment.filename\r
   rescue\r
-    flash[:notice]="Requested file doesn't exist or has been deleted."\r
+    flash[:notice] = l(:notice_file_not_found)\r
     redirect_to :controller => 'projects', :action => 'list_files', :id => @project\r
   end \r
   \r
   def destroy_file\r
     @version.attachments.find(params[:attachment_id]).destroy\r
+    flash[:notice] = l(:notice_successful_delete)\r
     redirect_to :controller => 'projects', :action => 'list_files', :id => @project\r
   end\r
 \r
 private\r
-       def find_project\r
+  def find_project\r
     @version = Version.find(params[:id])\r
-               @project = @version.project\r
-       end  
+    @project = @version.project\r
+  end  
 end
index 6e395d3daf743258d284c039d719ca6df85cea04..7f3f975324150dd59aa6edf7ed65ec89fae190fe 100644 (file)
@@ -92,6 +92,6 @@ module ApplicationHelper
   end\r
   \r
   def lang_options_for_select\r
-    GLoc.valid_languages.collect {|lang| [ l_lang_name(lang.to_s, lang), lang.to_s]}\r
+    (GLoc.valid_languages.sort {|x,y| x.to_s <=> y.to_s }).collect {|lang| [ l_lang_name(lang.to_s, lang), lang.to_s]}\r
   end\r
 end
index 10cb1bb94d43a9d1c69583a5ca45032e69a411e9..2af21edbb2e2529e3fdb8444ec14d5ef72df67a0 100644 (file)
@@ -20,24 +20,27 @@ module CustomFieldsHelper
   def custom_field_tag(custom_value)   \r
     custom_field = custom_value.custom_field\r
     field_name = "custom_fields[#{custom_field.id}]"\r
+    field_id = "custom_fields_#{custom_field.id}"\r
+    \r
     case custom_field.field_format\r
     when "string", "int", "date"\r
-      text_field_tag field_name, custom_value.value\r
+      text_field_tag field_name, custom_value.value, :id => field_id\r
     when "text"\r
-      text_area_tag field_name, custom_value.value, :cols => 60, :rows => 3\r
+      text_area_tag field_name, custom_value.value, :id => field_id, :cols => 60, :rows => 3\r
     when "bool"\r
-      check_box_tag(field_name, "1", custom_value.value == "1") + \r
+      check_box_tag(field_name, "1", custom_value.value == "1", :id => field_id) + \r
       hidden_field_tag(field_name, "0")\r
     when "list"\r
       select_tag field_name, \r
                   "<option></option>" + options_for_select(custom_field.possible_values.split('|'),\r
-                  custom_value.value)\r
+                  custom_value.value), :id => field_id\r
     end\r
   end\r
   \r
   def custom_field_label_tag(custom_value)\r
     content_tag "label", custom_value.custom_field.name +\r
-       (custom_value.custom_field.is_required? ? " <span class=\"required\">*</span>" : "")\r
+       (custom_value.custom_field.is_required? ? " <span class=\"required\">*</span>" : ""),\r
+       :for => "custom_fields_#{custom_value.custom_field.id}"\r
   end\r
   \r
   def custom_field_tag_with_label(custom_value)\r
index 4aa6e62db09c17287094d02633b03c023dcbd555..e401ef3ebde73d6154b4ae56a7e8c59a12e116d4 100644 (file)
@@ -9,7 +9,7 @@
 <div class="splitcontentleft">\r
   <div class="box">\r
   <h3><%=l(:label_information_plural)%></h3>\r
-  &nbsp;
+
   <%= start_form_tag :action => 'my_account' %>
 \r
   <!--[form:user]-->
@@ -20,7 +20,7 @@
   <%= text_field 'user', 'lastname'  %></p>
 
   <p><label for="user_mail"><%=l(:field_mail)%> <span class="required">*</span></label><br/>
-  <%= text_field 'user', 'mail' %></p>\r
+  <%= text_field 'user', 'mail', :size => 40 %></p>\r
   \r
   <p><label for="user_language"><%=l(:field_language)%></label><br/>
   <%= select("user", "language", lang_options_for_select) %></p>
@@ -38,7 +38,7 @@
 <% unless @user.auth_source_id %>\r
   <div class="box">\r
   <h3><%=l(:field_password)%></h3>\r
-  &nbsp;
+
   <%= start_form_tag :action => 'change_password' %>
 \r
   <p><label for="password"><%=l(:field_password)%> <span class="required">*</span></label><br/>
index dcfc619fe30f0312abc8709669b7ba9217f2ef41..7424d3f8cf322840d049aaea5412c88b6de2b319 100644 (file)
@@ -3,10 +3,19 @@
 <p><%=l(:text_select_mail_notifications)%></p>\r
 \r
 <%= start_form_tag ({}, :id => 'mail_options_form')%>\r
-<% for action in @actions %>\r
-  <%= check_box_tag "action_ids[]", action.id, action.mail_enabled? %>\r
-  <%= action.description %><br />\r
+\r
+<% actions = @actions.group_by {|p| p.group_id } %>\r
+<% actions.keys.sort.each do |group_id| %>\r
+<fieldset style="margin-top: 6px;"><legend><strong><%= l(Permission::GROUPS[group_id]) %></strong></legend>\r
+<% actions[group_id].each do |p| %>\r
+  <div style="width:170px;float:left;"><%= check_box_tag "action_ids[]", p.id, p.mail_enabled? %>\r
+  <%= l(p.description.to_sym) %>\r
+  </div>\r
+<% end %>\r
+</fieldset>\r
 <% end %>\r
+\r
+\r
 <br />\r
 <p>\r
 <a href="javascript:checkAll('mail_options_form', true)"><%=l(:button_check_all)%></a> |\r
index 81f2bebc3a23d51e416d9488e5f03b894015fb02..b9e28ce33c2a8bb201216b5f4f80f14a47259d0b 100644 (file)
   <div class="box">\r
     <h3><%=l(:label_news_latest)%></h3>  \r
     <% for news in @news %>\r
-      <p>\r
-      <b><%= news.title %></b> <small>(<%= link_to_user news.author %> <%= format_time(news.created_on) %>)</small><br />\r
+      <p><b><%= news.title %></b> <small>(<%= link_to_user news.author %> <%= format_time(news.created_on) %>)</small><br />\r
       <%= news.summary %>\r
-      <small>[<%= link_to l(:label_read), :controller => 'news', :action => 'show', :id => news %>]</small>\r
-      </p>\r
+      <small>[<%= link_to l(:label_read), :controller => 'news', :action => 'show', :id => news %>]</small></p>\r
       <hr />\r
     <% end %>
     <center><small>[ <%= link_to l(:label_news_view_all), :controller => 'projects', :action => 'list_news', :id => @project %> ]</small></center>\r
index 3281efc4f6581cd19b93c75dbe3ff4a231c091c7..33baf28a63baa77f56c9a06eae72e5309548af59 100644 (file)
@@ -32,16 +32,16 @@ activerecord_error_wrong_length: is the wrong length
 activerecord_error_taken: has already been taken\r
 activerecord_error_not_a_number: is not a number\r
 \r
-general_fmt_age: %d yr\r
-general_fmt_age_plural: %d yrs\r
-general_fmt_date: %%b %%d, %%Y (%%a)\r
-general_fmt_datetime: %%b %%d, %%Y (%%a), %%I:%%M %%p\r
-general_fmt_datetime_short: %%b %%d, %%I:%%M %%p\r
-general_fmt_time: %%I:%%M %%p\r
+general_fmt_age: %d año\r
+general_fmt_age_plural: %d años\r
+general_fmt_date: %%d/%%m/%%Y\r
+general_fmt_datetime: %%d/%%m/%%Y %%H:%%M\r
+general_fmt_datetime_short: %%d/%%m %%H:%%M\r
+general_fmt_time: %%H:%%M\r
 general_text_No: 'No'\r
-general_text_Yes: 'Yes'\r
+general_text_Yes: ''\r
 general_text_no: 'no'\r
-general_text_yes: 'yes'\r
+general_text_yes: ''\r
 general_lang_es: 'Español'\r
 \r
 notice_account_updated: Account was successfully updated.\r
@@ -60,7 +60,7 @@ notice_successful_connection: Successful connection.
 notice_file_not_found: Requested file doesn't exist or has been deleted.\r
 \r
 gui_validation_error: 1 error\r
-gui_validation_error_plural: %d errors\r
+gui_validation_error_plural: %d errores\r
 \r
 field_name: Nombre\r
 field_description: Descripción\r
@@ -70,12 +70,12 @@ field_firstname: Nombre
 field_lastname: Apellido\r
 field_mail: Email\r
 field_filename: Fichero\r
-#field_filesize: Size\r
+field_filesize: Tamaño\r
 field_downloads: Telecargas\r
 field_author: Autor\r
 field_created_on: Creado\r
 field_updated_on: Actualizado\r
-#field_field_format: Format\r
+field_field_format: Formato\r
 field_is_for_all: Para todos los proyectos\r
 field_possible_values: Valores posibles\r
 field_regexp: Expresión regular\r
@@ -87,7 +87,7 @@ field_title: Título
 field_project: Proyecto\r
 field_issue: Petición\r
 field_status: Estatuto\r
-#field_notes: Notes\r
+field_notes: Notas\r
 field_is_closed: Petición resuelta\r
 field_is_default: Estatuto por defecto\r
 field_html_color: Color\r
@@ -165,7 +165,7 @@ label_information: Informacion
 label_information_plural: Informaciones\r
 label_please_login: Conexión\r
 #label_register: Register\r
-#label_password_lost: Lost password\r
+label_password_lost: ¿Olvidaste la contraseña?\r
 label_home: Acogida\r
 label_my_page: Mi página\r
 label_my_account: Mi cuenta\r
@@ -222,7 +222,7 @@ label_version: Versión
 label_version_new: Nueva versión\r
 label_version_plural: Versiónes\r
 label_confirmation: Confirmación\r
-#label_export_csv: Export to CSV\r
+label_export_csv: Exportar a CSV\r
 label_read: Leer...\r
 label_public_projects: Proyectos publicos\r
 label_open_issues: Abierta\r
@@ -265,9 +265,9 @@ text_min_max_length_info: 0 para ninguna restricción
 text_project_destroy_confirmation: ¿ Estás seguro de querer eliminar el proyecto ?\r
 text_workflow_edit: Seleccionar un workflow para actualizar\r
 \r
-#default_role_manager: Manager\r
-#default_role_developper: Developer\r
-#default_role_reporter: Reporter\r
+default_role_manager: Manager\r
+default_role_developper: Desarrollador\r
+default_role_reporter: Informador\r
 default_tracker_bug: Anomalía\r
 default_tracker_feature: Evolución\r
 default_tracker_support: Asistencia\r
index 39c7d465ce1825da82d5703fb0e42cc4d8a6b9bf..787347d83eb9172d6ff2180b6b44b3499ed390f9 100644 (file)
@@ -150,7 +150,7 @@ background-color:inherit;
 }\r
 \r
 #content h2 a{font-weight:normal;}\r
-#content h3{margin:0 0 5px 0; font-size:1.4em; letter-spacing:-1px;}\r
+#content h3{margin:0 0 12px 0; font-size:1.4em; letter-spacing:-1px;}\r
 #content a:hover,#subcontent a:hover{text-decoration:underline;}\r
 #content ul,#content ol{margin:0 5px 16px 35px;}\r
 #content dl{margin:0 5px 10px 25px;}\r
@@ -255,7 +255,7 @@ tr.even {
        background-color:#CEE1ED;\r
 }\r
 \r
-hr { border:0px; border-bottom:1px dashed #000000; }\r
+hr { border:none; border-bottom: dotted 2px #c0c0c0; }\r
 \r
 \r
 /**************** Sidebar styles ****************/\r
index 4f5240b681ef7b83dea7b6f3801f0d1e06495ae1..88c75361d4832e45e1d71e3adada70eaa9174595 100644 (file)
@@ -39,10 +39,15 @@ class AccountTest < ActionController::IntegrationTest
     
     post "account/change_password", :password => 'jsmith', :new_password => "hello", :new_password_confirmation => "hello2"
     assert_response :success
+    assert_template "account/my_account" 
     assert_tag :tag => "div", :attributes => { :class => "errorExplanation" }
-    
+
+    post "account/change_password", :password => 'jsmithZZ', :new_password => "hello", :new_password_confirmation => "hello"
+    assert_redirected_to "account/my_account"
+    assert_equal 'Wrong password', flash[:notice]
+        
     post "account/change_password", :password => 'jsmith', :new_password => "hello", :new_password_confirmation => "hello"
-    assert_response :success
+    assert_redirected_to "account/my_account"
     log_user('jsmith', 'hello')
   end
   
index 6602d1c15685b89134270886f8fad59eb70f99ad..0241ae8dab25ad288eb44c312023e52ca760dce4 100644 (file)
@@ -47,7 +47,7 @@ class AdminTest < ActionController::IntegrationTest
     assert_template "projects/add"
     post "projects/add", :project => { :name => "blog", :description => "weblog", :is_public => 1}
     assert_redirected_to "admin/projects"
-    assert_equal 'Project was successfully created.', flash[:notice]
+    assert_equal 'Successful creation.', flash[:notice]
     
     project = Project.find_by_name("blog")
     assert_kind_of Project, project