diff options
| author | Teddy Wing | 2017-07-17 17:59:34 +0200 |
|---|---|---|
| committer | Teddy Wing | 2017-07-21 15:59:53 +0200 |
| commit | 161f3184783ba3419238d3ce6b2291ef9fabfa01 (patch) | |
| tree | dc7e42217b3b4052fc98331568316d4e0543abdd /config | |
| parent | ac03cfc3b24c49b952a31f84cf7063a9cd68acc4 (diff) | |
| download | chouette-core-161f3184783ba3419238d3ce6b2291ef9fabfa01.tar.bz2 | |
VehicleJourneyAtStop: Add error message to max day offset error
Add a custom error message for when the day offset exceeds our maximum.
Unfortunately, this uses Rails 5 lambda syntax, so it doesn't work. Will
need to extract it to a method, but figured I'd just commit this anyway
for posterity.
The French error message text was taken from the Redmine issue, authored
by Luc. I translated it into English.
Refs #3597
Diffstat (limited to 'config')
| -rw-r--r-- | config/locales/vehicle_journey_at_stops.en.yml | 4 | ||||
| -rw-r--r-- | config/locales/vehicle_journey_at_stops.fr.yml | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/config/locales/vehicle_journey_at_stops.en.yml b/config/locales/vehicle_journey_at_stops.en.yml new file mode 100644 index 000000000..a96effa2b --- /dev/null +++ b/config/locales/vehicle_journey_at_stops.en.yml @@ -0,0 +1,4 @@ +en: + vehicle_journey_at_stops: + errors: + day_offset_must_not_exceed_max: "The vehicle journey with ID %{local_id} cannot have times exceeding %{max} days" diff --git a/config/locales/vehicle_journey_at_stops.fr.yml b/config/locales/vehicle_journey_at_stops.fr.yml new file mode 100644 index 000000000..3eff79cf4 --- /dev/null +++ b/config/locales/vehicle_journey_at_stops.fr.yml @@ -0,0 +1,4 @@ +fr: + vehicle_journey_at_stops: + errors: + day_offset_must_not_exceed_max: "La course avec l'identifiant %{local_id} ne peut pas avoir des horaires sur plus de %{max} jours" |
