diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index de5167651..0dfeda8d5 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -131,7 +131,7 @@ class IssuesController < ApplicationController # 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) @@ -142,7 +142,7 @@ class IssuesController < ApplicationController 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 diff --git a/config/locales/bg.yml b/config/locales/bg.yml index a683f875b..90d72035f 100644 --- a/config/locales/bg.yml +++ b/config/locales/bg.yml @@ -801,3 +801,5 @@ bg: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/bs.yml b/config/locales/bs.yml index d78e61140..05b1cd724 100644 --- a/config/locales/bs.yml +++ b/config/locales/bs.yml @@ -834,3 +834,5 @@ bs: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/ca.yml b/config/locales/ca.yml index 049f734bc..9e7b0b8f8 100644 --- a/config/locales/ca.yml +++ b/config/locales/ca.yml @@ -804,3 +804,5 @@ ca: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/cs.yml b/config/locales/cs.yml index 4e1afa6f1..c39f3e57a 100644 --- a/config/locales/cs.yml +++ b/config/locales/cs.yml @@ -807,3 +807,5 @@ cs: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/da.yml b/config/locales/da.yml index f438805a8..9f18f6a1c 100644 --- a/config/locales/da.yml +++ b/config/locales/da.yml @@ -834,3 +834,5 @@ da: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/de.yml b/config/locales/de.yml index 14dab4071..b2157fc39 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -833,3 +833,5 @@ de: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/en.yml b/config/locales/en.yml index b907a56b4..d15800762 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -136,6 +136,8 @@ en: 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." diff --git a/config/locales/es.yml b/config/locales/es.yml index 89e4aaf6b..fedf37d1e 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -854,3 +854,5 @@ es: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/fi.yml b/config/locales/fi.yml index 2fa1c4ce7..8a6678ff5 100644 --- a/config/locales/fi.yml +++ b/config/locales/fi.yml @@ -844,3 +844,5 @@ fi: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 9e691bb6e..51483f705 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -836,3 +836,5 @@ fr: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/gl.yml b/config/locales/gl.yml index 7f44b8196..3f9383464 100644 --- a/config/locales/gl.yml +++ b/config/locales/gl.yml @@ -833,3 +833,5 @@ gl: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/he.yml b/config/locales/he.yml index 94cf716cd..bf82d0cfe 100644 --- a/config/locales/he.yml +++ b/config/locales/he.yml @@ -816,3 +816,5 @@ he: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/hu.yml b/config/locales/hu.yml index c204aaad3..241810108 100644 --- a/config/locales/hu.yml +++ b/config/locales/hu.yml @@ -839,3 +839,5 @@ label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/it.yml b/config/locales/it.yml index fa490e7c6..a5dabc5d3 100644 --- a/config/locales/it.yml +++ b/config/locales/it.yml @@ -819,3 +819,5 @@ it: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/ja.yml b/config/locales/ja.yml index 1d1c330b2..633ee7b85 100644 --- a/config/locales/ja.yml +++ b/config/locales/ja.yml @@ -841,3 +841,5 @@ ja: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/ko.yml b/config/locales/ko.yml index a69e6af6c..6d9a53ead 100644 --- a/config/locales/ko.yml +++ b/config/locales/ko.yml @@ -872,3 +872,5 @@ ko: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/lt.yml b/config/locales/lt.yml index 49e59720e..8280e1570 100644 --- a/config/locales/lt.yml +++ b/config/locales/lt.yml @@ -844,3 +844,5 @@ lt: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/nl.yml b/config/locales/nl.yml index df95addcc..67f2ae381 100644 --- a/config/locales/nl.yml +++ b/config/locales/nl.yml @@ -789,3 +789,5 @@ nl: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/no.yml b/config/locales/no.yml index 1e449573d..93ec6832e 100644 --- a/config/locales/no.yml +++ b/config/locales/no.yml @@ -806,3 +806,5 @@ label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/pl.yml b/config/locales/pl.yml index 016b55529..ea0268717 100644 --- a/config/locales/pl.yml +++ b/config/locales/pl.yml @@ -837,3 +837,5 @@ pl: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/pt-BR.yml b/config/locales/pt-BR.yml index aa5359b0a..c9db913bb 100644 --- a/config/locales/pt-BR.yml +++ b/config/locales/pt-BR.yml @@ -172,6 +172,8 @@ pt-BR: 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:' diff --git a/config/locales/pt.yml b/config/locales/pt.yml index 5bf3dbb0d..1ff51f848 100644 --- a/config/locales/pt.yml +++ b/config/locales/pt.yml @@ -825,3 +825,5 @@ pt: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/ro.yml b/config/locales/ro.yml index d9409b99d..24f961fb8 100644 --- a/config/locales/ro.yml +++ b/config/locales/ro.yml @@ -804,3 +804,5 @@ ro: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/ru.yml b/config/locales/ru.yml index 7120fe7dd..79c4d82fa 100644 --- a/config/locales/ru.yml +++ b/config/locales/ru.yml @@ -931,3 +931,5 @@ ru: label_view_all_revisions: Показать все ревизии label_tag: Метка label_branch: Ветвь + error_no_tracker_in_project: С этим проектом не ассоциирован ни один трекер. Проверьте настройки проекта. + error_no_default_issue_status: Не определен статус задача по умолчанию. Проверьте настройки (см. "Администрирование -> Статусы задачи"). diff --git a/config/locales/sk.yml b/config/locales/sk.yml index 27a0a32ea..4a4ae9ae0 100644 --- a/config/locales/sk.yml +++ b/config/locales/sk.yml @@ -806,3 +806,5 @@ sk: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/sl.yml b/config/locales/sl.yml index 6a1f4e273..0e48166ec 100644 --- a/config/locales/sl.yml +++ b/config/locales/sl.yml @@ -803,3 +803,5 @@ sl: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/sr.yml b/config/locales/sr.yml index 5e565a9ca..b781019a9 100644 --- a/config/locales/sr.yml +++ b/config/locales/sr.yml @@ -827,3 +827,5 @@ label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/sv.yml b/config/locales/sv.yml index 0e75a25e9..b6601a9ec 100644 --- a/config/locales/sv.yml +++ b/config/locales/sv.yml @@ -861,3 +861,5 @@ sv: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/th.yml b/config/locales/th.yml index 3eb1a2584..073a327fe 100644 --- a/config/locales/th.yml +++ b/config/locales/th.yml @@ -804,3 +804,5 @@ th: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/tr.yml b/config/locales/tr.yml index d6822490d..a189ab046 100644 --- a/config/locales/tr.yml +++ b/config/locales/tr.yml @@ -840,3 +840,5 @@ tr: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/uk.yml b/config/locales/uk.yml index e95ce4048..b6e5539b0 100644 --- a/config/locales/uk.yml +++ b/config/locales/uk.yml @@ -803,3 +803,5 @@ uk: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/vi.yml b/config/locales/vi.yml index 210532849..378c31e27 100644 --- a/config/locales/vi.yml +++ b/config/locales/vi.yml @@ -873,3 +873,5 @@ vi: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/zh-TW.yml b/config/locales/zh-TW.yml index 4cf562e24..a81a3abba 100644 --- a/config/locales/zh-TW.yml +++ b/config/locales/zh-TW.yml @@ -913,3 +913,5 @@ label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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"). diff --git a/config/locales/zh.yml b/config/locales/zh.yml index a25ef9617..8faaec050 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -836,3 +836,5 @@ zh: label_view_all_revisions: View all revisions label_tag: Tag label_branch: Branch + 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").