Skip to content

Commit f07cb72

Browse files
committed
Move sprint error locales to backlogs module
Moves `must_be_in_planning` and `only_one_active_sprint_allowed` from core `config/locales/en.yml` to the backlogs module's locale file, as these are sprint-specific error messages.
1 parent 600922d commit f07cb72

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

config/locales/en.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2002,8 +2002,6 @@ en:
20022002
not_editable: "cannot be edited because it is already in effect."
20032003
not_current_user: "is not the current user."
20042004
system_wide_non_working_day_exists: "conflicts with an existing system-wide non-working day for this date."
2005-
must_be_in_planning: "must be in planning to start."
2006-
only_one_active_sprint_allowed: "only one active sprint is allowed per project."
20072005
not_found: "not found."
20082006
not_a_date: "is not a valid date."
20092007
not_a_datetime: "is not a valid date time."

modules/backlogs/config/locales/en.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ en:
3232
name: "OpenProject Backlogs"
3333
description: "This module adds features enabling agile teams to work with OpenProject in Scrum projects."
3434

35+
activemodel:
36+
errors:
37+
messages:
38+
must_be_in_planning: "must be in planning to start."
39+
only_one_active_sprint_allowed: "only one active sprint is allowed per project."
40+
3541
activerecord:
3642
attributes:
3743
agile/sprint:

0 commit comments

Comments
 (0)