Patch #2872 » 0001-Added-i18n-vars-for-issue-new-errors.patch
| app/controllers/issues_controller.rb | ||
|---|---|---|
| 120 | 120 |
# Tracker must be set before custom field values |
| 121 | 121 |
@issue.tracker ||= @project.trackers.find((params[:issue] && params[:issue][:tracker_id]) || params[:tracker_id] || :first) |
| 122 | 122 |
if @issue.tracker.nil? |
| 123 |
render_error 'No tracker is associated to this project. Please check the Project settings.'
|
|
| 123 |
render_error l(:error_no_tracker_in_project)
|
|
| 124 | 124 |
return |
| 125 | 125 |
end |
| 126 | 126 |
if params[:issue].is_a?(Hash) |
| ... | ... | |
| 131 | 131 |
|
| 132 | 132 |
default_status = IssueStatus.default |
| 133 | 133 |
unless default_status |
| 134 |
render_error 'No default issue status is defined. Please check your configuration (Go to "Administration -> Issue statuses").'
|
|
| 134 |
render_error l(:error_no_default_issue_status)
|
|
| 135 | 135 |
return |
| 136 | 136 |
end |
| 137 | 137 |
@issue.status = default_status |
| config/locales/en.yml | ||
|---|---|---|
| 136 | 136 |
error_scm_command_failed: "An error occurred when trying to access the repository: {{value}}"
|
| 137 | 137 |
error_scm_annotate: "The entry does not exist or can not be annotated." |
| 138 | 138 |
error_issue_not_found_in_project: 'The issue was not found or does not belong to this project' |
| 139 |
error_no_tracker_in_project: 'No tracker is associated to this project. Please check the Project settings.' |
|
| 140 |
error_no_default_issue_status: 'No default issue status is defined. Please check your configuration (Go to "Administration -> Issue statuses").' |
|
| 139 | 141 |
|
| 140 | 142 |
warning_attachments_not_saved: "{{count}} file(s) could not be saved."
|
| 141 | 143 |
|
| config/locales/pt-BR.yml | ||
|---|---|---|
| 172 | 172 |
error_scm_command_failed: "Ocorreu um erro ao tentar acessar o repositório: {{value}}"
|
| 173 | 173 |
error_scm_annotate: "Esta entrada não existe ou não pode ser anotada." |
| 174 | 174 |
error_issue_not_found_in_project: 'A tarefa não foi encontrada ou não pertence a este projeto' |
| 175 |
error_no_tracker_in_project: 'Não há um tipo de tarefa associado a este projeto. favor verificar as configurações do projeto.' |
|
| 176 |
error_no_default_issue_status: 'A situação padrão para tarefa não está definida. Favor verificar sua configuração (Vá em "Administração -> Situação da tarefa").' |
|
| 175 | 177 | |
| 176 | 178 |
mail_subject_lost_password: "Sua senha do {{value}}."
|
| 177 | 179 |
mail_body_lost_password: 'Para mudar sua senha, clique no link abaixo:' |