summaryrefslogtreecommitdiffstats
path: root/redmine
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2006-07-30 10:47:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2006-07-30 10:47:02 +0000
commit18ee1fef4172ecb444f1abe6d533d042a7ac8dd9 (patch)
treed2fc7e73ecc5ac60010d07dd30278d2dc8042417 /redmine
parent2a96f56956d36ae02b2b6b326fe404499ef93b8b (diff)
downloadredmine-18ee1fef4172ecb444f1abe6d533d042a7ac8dd9.tar.gz
redmine-18ee1fef4172ecb444f1abe6d533d042a7ac8dd9.zip
notice messages translation
git-svn-id: http://redmine.rubyforge.org/svn/trunk@17 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'redmine')
-rw-r--r--redmine/app/controllers/account_controller.rb13
-rw-r--r--redmine/app/controllers/admin_controller.rb2
-rw-r--r--redmine/app/controllers/application.rb8
-rw-r--r--redmine/app/controllers/custom_fields_controller.rb3
-rw-r--r--redmine/app/controllers/documents_controller.rb2
-rw-r--r--redmine/app/controllers/issue_categories_controller.rb2
-rw-r--r--redmine/app/controllers/issue_statuses_controller.rb4
-rw-r--r--redmine/app/controllers/issues_controller.rb4
-rw-r--r--redmine/app/controllers/members_controller.rb4
-rw-r--r--redmine/app/controllers/news_controller.rb2
-rw-r--r--redmine/app/controllers/projects_controller.rb16
-rw-r--r--redmine/app/controllers/roles_controller.rb6
-rw-r--r--redmine/app/controllers/trackers_controller.rb8
-rw-r--r--redmine/app/controllers/users_controller.rb4
-rw-r--r--redmine/app/controllers/versions_controller.rb39
-rw-r--r--redmine/app/helpers/application_helper.rb2
-rw-r--r--redmine/app/helpers/custom_fields_helper.rb13
-rw-r--r--redmine/app/views/account/my_account.rhtml6
-rw-r--r--redmine/app/views/admin/mail_options.rhtml15
-rw-r--r--redmine/app/views/projects/show.rhtml6
-rw-r--r--redmine/lang/es.yml34
-rw-r--r--redmine/public/stylesheets/application.css4
-rw-r--r--redmine/test/integration/account_test.rb9
-rw-r--r--redmine/test/integration/admin_test.rb2
24 files changed, 116 insertions, 92 deletions
diff --git a/redmine/app/controllers/account_controller.rb b/redmine/app/controllers/account_controller.rb
index bc65622b8..22ac8609a 100644
--- a/redmine/app/controllers/account_controller.rb
+++ b/redmine/app/controllers/account_controller.rb
@@ -72,14 +72,19 @@ class AccountController < ApplicationController
# Change logged in user's password
def change_password
@user = self.logged_in_user
- flash.now[:notice] = l(:notice_can_t_change_password) and render :action => 'my_account' and return if @user.auth_source_id
+ flash[:notice] = l(:notice_can_t_change_password) and redirect_to :action => 'my_account' and return if @user.auth_source_id
if @user.check_password?(@params[:password])
@user.password, @user.password_confirmation = params[:new_password], params[:new_password_confirmation]
- flash.now[:notice] = l(:notice_account_password_updated) if @user.save
+ if @user.save
+ flash[:notice] = l(:notice_account_password_updated)
+ else
+ render :action => 'my_account'
+ return
+ end
else
- flash.now[:notice] = l(:notice_account_wrong_password)
+ flash[:notice] = l(:notice_account_wrong_password)
end
- render :action => 'my_account'
+ redirect_to :action => 'my_account'
end
# Enable user to choose a new password
diff --git a/redmine/app/controllers/admin_controller.rb b/redmine/app/controllers/admin_controller.rb
index 68d08137d..4b144e8d5 100644
--- a/redmine/app/controllers/admin_controller.rb
+++ b/redmine/app/controllers/admin_controller.rb
@@ -44,7 +44,7 @@ class AdminController < ApplicationController
a.mail_enabled = (params[:action_ids] || []).include? a.id.to_s
a.save
}
- flash[:notice] = "Mail options were successfully updated."
+ flash.now[:notice] = l(:notice_successful_update)
end
end
diff --git a/redmine/app/controllers/application.rb b/redmine/app/controllers/application.rb
index 8acbb0926..3061359b2 100644
--- a/redmine/app/controllers/application.rb
+++ b/redmine/app/controllers/application.rb
@@ -55,7 +55,7 @@ class ApplicationController < ActionController::Base
def require_login
unless self.logged_in_user
store_location
- redirect_to(:controller => "account", :action => "login")
+ redirect_to :controller => "account", :action => "login"
return false
end
true
@@ -64,8 +64,7 @@ class ApplicationController < ActionController::Base
def require_admin
return unless require_login
unless self.logged_in_user.admin?
- flash[:notice] = "Acces denied"
- redirect_to:controller => ''
+ render :nothing => true, :status => 403
return false
end
true
@@ -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 )
return true
end
- flash[:notice] = "Acces denied"
- redirect_to :controller => ''
+ render :nothing => true, :status => 403
false
end
diff --git a/redmine/app/controllers/custom_fields_controller.rb b/redmine/app/controllers/custom_fields_controller.rb
index 57430743d..d0ffddf7f 100644
--- a/redmine/app/controllers/custom_fields_controller.rb
+++ b/redmine/app/controllers/custom_fields_controller.rb
@@ -42,6 +42,7 @@ class CustomFieldsController < ApplicationController
return
end
if request.post? and @custom_field.save
+ flash[:notice] = l(:notice_successful_create)
redirect_to :action => 'list'
end
@trackers = Tracker.find(:all)
@@ -53,7 +54,7 @@ class CustomFieldsController < ApplicationController
if @custom_field.is_a? IssueCustomField
@custom_field.trackers = params[:tracker_ids] ? Tracker.find(params[:tracker_ids]) : []
end
- flash[:notice] = 'Custom field was successfully updated.'
+ flash[:notice] = l(:notice_successful_update)
redirect_to :action => 'list'
end
@trackers = Tracker.find(:all)
diff --git a/redmine/app/controllers/documents_controller.rb b/redmine/app/controllers/documents_controller.rb
index cc30f8e1e..e8c8e2d03 100644
--- a/redmine/app/controllers/documents_controller.rb
+++ b/redmine/app/controllers/documents_controller.rb
@@ -25,7 +25,7 @@ class DocumentsController < ApplicationController
def edit
@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
diff --git a/redmine/app/controllers/issue_categories_controller.rb b/redmine/app/controllers/issue_categories_controller.rb
index cf0f9dc06..965a15e78 100644
--- a/redmine/app/controllers/issue_categories_controller.rb
+++ b/redmine/app/controllers/issue_categories_controller.rb
@@ -21,7 +21,7 @@ class IssueCategoriesController < ApplicationController
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
diff --git a/redmine/app/controllers/issue_statuses_controller.rb b/redmine/app/controllers/issue_statuses_controller.rb
index 3de8158c6..be577ef19 100644
--- a/redmine/app/controllers/issue_statuses_controller.rb
+++ b/redmine/app/controllers/issue_statuses_controller.rb
@@ -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'
diff --git a/redmine/app/controllers/issues_controller.rb b/redmine/app/controllers/issues_controller.rb
index fa97e7c1c..07f2c7736 100644
--- a/redmine/app/controllers/issues_controller.rb
+++ b/redmine/app/controllers/issues_controller.rb
@@ -38,7 +38,7 @@ class IssuesController < ApplicationController
@issue.custom_values = @custom_values
@issue.attributes = params[:issue]
if @issue.save
- flash[:notice] = 'Issue was successfully updated.'
+ flash[:notice] = l(:notice_successful_update)
redirect_to :action => 'show', :id => @issue
end
end
@@ -56,7 +56,7 @@ class IssuesController < ApplicationController
@issue.fixed_version_id = (params[:issue][:fixed_version_id])
@issue.assigned_to_id = (params[:issue][:assigned_to_id])
if @issue.save
- flash[:notice] = 'Issue was successfully updated.'
+ flash[:notice] = l(:notice_successful_update)
Mailer.deliver_issue_change_status(@issue) if Permission.find_by_controller_and_action(@params[:controller], @params[:action]).mail_enabled?
redirect_to :action => 'show', :id => @issue
end
diff --git a/redmine/app/controllers/members_controller.rb b/redmine/app/controllers/members_controller.rb
index ac6b08d26..be3f717d1 100644
--- a/redmine/app/controllers/members_controller.rb
+++ b/redmine/app/controllers/members_controller.rb
@@ -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
end
end
def destroy
@member.destroy
- flash[:notice] = 'Member was successfully removed.'
+ flash[:notice] = l(:notice_successful_delete)
redirect_to :controller => 'projects', :action => 'settings', :id => @project
end
diff --git a/redmine/app/controllers/news_controller.rb b/redmine/app/controllers/news_controller.rb
index 065336f26..b50b59dc0 100644
--- a/redmine/app/controllers/news_controller.rb
+++ b/redmine/app/controllers/news_controller.rb
@@ -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
diff --git a/redmine/app/controllers/projects_controller.rb b/redmine/app/controllers/projects_controller.rb
index 3d45f7268..0f8f19422 100644
--- a/redmine/app/controllers/projects_controller.rb
+++ b/redmine/app/controllers/projects_controller.rb
@@ -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]) }
@project.custom_values = @custom_values
if @project.save
- flash[:notice] = 'Project was successfully created.'
+ flash[:notice] = l(:notice_successful_create)
redirect_to :controller => 'admin', :action => 'projects'
end
end
@@ -92,7 +92,7 @@ class ProjectsController < ApplicationController
@project.custom_values = @custom_values
end
if @project.update_attributes(params[:project])
- flash[:notice] = 'Project was successfully updated.'
+ flash[:notice] = l(:notice_successful_update)
redirect_to :action => 'settings', :id => @project
else
settings
@@ -114,6 +114,7 @@ class ProjectsController < ApplicationController
if request.post?
@issue_category = @project.issue_categories.build(params[:issue_category])
if @issue_category.save
+ flash[:notice] = l(:notice_successful_create)
redirect_to :action => 'settings', :id => @project
else
settings
@@ -126,6 +127,7 @@ class ProjectsController < ApplicationController
def add_version
@version = @project.versions.build(params[:version])
if request.post? and @version.save
+ flash[:notice] = l(:notice_successful_create)
redirect_to :action => 'settings', :id => @project
end
end
@@ -135,7 +137,7 @@ class ProjectsController < ApplicationController
@member = @project.members.build(params[:member])
if request.post?
if @member.save
- flash[:notice] = 'Member was successfully added.'
+ flash[:notice] = l(:notice_successful_create)
redirect_to :action => 'settings', :id => @project
else
settings
@@ -160,6 +162,7 @@ class ProjectsController < ApplicationController
@attachment.author_id = self.logged_in_user.id if self.logged_in_user
end
if @document.save
+ flash[:notice] = l(:notice_successful_create)
redirect_to :action => 'list_documents', :id => @project
end
end
@@ -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]) }
@issue.custom_values = @custom_values
if @issue.save
- flash[:notice] = "Issue was successfully added."
+ flash[:notice] = l(:notice_successful_create)
Mailer.deliver_issue_add(@issue) if Permission.find_by_controller_and_action(@params[:controller], @params[:action]).mail_enabled?
redirect_to :action => 'list_issues', :id => @project
end
@@ -243,6 +246,7 @@ class ProjectsController < ApplicationController
@news.attributes = params[:news]
@news.author_id = self.logged_in_user.id if self.logged_in_user
if @news.save
+ flash[:notice] = l(:notice_successful_create)
redirect_to :action => 'list_news', :id => @project
end
end
@@ -260,6 +264,7 @@ class ProjectsController < ApplicationController
@attachment = @project.versions.find(params[:version_id]).attachments.build(params[:attachment])
@attachment.author_id = self.logged_in_user.id if self.logged_in_user
if @attachment.save
+ flash[:notice] = l(:notice_successful_create)
redirect_to :controller => 'projects', :action => 'list_files', :id => @project
end
end
@@ -285,8 +290,7 @@ private
# used as a before_filter
def find_project
@project = Project.find(params[:id])
- rescue
- flash[:notice] = 'Project not found.'
+ rescue
redirect_to :action => 'list'
end
end
diff --git a/redmine/app/controllers/roles_controller.rb b/redmine/app/controllers/roles_controller.rb
index 0e26ff56c..6d524cf14 100644
--- a/redmine/app/controllers/roles_controller.rb
+++ b/redmine/app/controllers/roles_controller.rb
@@ -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
end
@@ -45,7 +45,7 @@ class RolesController < ApplicationController
if request.post? and @role.update_attributes(params[:role])
@role.permissions = Permission.find(@params[:permission_ids] || [])
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
}
}
if @role.save
- flash[:notice] = 'Workflow was successfully updated.'
+ flash[:notice] = l(:notice_successful_update)
end
end
@roles = Role.find_all
diff --git a/redmine/app/controllers/trackers_controller.rb b/redmine/app/controllers/trackers_controller.rb
index 38cdb6cde..bc76ea556 100644
--- a/redmine/app/controllers/trackers_controller.rb
+++ b/redmine/app/controllers/trackers_controller.rb
@@ -16,8 +16,8 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class TrackersController < ApplicationController
- layout 'base'
- before_filter :require_admin
+ layout 'base'
+ before_filter :require_admin
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
diff --git a/redmine/app/controllers/users_controller.rb b/redmine/app/controllers/users_controller.rb
index 758afc2d8..51c10ca8a 100644
--- a/redmine/app/controllers/users_controller.rb
+++ b/redmine/app/controllers/users_controller.rb
@@ -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]) }
@user.custom_values = @custom_values
if @user.save
- flash[:notice] = 'User was successfully created.'
+ flash[:notice] = l(:notice_successful_create)
redirect_to :action => 'list'
end
end
@@ -72,7 +72,7 @@ class UsersController < ApplicationController
@user.custom_values = @custom_values
end
if @user.update_attributes(params[:user])
- flash[:notice] = 'User was successfully updated.'
+ flash[:notice] = l(:notice_successful_update)
redirect_to :action => 'list'
end
end
diff --git a/redmine/app/controllers/versions_controller.rb b/redmine/app/controllers/versions_controller.rb
index c462867c8..57f56bf89 100644
--- a/redmine/app/controllers/versions_controller.rb
+++ b/redmine/app/controllers/versions_controller.rb
@@ -16,41 +16,42 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
class VersionsController < ApplicationController
- layout 'base'
- before_filter :find_project, :authorize
-
- def edit
- if request.post? and @version.update_attributes(params[:version])
- flash[:notice] = 'Version was successfully updated.'
+ layout 'base'
+ before_filter :find_project, :authorize
+
+ 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
- @version.destroy
- redirect_to :controller => 'projects', :action => 'settings', :id => @project
+ end
+ end
+
+ def destroy
+ @version.destroy
+ redirect_to :controller => 'projects', :action => 'settings', :id => @project
rescue
flash[:notice] = "Unable to delete version"
- redirect_to :controller => 'projects', :action => 'settings', :id => @project
- end
-
+ redirect_to :controller => 'projects', :action => 'settings', :id => @project
+ end
+
def download
@attachment = @version.attachments.find(params[:attachment_id])
@attachment.increment_download
send_file @attachment.diskfile, :filename => @attachment.filename
rescue
- flash[:notice]="Requested file doesn't exist or has been deleted."
+ flash[:notice] = l(:notice_file_not_found)
redirect_to :controller => 'projects', :action => 'list_files', :id => @project
end
def destroy_file
@version.attachments.find(params[:attachment_id]).destroy
+ flash[:notice] = l(:notice_successful_delete)
redirect_to :controller => 'projects', :action => 'list_files', :id => @project
end
private
- def find_project
+ def find_project
@version = Version.find(params[:id])
- @project = @version.project
- end
+ @project = @version.project
+ end
end
diff --git a/redmine/app/helpers/application_helper.rb b/redmine/app/helpers/application_helper.rb
index 6e395d3da..7f3f97532 100644
--- a/redmine/app/helpers/application_helper.rb
+++ b/redmine/app/helpers/application_helper.rb
@@ -92,6 +92,6 @@ module ApplicationHelper
end
def lang_options_for_select
- GLoc.valid_languages.collect {|lang| [ l_lang_name(lang.to_s, lang), lang.to_s]}
+ (GLoc.valid_languages.sort {|x,y| x.to_s <=> y.to_s }).collect {|lang| [ l_lang_name(lang.to_s, lang), lang.to_s]}
end
end
diff --git a/redmine/app/helpers/custom_fields_helper.rb b/redmine/app/helpers/custom_fields_helper.rb
index 10cb1bb94..2af21edbb 100644
--- a/redmine/app/helpers/custom_fields_helper.rb
+++ b/redmine/app/helpers/custom_fields_helper.rb
@@ -20,24 +20,27 @@ module CustomFieldsHelper
def custom_field_tag(custom_value)
custom_field = custom_value.custom_field
field_name = "custom_fields[#{custom_field.id}]"
+ field_id = "custom_fields_#{custom_field.id}"
+
case custom_field.field_format
when "string", "int", "date"
- text_field_tag field_name, custom_value.value
+ text_field_tag field_name, custom_value.value, :id => field_id
when "text"
- text_area_tag field_name, custom_value.value, :cols => 60, :rows => 3
+ text_area_tag field_name, custom_value.value, :id => field_id, :cols => 60, :rows => 3
when "bool"
- check_box_tag(field_name, "1", custom_value.value == "1") +
+ check_box_tag(field_name, "1", custom_value.value == "1", :id => field_id) +
hidden_field_tag(field_name, "0")
when "list"
select_tag field_name,
"<option></option>" + options_for_select(custom_field.possible_values.split('|'),
- custom_value.value)
+ custom_value.value), :id => field_id
end
end
def custom_field_label_tag(custom_value)
content_tag "label", custom_value.custom_field.name +
- (custom_value.custom_field.is_required? ? " <span class=\"required\">*</span>" : "")
+ (custom_value.custom_field.is_required? ? " <span class=\"required\">*</span>" : ""),
+ :for => "custom_fields_#{custom_value.custom_field.id}"
end
def custom_field_tag_with_label(custom_value)
diff --git a/redmine/app/views/account/my_account.rhtml b/redmine/app/views/account/my_account.rhtml
index 4aa6e62db..e401ef3eb 100644
--- a/redmine/app/views/account/my_account.rhtml
+++ b/redmine/app/views/account/my_account.rhtml
@@ -9,7 +9,7 @@
<div class="splitcontentleft">
<div class="box">
<h3><%=l(:label_information_plural)%></h3>
- &nbsp;
+
<%= start_form_tag :action => 'my_account' %>
<!--[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>
+ <%= text_field 'user', 'mail', :size => 40 %></p>
<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 %>
<div class="box">
<h3><%=l(:field_password)%></h3>
- &nbsp;
+
<%= start_form_tag :action => 'change_password' %>
<p><label for="password"><%=l(:field_password)%> <span class="required">*</span></label><br/>
diff --git a/redmine/app/views/admin/mail_options.rhtml b/redmine/app/views/admin/mail_options.rhtml
index dcfc619fe..7424d3f8c 100644
--- a/redmine/app/views/admin/mail_options.rhtml
+++ b/redmine/app/views/admin/mail_options.rhtml
@@ -3,10 +3,19 @@
<p><%=l(:text_select_mail_notifications)%></p>
<%= start_form_tag ({}, :id => 'mail_options_form')%>
-<% for action in @actions %>
- <%= check_box_tag "action_ids[]", action.id, action.mail_enabled? %>
- <%= action.description %><br />
+
+<% actions = @actions.group_by {|p| p.group_id } %>
+<% actions.keys.sort.each do |group_id| %>
+<fieldset style="margin-top: 6px;"><legend><strong><%= l(Permission::GROUPS[group_id]) %></strong></legend>
+<% actions[group_id].each do |p| %>
+ <div style="width:170px;float:left;"><%= check_box_tag "action_ids[]", p.id, p.mail_enabled? %>
+ <%= l(p.description.to_sym) %>
+ </div>
+<% end %>
+</fieldset>
<% end %>
+
+
<br />
<p>
<a href="javascript:checkAll('mail_options_form', true)"><%=l(:button_check_all)%></a> |
diff --git a/redmine/app/views/projects/show.rhtml b/redmine/app/views/projects/show.rhtml
index 81f2bebc3..b9e28ce33 100644
--- a/redmine/app/views/projects/show.rhtml
+++ b/redmine/app/views/projects/show.rhtml
@@ -56,11 +56,9 @@
<div class="box">
<h3><%=l(:label_news_latest)%></h3>
<% for news in @news %>
- <p>
- <b><%= news.title %></b> <small>(<%= link_to_user news.author %> <%= format_time(news.created_on) %>)</small><br />
+ <p><b><%= news.title %></b> <small>(<%= link_to_user news.author %> <%= format_time(news.created_on) %>)</small><br />
<%= news.summary %>
- <small>[<%= link_to l(:label_read), :controller => 'news', :action => 'show', :id => news %>]</small>
- </p>
+ <small>[<%= link_to l(:label_read), :controller => 'news', :action => 'show', :id => news %>]</small></p>
<hr />
<% end %>
<center><small>[ <%= link_to l(:label_news_view_all), :controller => 'projects', :action => 'list_news', :id => @project %> ]</small></center>
diff --git a/redmine/lang/es.yml b/redmine/lang/es.yml
index 3281efc4f..33baf28a6 100644
--- a/redmine/lang/es.yml
+++ b/redmine/lang/es.yml
@@ -32,16 +32,16 @@ activerecord_error_wrong_length: is the wrong length
activerecord_error_taken: has already been taken
activerecord_error_not_a_number: is not a number
-general_fmt_age: %d yr
-general_fmt_age_plural: %d yrs
-general_fmt_date: %%b %%d, %%Y (%%a)
-general_fmt_datetime: %%b %%d, %%Y (%%a), %%I:%%M %%p
-general_fmt_datetime_short: %%b %%d, %%I:%%M %%p
-general_fmt_time: %%I:%%M %%p
+general_fmt_age: %d año
+general_fmt_age_plural: %d años
+general_fmt_date: %%d/%%m/%%Y
+general_fmt_datetime: %%d/%%m/%%Y %%H:%%M
+general_fmt_datetime_short: %%d/%%m %%H:%%M
+general_fmt_time: %%H:%%M
general_text_No: 'No'
-general_text_Yes: 'Yes'
+general_text_Yes: 'Sí'
general_text_no: 'no'
-general_text_yes: 'yes'
+general_text_yes: 'sí'
general_lang_es: 'Español'
notice_account_updated: Account was successfully updated.
@@ -60,7 +60,7 @@ notice_successful_connection: Successful connection.
notice_file_not_found: Requested file doesn't exist or has been deleted.
gui_validation_error: 1 error
-gui_validation_error_plural: %d errors
+gui_validation_error_plural: %d errores
field_name: Nombre
field_description: Descripción
@@ -70,12 +70,12 @@ field_firstname: Nombre
field_lastname: Apellido
field_mail: Email
field_filename: Fichero
-#field_filesize: Size
+field_filesize: Tamaño
field_downloads: Telecargas
field_author: Autor
field_created_on: Creado
field_updated_on: Actualizado
-#field_field_format: Format
+field_field_format: Formato
field_is_for_all: Para todos los proyectos
field_possible_values: Valores posibles
field_regexp: Expresión regular
@@ -87,7 +87,7 @@ field_title: Título
field_project: Proyecto
field_issue: Petición
field_status: Estatuto
-#field_notes: Notes
+field_notes: Notas
field_is_closed: Petición resuelta
field_is_default: Estatuto por defecto
field_html_color: Color
@@ -165,7 +165,7 @@ label_information: Informacion
label_information_plural: Informaciones
label_please_login: Conexión
#label_register: Register
-#label_password_lost: Lost password
+label_password_lost: ¿Olvidaste la contraseña?
label_home: Acogida
label_my_page: Mi página
label_my_account: Mi cuenta
@@ -222,7 +222,7 @@ label_version: Versión
label_version_new: Nueva versión
label_version_plural: Versiónes
label_confirmation: Confirmación
-#label_export_csv: Export to CSV
+label_export_csv: Exportar a CSV
label_read: Leer...
label_public_projects: Proyectos publicos
label_open_issues: Abierta
@@ -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 ?
text_workflow_edit: Seleccionar un workflow para actualizar
-#default_role_manager: Manager
-#default_role_developper: Developer
-#default_role_reporter: Reporter
+default_role_manager: Manager
+default_role_developper: Desarrollador
+default_role_reporter: Informador
default_tracker_bug: Anomalía
default_tracker_feature: Evolución
default_tracker_support: Asistencia
diff --git a/redmine/public/stylesheets/application.css b/redmine/public/stylesheets/application.css
index 39c7d465c..787347d83 100644
--- a/redmine/public/stylesheets/application.css
+++ b/redmine/public/stylesheets/application.css
@@ -150,7 +150,7 @@ background-color:inherit;
}
#content h2 a{font-weight:normal;}
-#content h3{margin:0 0 5px 0; font-size:1.4em; letter-spacing:-1px;}
+#content h3{margin:0 0 12px 0; font-size:1.4em; letter-spacing:-1px;}
#content a:hover,#subcontent a:hover{text-decoration:underline;}
#content ul,#content ol{margin:0 5px 16px 35px;}
#content dl{margin:0 5px 10px 25px;}
@@ -255,7 +255,7 @@ tr.even {
background-color:#CEE1ED;
}
-hr { border:0px; border-bottom:1px dashed #000000; }
+hr { border:none; border-bottom: dotted 2px #c0c0c0; }
/**************** Sidebar styles ****************/
diff --git a/redmine/test/integration/account_test.rb b/redmine/test/integration/account_test.rb
index 4f5240b68..88c75361d 100644
--- a/redmine/test/integration/account_test.rb
+++ b/redmine/test/integration/account_test.rb
@@ -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
diff --git a/redmine/test/integration/admin_test.rb b/redmine/test/integration/admin_test.rb
index 6602d1c15..0241ae8da 100644
--- a/redmine/test/integration/admin_test.rb
+++ b/redmine/test/integration/admin_test.rb
@@ -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