Patch #2872 » 0001-Added-i18n-vars-for-issue-new-errors.patch
| app/controllers/issues_controller.rb | ||
|---|---|---|
|
# Tracker must be set before custom field values
|
||
|
@issue.tracker ||= @project.trackers.find((params[:issue] && params[:issue][:tracker_id]) || params[:tracker_id] || :first)
|
||
|
if @issue.tracker.nil?
|
||
|
render_error 'No tracker is associated to this project. Please check the Project settings.'
|
||
|
render_error l(:error_no_tracker_in_project)
|
||
|
return
|
||
|
end
|
||
|
if params[:issue].is_a?(Hash)
|
||
| ... | ... | |
|
|
||
|
default_status = IssueStatus.default
|
||
|
unless default_status
|
||
|
render_error 'No default issue status is defined. Please check your configuration (Go to "Administration -> Issue statuses").'
|
||
|
render_error l(:error_no_default_issue_status)
|
||
|
return
|
||
|
end
|
||
|
@issue.status = default_status
|
||
| config/locales/en.yml | ||
|---|---|---|
|
error_scm_command_failed: "An error occurred when trying to access the repository: {{value}}"
|
||
|
error_scm_annotate: "The entry does not exist or can not be annotated."
|
||
|
error_issue_not_found_in_project: 'The issue was not found or does not belong to this project'
|
||
|
error_no_tracker_in_project: 'No tracker is associated to this project. Please check the Project settings.'
|
||
|
error_no_default_issue_status: 'No default issue status is defined. Please check your configuration (Go to "Administration -> Issue statuses").'
|
||
|
|
||
|
warning_attachments_not_saved: "{{count}} file(s) could not be saved."
|
||
|
|
||
| config/locales/pt-BR.yml | ||
|---|---|---|
|
error_scm_command_failed: "Ocorreu um erro ao tentar acessar o repositório: {{value}}"
|
||
|
error_scm_annotate: "Esta entrada não existe ou não pode ser anotada."
|
||
|
error_issue_not_found_in_project: 'A tarefa não foi encontrada ou não pertence a este projeto'
|
||
|
error_no_tracker_in_project: 'Não há um tipo de tarefa associado a este projeto. favor verificar as configurações do projeto.'
|
||
|
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").'
|
||
|
mail_subject_lost_password: "Sua senha do {{value}}."
|
||
|
mail_body_lost_password: 'Para mudar sua senha, clique no link abaixo:'
|
||