##// END OF EJS Templates
Adds a specific error message for when the start date is too earlier than the minimum start date (#14086)....
Jean-Philippe Lang -
r11696:46085644ed7c
parent child
Show More
@@ -18,6 +18,7
18 18 class Issue < ActiveRecord::Base
19 19 include Redmine::SafeAttributes
20 20 include Redmine::Utils::DateCalculation
21 include Redmine::I18n
21 22
22 23 belongs_to :project
23 24 belongs_to :tracker
@@ -552,7 +553,7 class Issue < ActiveRecord::Base
552 553 end
553 554
554 555 if start_date && soonest_start && start_date < soonest_start
555 errors.add :start_date, :invalid
556 errors.add :start_date, :earlier_than_minimum_start_date, :date => format_date(soonest_start)
556 557 end
557 558
558 559 if fixed_version
@@ -128,6 +128,7 ar:
128 128 not_same_project: "لا ينتمي الى نفس المشروع"
129 129 circular_dependency: "هذه العلاقة سوف تخلق علاقة تبعية دائرية"
130 130 cant_link_an_issue_with_a_descendant: "لا يمكن ان تكون المشكلة مرتبطة بواحدة من المهام الفرعية"
131 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
131 132
132 133 actionview_instancetag_blank_option: الرجاء التحديد
133 134
@@ -196,6 +196,7 az:
196 196 not_same_project: "təkcə bir layihəyə aid deyildir"
197 197 circular_dependency: "Belə əlaqə dövri asılılığa gətirib çıxaracaq"
198 198 cant_link_an_issue_with_a_descendant: "Tapşırıq özünün alt tapşırığı ilə əlaqəli ola bilməz"
199 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
199 200
200 201 support:
201 202 array:
@@ -130,6 +130,7 bg:
130 130 not_same_project: "не е от същия проект"
131 131 circular_dependency: "Тази релация ще доведе до безкрайна зависимост"
132 132 cant_link_an_issue_with_a_descendant: "Една задача не може да бъде свързвана към своя подзадача"
133 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
133 134
134 135 actionview_instancetag_blank_option: Изберете
135 136
@@ -140,6 +140,7 bs:
140 140 not_same_project: "ne pripada istom projektu"
141 141 circular_dependency: "Ova relacija stvar cirkularnu zavisnost"
142 142 cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
143 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
143 144
144 145 actionview_instancetag_blank_option: Molimo odaberite
145 146
@@ -132,6 +132,7 ca:
132 132 not_same_project: "no pertany al mateix projecte"
133 133 circular_dependency: "Aquesta relació crearia una dependència circular"
134 134 cant_link_an_issue_with_a_descendant: "Un assumpte no es pot enllaçar a una de les seves subtasques"
135 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
135 136
136 137 actionview_instancetag_blank_option: Seleccioneu
137 138
@@ -134,6 +134,7 cs:
134 134 not_same_project: "nepatří stejnému projektu"
135 135 circular_dependency: "Tento vztah by vytvořil cyklickou závislost"
136 136 cant_link_an_issue_with_a_descendant: "Úkol nemůže být spojen s jedním z jeho dílčích úkolů"
137 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
137 138
138 139 actionview_instancetag_blank_option: Prosím vyberte
139 140
@@ -141,6 +141,7 da:
141 141 not_same_project: "hører ikke til samme projekt"
142 142 circular_dependency: "Denne relation vil skabe et afhængighedsforhold"
143 143 cant_link_an_issue_with_a_descendant: "En sag kan ikke relateres til en af dens underopgaver"
144 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
144 145
145 146 template:
146 147 header:
@@ -145,6 +145,7 de:
145 145 not_same_project: "gehört nicht zum selben Projekt"
146 146 circular_dependency: "Diese Beziehung würde eine zyklische Abhängigkeit erzeugen"
147 147 cant_link_an_issue_with_a_descendant: "Ein Ticket kann nicht mit einer Ihrer Unteraufgaben verlinkt werden"
148 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
148 149
149 150 actionview_instancetag_blank_option: Bitte auswählen
150 151
@@ -130,6 +130,7 el:
130 130 not_same_project: "δεν ανήκει στο ίδιο έργο"
131 131 circular_dependency: "Αυτή η σχέση θα δημιουργήσει κυκλικές εξαρτήσεις"
132 132 cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
133 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
133 134
134 135 actionview_instancetag_blank_option: Παρακαλώ επιλέξτε
135 136
@@ -133,6 +133,7 en-GB:
133 133 not_same_project: "doesn't belong to the same project"
134 134 circular_dependency: "This relation would create a circular dependency"
135 135 cant_link_an_issue_with_a_descendant: "An issue cannot be linked to one of its subtasks"
136 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
136 137
137 138 actionview_instancetag_blank_option: Please select
138 139
@@ -129,6 +129,7 en:
129 129 not_same_project: "doesn't belong to the same project"
130 130 circular_dependency: "This relation would create a circular dependency"
131 131 cant_link_an_issue_with_a_descendant: "An issue cannot be linked to one of its subtasks"
132 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
132 133
133 134 actionview_instancetag_blank_option: Please select
134 135
@@ -136,6 +136,7 es:
136 136 not_same_project: "no pertenece al mismo proyecto"
137 137 circular_dependency: "Esta relación podría crear una dependencia circular"
138 138 cant_link_an_issue_with_a_descendant: "Esta petición no puede ser ligada a una de estas tareas"
139 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
139 140
140 141 # Append your own errors here or at the model/attributes scope.
141 142
@@ -146,6 +146,7 et:
146 146 not_same_project: "ei kuulu sama projekti juurde"
147 147 circular_dependency: "See suhe looks vastastikuse sõltuvuse"
148 148 cant_link_an_issue_with_a_descendant: "Teemat ei saa sidustada tema enda alamteemaga"
149 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
149 150
150 151 actionview_instancetag_blank_option: "Palun vali"
151 152
@@ -131,6 +131,7 eu:
131 131 not_same_project: "ez dago proiektu berdinean"
132 132 circular_dependency: "Erlazio honek mendekotasun zirkular bat sortuko luke"
133 133 cant_link_an_issue_with_a_descendant: "Zeregin bat ezin da bere azpiataza batekin estekatu."
134 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
134 135
135 136 actionview_instancetag_blank_option: Hautatu mesedez
136 137
@@ -129,6 +129,7 fa:
129 129 not_same_project: "به همان پروژه وابسته نیست"
130 130 circular_dependency: "این وابستگی یک وابستگی دایره وار خواهد ساخت"
131 131 cant_link_an_issue_with_a_descendant: "یک پیامد نمی‌تواند به یکی از زیر کارهایش پیوند بخورد"
132 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
132 133
133 134 actionview_instancetag_blank_option: گزینش کنید
134 135
@@ -154,6 +154,7 fi:
154 154 not_same_project: "ei kuulu samaan projektiin"
155 155 circular_dependency: "Tämä suhde loisi kehän."
156 156 cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
157 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
157 158
158 159 actionview_instancetag_blank_option: Valitse, ole hyvä
159 160
@@ -146,6 +146,7 fr:
146 146 not_same_project: "n'appartient pas au même projet"
147 147 circular_dependency: "Cette relation créerait une dépendance circulaire"
148 148 cant_link_an_issue_with_a_descendant: "Une demande ne peut pas être liée à l'une de ses sous-tâches"
149 earlier_than_minimum_start_date: "ne peut pas être antérieure au %{date} à cause des demandes qui précédent"
149 150
150 151 actionview_instancetag_blank_option: Choisir
151 152
@@ -156,6 +156,7 gl:
156 156 not_same_project: "non pertence ao mesmo proxecto"
157 157 circular_dependency: "Esta relación podería crear unha dependencia circular"
158 158 cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
159 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
159 160
160 161 actionview_instancetag_blank_option: Por favor seleccione
161 162
@@ -134,6 +134,7 he:
134 134 not_same_project: "לא שייך לאותו הפרויקט"
135 135 circular_dependency: "קשר זה יצור תלות מעגלית"
136 136 cant_link_an_issue_with_a_descendant: "לא ניתן לקשר נושא לתת־משימה שלו"
137 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
137 138
138 139 actionview_instancetag_blank_option: בחר בבקשה
139 140
@@ -124,6 +124,7 hr:
124 124 not_same_project: "ne pripada istom projektu"
125 125 circular_dependency: "Ovaj relacija stvara kružnu ovisnost"
126 126 cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
127 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
127 128
128 129 actionview_instancetag_blank_option: Molimo odaberite
129 130
@@ -150,6 +150,7
150 150 not_same_project: "nem azonos projekthez tartozik"
151 151 circular_dependency: "Ez a kapcsolat egy körkörös függőséget eredményez"
152 152 cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
153 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
153 154
154 155 actionview_instancetag_blank_option: Kérem válasszon
155 156
@@ -129,6 +129,7 id:
129 129 not_same_project: "tidak tergabung dalam proyek yang sama"
130 130 circular_dependency: "kaitan ini akan menghasilkan circular dependency"
131 131 cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
132 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
132 133
133 134 actionview_instancetag_blank_option: Silakan pilih
134 135
@@ -134,6 +134,7 it:
134 134 not_same_project: "non appartiene allo stesso progetto"
135 135 circular_dependency: "Questa relazione creerebbe una dipendenza circolare"
136 136 cant_link_an_issue_with_a_descendant: "Una segnalazione non può essere collegata a una delle sue discendenti"
137 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
137 138
138 139 actionview_instancetag_blank_option: Scegli
139 140
@@ -150,6 +150,7 ja:
150 150 not_same_project: "同じプロジェクトに属していません"
151 151 circular_dependency: "この関係では、循環依存になります"
152 152 cant_link_an_issue_with_a_descendant: "指定したチケットとは親子関係になっているため関連づけられません"
153 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
153 154
154 155 actionview_instancetag_blank_option: 選んでください
155 156
@@ -176,6 +176,7 ko:
176 176 not_same_project: "는 같은 프로젝트에 속해 있지 않습니다"
177 177 circular_dependency: "이 관계는 순환 의존관계를 만들 있습니다"
178 178 cant_link_an_issue_with_a_descendant: "일감은 하위 일감과 연결할 없습니다."
179 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
179 180
180 181 actionview_instancetag_blank_option: 선택하세요
181 182
@@ -188,6 +188,7 lt:
188 188 not_same_project: "nepriklauso tam pačiam projektui"
189 189 circular_dependency: "Šis ryšys sukurtų ciklinę priklausomybę"
190 190 cant_link_an_issue_with_a_descendant: "Darbas negali būti susietas su viena savo darbo dalių"
191 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
191 192
192 193 actionview_instancetag_blank_option: Prašom parinkti
193 194
@@ -123,6 +123,7 lv:
123 123 not_same_project: "nepieder pie paša projekta"
124 124 circular_dependency: "Šī relācija radītu ciklisku atkarību"
125 125 cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
126 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
126 127
127 128 actionview_instancetag_blank_option: Izvēlieties
128 129
@@ -130,6 +130,7 mk:
130 130 not_same_project: "не припаѓа на истиот проект"
131 131 circular_dependency: "Оваа врска ќе креира кружна зависност"
132 132 cant_link_an_issue_with_a_descendant: "Задача неможе да се поврзе со една од нејзините подзадачи"
133 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
133 134
134 135 actionview_instancetag_blank_option: Изберете
135 136
@@ -129,6 +129,7 mn:
129 129 not_same_project: "нэг ижил төсөлд хамаарахгүй байна"
130 130 circular_dependency: "Энэ харьцаа нь гинжин(рекурсив) харьцаа үүсгэх юм байна"
131 131 cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
132 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
132 133
133 134 actionview_instancetag_blank_option: Сонгоно уу
134 135
@@ -127,6 +127,7 nl:
127 127 not_same_project: "hoort niet bij hetzelfde project"
128 128 circular_dependency: "Deze relatie zou een circulaire afhankelijkheid tot gevolg hebben"
129 129 cant_link_an_issue_with_a_descendant: "Een issue kan niet gelinked worden met een subtask"
130 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
130 131
131 132 actionview_instancetag_blank_option: Selecteer
132 133
@@ -118,6 +118,7
118 118 not_same_project: "hører ikke til samme prosjekt"
119 119 circular_dependency: "Denne relasjonen ville lagd en sirkulær avhengighet"
120 120 cant_link_an_issue_with_a_descendant: "En sak kan ikke kobles mot en av sine undersaker"
121 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
121 122
122 123
123 124 actionview_instancetag_blank_option: Vennligst velg
@@ -137,6 +137,7 pl:
137 137 not_same_project: "nie należy do tego samego projektu"
138 138 circular_dependency: "Ta relacja może wytworzyć zapętloną zależność"
139 139 cant_link_an_issue_with_a_descendant: "Zagadnienie nie może zostać powiązane z jednym z własnych podzagadnień"
140 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
140 141
141 142 support:
142 143 array:
@@ -149,6 +149,7 pt-BR:
149 149 not_same_project: "não pertence ao mesmo projeto"
150 150 circular_dependency: "Esta relação geraria uma dependência circular"
151 151 cant_link_an_issue_with_a_descendant: "Uma tarefa não pode ser relaciona a uma de suas subtarefas"
152 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
152 153
153 154 actionview_instancetag_blank_option: Selecione
154 155
@@ -137,6 +137,7 pt:
137 137 not_same_project: "não pertence ao mesmo projecto"
138 138 circular_dependency: "Esta relação iria criar uma dependência circular"
139 139 cant_link_an_issue_with_a_descendant: "Não é possível ligar uma tarefa a uma sub-tarefa que lhe é pertencente"
140 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
140 141
141 142 ## Translated by: Pedro Araújo <phcrva19@hotmail.com>
142 143 actionview_instancetag_blank_option: Seleccione
@@ -124,6 +124,7 ro:
124 124 not_same_project: "trebuie aparțină aceluiași proiect"
125 125 circular_dependency: "Această relație ar crea o dependență circulară"
126 126 cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
127 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
127 128
128 129 actionview_instancetag_blank_option: Selectați
129 130
@@ -206,6 +206,7 ru:
206 206 not_same_project: "не относится к одному проекту"
207 207 circular_dependency: "Такая связь приведет к циклической зависимости"
208 208 cant_link_an_issue_with_a_descendant: "Задача не может быть связана со своей подзадачей"
209 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
209 210
210 211 support:
211 212 array:
@@ -125,6 +125,7 sk:
125 125 not_same_project: "nepatrí rovnakému projektu"
126 126 circular_dependency: "Tento vzťah by vytvoril cyklickú závislosť"
127 127 cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
128 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
128 129
129 130 # SK translation by Stanislav Pach | stano.pach@seznam.cz
130 131
@@ -128,6 +128,7 sl:
128 128 not_same_project: "ne pripada istemu projektu"
129 129 circular_dependency: "Ta odnos bi povzročil krožno odvisnost"
130 130 cant_link_an_issue_with_a_descendant: "Zahtevek ne more biti povezan s svojo podnalogo"
131 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
131 132
132 133 actionview_instancetag_blank_option: Prosimo izberite
133 134
@@ -129,6 +129,7 sq:
129 129 not_same_project: "nuk i perket te njejtit projekt"
130 130 circular_dependency: "Ky relacion do te krijoje nje varesi ciklike (circular dependency)"
131 131 cant_link_an_issue_with_a_descendant: "Nje ceshtje nuk mund te lidhet me nenceshtje"
132 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
132 133
133 134 actionview_instancetag_blank_option: Zgjidhni
134 135
@@ -132,6 +132,7 sr-YU:
132 132 not_same_project: "ne pripada istom projektu"
133 133 circular_dependency: "Ova veza će stvoriti kružnu referencu"
134 134 cant_link_an_issue_with_a_descendant: "Problem ne može biti povezan sa jednim od svojih podzadataka"
135 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
135 136
136 137 actionview_instancetag_blank_option: Molim odaberite
137 138
@@ -130,6 +130,7 sr:
130 130 not_same_project: "не припада истом пројекту"
131 131 circular_dependency: "Ова веза ће створити кружну референцу"
132 132 cant_link_an_issue_with_a_descendant: "Проблем не може бити повезан са једним од својих подзадатака"
133 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
133 134
134 135 actionview_instancetag_blank_option: Молим одаберите
135 136
@@ -134,6 +134,7 sv:
134 134 not_same_project: "tillhör inte samma projekt"
135 135 circular_dependency: "Denna relation skulle skapa ett cirkulärt beroende"
136 136 cant_link_an_issue_with_a_descendant: "Ett ärende kan inte länkas till ett av dess underärenden"
137 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
137 138
138 139 direction: ltr
139 140 date:
@@ -127,6 +127,7 th:
127 127 not_same_project: "ไม่ได้อยู่ในโครงการเดียวกัน"
128 128 circular_dependency: "ความสัมพันธ์อ้างอิงเป็นวงกลม"
129 129 cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
130 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
130 131
131 132 actionview_instancetag_blank_option: กรุณาเลือก
132 133
@@ -151,6 +151,7 tr:
151 151 not_same_project: "aynı projeye ait değil"
152 152 circular_dependency: "Bu ilişki döngüsel bağımlılık meydana getirecektir"
153 153 cant_link_an_issue_with_a_descendant: "Bir iş, alt işlerinden birine bağlanamaz"
154 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
154 155 models:
155 156
156 157 actionview_instancetag_blank_option: Lütfen Seçin
@@ -127,6 +127,7 uk:
127 127 not_same_project: "не відносяться до одного проекту"
128 128 circular_dependency: "Такий зв'язок приведе до циклічної залежності"
129 129 cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
130 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
130 131
131 132 actionview_instancetag_blank_option: Оберіть
132 133
@@ -144,6 +144,7 vi:
144 144 not_same_project: "không thuộc cùng dự án"
145 145 circular_dependency: "quan hệ thể gây ra lặp tận"
146 146 cant_link_an_issue_with_a_descendant: "Một vấn đề không thể liên kết tới một trong số những tác vụ con của nó"
147 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
147 148
148 149 direction: ltr
149 150 date:
@@ -186,6 +186,7
186 186 not_same_project: "不屬於同一個專案"
187 187 circular_dependency: "這個關聯會導致環狀相依"
188 188 cant_link_an_issue_with_a_descendant: "問題無法被連結至自己的子任務"
189 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
189 190
190 191 # You can define own errors for models or model attributes.
191 192 # The values :model, :attribute and :value are always available for interpolation.
@@ -133,6 +133,7 zh:
133 133 not_same_project: "不属于同一个项目"
134 134 circular_dependency: "此关联将导致循环依赖"
135 135 cant_link_an_issue_with_a_descendant: "问题不能关联到它的子任务"
136 earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
136 137
137 138 actionview_instancetag_blank_option: 请选择
138 139
General Comments 0
You need to be logged in to leave comments. Login now