diff options
author | Martin Wortschack <mwortschack@gitlab.com> | 2019-04-12 15:28:07 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-04-12 15:28:07 +0300 |
commit | cd6f77409359de53c20c99c5d291ada3545d9d28 (patch) | |
tree | 6adff56500804a67329a8746613c370fe62bb24e /app/models/project_group_link.rb | |
parent | f9cf04fe4fa39a71ba4d17201397fff5f3dc7d97 (diff) |
Externalize strings in app/models
- Update PO file
Diffstat (limited to 'app/models/project_group_link.rb')
-rw-r--r-- | app/models/project_group_link.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/project_group_link.rb b/app/models/project_group_link.rb index 58b555c3581..feaf172d48d 100644 --- a/app/models/project_group_link.rb +++ b/app/models/project_group_link.rb @@ -14,7 +14,7 @@ class ProjectGroupLink < ApplicationRecord validates :project_id, presence: true validates :group, presence: true - validates :group_id, uniqueness: { scope: [:project_id], message: "already shared with this group" } + validates :group_id, uniqueness: { scope: [:project_id], message: _("already shared with this group") } validates :group_access, presence: true validates :group_access, inclusion: { in: Gitlab::Access.values }, presence: true validate :different_group @@ -44,7 +44,7 @@ class ProjectGroupLink < ApplicationRecord group_ids = project_group.ancestors.map(&:id).push(project_group.id) if group_ids.include?(self.group.id) - errors.add(:base, "Project cannot be shared with the group it is in or one of its ancestors.") + errors.add(:base, _("Project cannot be shared with the group it is in or one of its ancestors.")) end end |