mirror of
https://github.com/redmine/redmine.git
synced 2025-11-05 04:45:57 +01:00
New strings to localization (#5225)
* error_can_not_delete_custom_field: Unable to delete custom field
* error_unable_to_connect: Unable to connect ({{value}})
* error_can_not_remove_role: This role is in use and can not be deleted.
* error_can_not_delete_tracker: This tracker contains issues and can't be deleted.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3627 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -63,7 +63,7 @@ class AuthSourcesController < ApplicationController
|
||||
@auth_method.test_connection
|
||||
flash[:notice] = l(:notice_successful_connection)
|
||||
rescue => text
|
||||
flash[:error] = "Unable to connect (#{text})"
|
||||
flash[:error] = l(:error_unable_to_connect, text.message)
|
||||
end
|
||||
redirect_to :action => 'index'
|
||||
end
|
||||
|
||||
@@ -56,7 +56,7 @@ class CustomFieldsController < ApplicationController
|
||||
@custom_field = CustomField.find(params[:id]).destroy
|
||||
redirect_to :action => 'index', :tab => @custom_field.class.name
|
||||
rescue
|
||||
flash[:error] = "Unable to delete custom field"
|
||||
flash[:error] = l(:error_can_not_delete_custom_field)
|
||||
redirect_to :action => 'index'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -57,7 +57,7 @@ class RolesController < ApplicationController
|
||||
@role.destroy
|
||||
redirect_to :action => 'index'
|
||||
rescue
|
||||
flash[:error] = 'This role is in use and can not be deleted.'
|
||||
flash[:error] = l(:error_can_not_remove_role)
|
||||
redirect_to :action => 'index'
|
||||
end
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ class TrackersController < ApplicationController
|
||||
def destroy
|
||||
@tracker = Tracker.find(params[:id])
|
||||
unless @tracker.issues.empty?
|
||||
flash[:error] = "This tracker contains issues and can\'t be deleted."
|
||||
flash[:error] = l(:error_can_not_delete_tracker)
|
||||
else
|
||||
@tracker.destroy
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user