Adds a specific error message for when the start date is too earlier than the minimum start date (#14086).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11926 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2013-06-04 17:17:48 +00:00
parent 01411ab567
commit 46085644ed
49 changed files with 50 additions and 1 deletions

View File

@ -18,6 +18,7 @@
class Issue < ActiveRecord::Base
include Redmine::SafeAttributes
include Redmine::Utils::DateCalculation
include Redmine::I18n
belongs_to :project
belongs_to :tracker
@ -552,7 +553,7 @@ class Issue < ActiveRecord::Base
end
if start_date && soonest_start && start_date < soonest_start
errors.add :start_date, :invalid
errors.add :start_date, :earlier_than_minimum_start_date, :date => format_date(soonest_start)
end
if fixed_version

View File

@ -128,6 +128,7 @@ ar:
not_same_project: "لا ينتمي الى نفس المشروع"
circular_dependency: "هذه العلاقة سوف تخلق علاقة تبعية دائرية"
cant_link_an_issue_with_a_descendant: "لا يمكن ان تكون المشكلة مرتبطة بواحدة من المهام الفرعية"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: الرجاء التحديد

View File

@ -196,6 +196,7 @@ az:
not_same_project: "təkcə bir layihəyə aid deyildir"
circular_dependency: "Belə əlaqə dövri asılılığa gətirib çıxaracaq"
cant_link_an_issue_with_a_descendant: "Tapşırıq özünün alt tapşırığı ilə əlaqəli ola bilməz"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
support:
array:

View File

@ -130,6 +130,7 @@ bg:
not_same_project: "не е от същия проект"
circular_dependency: "Тази релация ще доведе до безкрайна зависимост"
cant_link_an_issue_with_a_descendant: "Една задача не може да бъде свързвана към своя подзадача"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Изберете

View File

@ -140,6 +140,7 @@ bs:
not_same_project: "ne pripada istom projektu"
circular_dependency: "Ova relacija stvar cirkularnu zavisnost"
cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Molimo odaberite

View File

@ -132,6 +132,7 @@ ca:
not_same_project: "no pertany al mateix projecte"
circular_dependency: "Aquesta relació crearia una dependència circular"
cant_link_an_issue_with_a_descendant: "Un assumpte no es pot enllaçar a una de les seves subtasques"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Seleccioneu

View File

@ -134,6 +134,7 @@ cs:
not_same_project: "nepatří stejnému projektu"
circular_dependency: "Tento vztah by vytvořil cyklickou závislost"
cant_link_an_issue_with_a_descendant: "Úkol nemůže být spojen s jedním z jeho dílčích úkolů"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Prosím vyberte

View File

@ -141,6 +141,7 @@ da:
not_same_project: "hører ikke til samme projekt"
circular_dependency: "Denne relation vil skabe et afhængighedsforhold"
cant_link_an_issue_with_a_descendant: "En sag kan ikke relateres til en af dens underopgaver"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
template:
header:

View File

@ -145,6 +145,7 @@ de:
not_same_project: "gehört nicht zum selben Projekt"
circular_dependency: "Diese Beziehung würde eine zyklische Abhängigkeit erzeugen"
cant_link_an_issue_with_a_descendant: "Ein Ticket kann nicht mit einer Ihrer Unteraufgaben verlinkt werden"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Bitte auswählen

View File

@ -130,6 +130,7 @@ el:
not_same_project: "δεν ανήκει στο ίδιο έργο"
circular_dependency: "Αυτή η σχέση θα δημιουργήσει κυκλικές εξαρτήσεις"
cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Παρακαλώ επιλέξτε

View File

@ -133,6 +133,7 @@ en-GB:
not_same_project: "doesn't belong to the same project"
circular_dependency: "This relation would create a circular dependency"
cant_link_an_issue_with_a_descendant: "An issue cannot be linked to one of its subtasks"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Please select

View File

@ -129,6 +129,7 @@ en:
not_same_project: "doesn't belong to the same project"
circular_dependency: "This relation would create a circular dependency"
cant_link_an_issue_with_a_descendant: "An issue cannot be linked to one of its subtasks"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Please select

View File

@ -136,6 +136,7 @@ es:
not_same_project: "no pertenece al mismo proyecto"
circular_dependency: "Esta relación podría crear una dependencia circular"
cant_link_an_issue_with_a_descendant: "Esta petición no puede ser ligada a una de estas tareas"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
# Append your own errors here or at the model/attributes scope.

View File

@ -146,6 +146,7 @@ et:
not_same_project: "ei kuulu sama projekti juurde"
circular_dependency: "See suhe looks vastastikuse sõltuvuse"
cant_link_an_issue_with_a_descendant: "Teemat ei saa sidustada tema enda alamteemaga"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: "Palun vali"

View File

@ -131,6 +131,7 @@ eu:
not_same_project: "ez dago proiektu berdinean"
circular_dependency: "Erlazio honek mendekotasun zirkular bat sortuko luke"
cant_link_an_issue_with_a_descendant: "Zeregin bat ezin da bere azpiataza batekin estekatu."
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Hautatu mesedez

View File

@ -129,6 +129,7 @@ fa:
not_same_project: "به همان پروژه وابسته نیست"
circular_dependency: "این وابستگی یک وابستگی دایره وار خواهد ساخت"
cant_link_an_issue_with_a_descendant: "یک پیامد نمی‌تواند به یکی از زیر کارهایش پیوند بخورد"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: گزینش کنید

View File

@ -154,6 +154,7 @@ fi:
not_same_project: "ei kuulu samaan projektiin"
circular_dependency: "Tämä suhde loisi kehän."
cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Valitse, ole hyvä

View File

@ -146,6 +146,7 @@ fr:
not_same_project: "n'appartient pas au même projet"
circular_dependency: "Cette relation créerait une dépendance circulaire"
cant_link_an_issue_with_a_descendant: "Une demande ne peut pas être liée à l'une de ses sous-tâches"
earlier_than_minimum_start_date: "ne peut pas être antérieure au %{date} à cause des demandes qui précédent"
actionview_instancetag_blank_option: Choisir

View File

@ -156,6 +156,7 @@ gl:
not_same_project: "non pertence ao mesmo proxecto"
circular_dependency: "Esta relación podería crear unha dependencia circular"
cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Por favor seleccione

View File

@ -134,6 +134,7 @@ he:
not_same_project: "לא שייך לאותו הפרויקט"
circular_dependency: "קשר זה יצור תלות מעגלית"
cant_link_an_issue_with_a_descendant: "לא ניתן לקשר נושא לתת־משימה שלו"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: בחר בבקשה

View File

@ -124,6 +124,7 @@ hr:
not_same_project: "ne pripada istom projektu"
circular_dependency: "Ovaj relacija stvara kružnu ovisnost"
cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Molimo odaberite

View File

@ -150,6 +150,7 @@
not_same_project: "nem azonos projekthez tartozik"
circular_dependency: "Ez a kapcsolat egy körkörös függőséget eredményez"
cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Kérem válasszon

View File

@ -129,6 +129,7 @@ id:
not_same_project: "tidak tergabung dalam proyek yang sama"
circular_dependency: "kaitan ini akan menghasilkan circular dependency"
cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Silakan pilih

View File

@ -134,6 +134,7 @@ it:
not_same_project: "non appartiene allo stesso progetto"
circular_dependency: "Questa relazione creerebbe una dipendenza circolare"
cant_link_an_issue_with_a_descendant: "Una segnalazione non può essere collegata a una delle sue discendenti"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Scegli

View File

@ -150,6 +150,7 @@ ja:
not_same_project: "同じプロジェクトに属していません"
circular_dependency: "この関係では、循環依存になります"
cant_link_an_issue_with_a_descendant: "指定したチケットとは親子関係になっているため関連づけられません"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: 選んでください

View File

@ -176,6 +176,7 @@ ko:
not_same_project: "는 같은 프로젝트에 속해 있지 않습니다"
circular_dependency: "이 관계는 순환 의존관계를 만들 수 있습니다"
cant_link_an_issue_with_a_descendant: "일감은 하위 일감과 연결할 수 없습니다."
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: 선택하세요

View File

@ -188,6 +188,7 @@ lt:
not_same_project: "nepriklauso tam pačiam projektui"
circular_dependency: "Šis ryšys sukurtų ciklinę priklausomybę"
cant_link_an_issue_with_a_descendant: "Darbas negali būti susietas su viena iš savo darbo dalių"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Prašom parinkti

View File

@ -123,6 +123,7 @@ lv:
not_same_project: "nepieder pie tā paša projekta"
circular_dependency: "Šī relācija radītu ciklisku atkarību"
cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Izvēlieties

View File

@ -130,6 +130,7 @@ mk:
not_same_project: "не припаѓа на истиот проект"
circular_dependency: "Оваа врска ќе креира кружна зависност"
cant_link_an_issue_with_a_descendant: "Задача неможе да се поврзе со една од нејзините подзадачи"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Изберете

View File

@ -129,6 +129,7 @@ mn:
not_same_project: "нэг ижил төсөлд хамаарахгүй байна"
circular_dependency: "Энэ харьцаа нь гинжин(рекурсив) харьцаа үүсгэх юм байна"
cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Сонгоно уу

View File

@ -127,6 +127,7 @@ nl:
not_same_project: "hoort niet bij hetzelfde project"
circular_dependency: "Deze relatie zou een circulaire afhankelijkheid tot gevolg hebben"
cant_link_an_issue_with_a_descendant: "Een issue kan niet gelinked worden met een subtask"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Selecteer

View File

@ -118,6 +118,7 @@
not_same_project: "hører ikke til samme prosjekt"
circular_dependency: "Denne relasjonen ville lagd en sirkulær avhengighet"
cant_link_an_issue_with_a_descendant: "En sak kan ikke kobles mot en av sine undersaker"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Vennligst velg

View File

@ -137,6 +137,7 @@ pl:
not_same_project: "nie należy do tego samego projektu"
circular_dependency: "Ta relacja może wytworzyć zapętloną zależność"
cant_link_an_issue_with_a_descendant: "Zagadnienie nie może zostać powiązane z jednym z własnych podzagadnień"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
support:
array:

View File

@ -149,6 +149,7 @@ pt-BR:
not_same_project: "não pertence ao mesmo projeto"
circular_dependency: "Esta relação geraria uma dependência circular"
cant_link_an_issue_with_a_descendant: "Uma tarefa não pode ser relaciona a uma de suas subtarefas"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Selecione

View File

@ -137,6 +137,7 @@ pt:
not_same_project: "não pertence ao mesmo projecto"
circular_dependency: "Esta relação iria criar uma dependência circular"
cant_link_an_issue_with_a_descendant: "Não é possível ligar uma tarefa a uma sub-tarefa que lhe é pertencente"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
## Translated by: Pedro Araújo <phcrva19@hotmail.com>
actionview_instancetag_blank_option: Seleccione

View File

@ -124,6 +124,7 @@ ro:
not_same_project: "trebuie să aparțină aceluiași proiect"
circular_dependency: "Această relație ar crea o dependență circulară"
cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Selectați

View File

@ -206,6 +206,7 @@ ru:
not_same_project: "не относится к одному проекту"
circular_dependency: "Такая связь приведет к циклической зависимости"
cant_link_an_issue_with_a_descendant: "Задача не может быть связана со своей подзадачей"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
support:
array:

View File

@ -125,6 +125,7 @@ sk:
not_same_project: "nepatrí rovnakému projektu"
circular_dependency: "Tento vzťah by vytvoril cyklickú závislosť"
cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
# SK translation by Stanislav Pach | stano.pach@seznam.cz

View File

@ -128,6 +128,7 @@ sl:
not_same_project: "ne pripada istemu projektu"
circular_dependency: "Ta odnos bi povzročil krožno odvisnost"
cant_link_an_issue_with_a_descendant: "Zahtevek ne more biti povezan s svojo podnalogo"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Prosimo izberite

View File

@ -129,6 +129,7 @@ sq:
not_same_project: "nuk i perket te njejtit projekt"
circular_dependency: "Ky relacion do te krijoje nje varesi ciklike (circular dependency)"
cant_link_an_issue_with_a_descendant: "Nje ceshtje nuk mund te lidhet me nenceshtje"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Zgjidhni

View File

@ -132,6 +132,7 @@ sr-YU:
not_same_project: "ne pripada istom projektu"
circular_dependency: "Ova veza će stvoriti kružnu referencu"
cant_link_an_issue_with_a_descendant: "Problem ne može biti povezan sa jednim od svojih podzadataka"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Molim odaberite

View File

@ -130,6 +130,7 @@ sr:
not_same_project: "не припада истом пројекту"
circular_dependency: "Ова веза ће створити кружну референцу"
cant_link_an_issue_with_a_descendant: "Проблем не може бити повезан са једним од својих подзадатака"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Молим одаберите

View File

@ -134,6 +134,7 @@ sv:
not_same_project: "tillhör inte samma projekt"
circular_dependency: "Denna relation skulle skapa ett cirkulärt beroende"
cant_link_an_issue_with_a_descendant: "Ett ärende kan inte länkas till ett av dess underärenden"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
direction: ltr
date:

View File

@ -127,6 +127,7 @@ th:
not_same_project: "ไม่ได้อยู่ในโครงการเดียวกัน"
circular_dependency: "ความสัมพันธ์อ้างอิงเป็นวงกลม"
cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: กรุณาเลือก

View File

@ -151,6 +151,7 @@ tr:
not_same_project: "aynı projeye ait değil"
circular_dependency: "Bu ilişki döngüsel bağımlılık meydana getirecektir"
cant_link_an_issue_with_a_descendant: "Bir iş, alt işlerinden birine bağlanamaz"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
models:
actionview_instancetag_blank_option: Lütfen Seçin

View File

@ -127,6 +127,7 @@ uk:
not_same_project: "не відносяться до одного проекту"
circular_dependency: "Такий зв'язок приведе до циклічної залежності"
cant_link_an_issue_with_a_descendant: "An issue can not be linked to one of its subtasks"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: Оберіть

View File

@ -144,6 +144,7 @@ vi:
not_same_project: "không thuộc cùng dự án"
circular_dependency: "quan hệ có thể gây ra lặp vô tận"
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ó"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
direction: ltr
date:

View File

@ -186,6 +186,7 @@
not_same_project: "不屬於同一個專案"
circular_dependency: "這個關聯會導致環狀相依"
cant_link_an_issue_with_a_descendant: "問題無法被連結至自己的子任務"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
# You can define own errors for models or model attributes.
# The values :model, :attribute and :value are always available for interpolation.

View File

@ -133,6 +133,7 @@ zh:
not_same_project: "不属于同一个项目"
circular_dependency: "此关联将导致循环依赖"
cant_link_an_issue_with_a_descendant: "问题不能关联到它的子任务"
earlier_than_minimum_start_date: "cannot be earlier than %{date} because of preceding issues"
actionview_instancetag_blank_option: 请选择