summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2017-09-06 20:15:06 +0200
committerMichael Kozono <mkozono@gmail.com>2017-09-06 12:07:21 -0700
commit4d53b657737b9f539451092722f0fa1621234ba3 (patch)
tree44b70d5ede5a3f3dee460b50efef6ba233ef1801
parent058c04fb2a552e2d426dff524d48190e168fe67d (diff)
downloadgitlab-ce-4d53b657737b9f539451092722f0fa1621234ba3.tar.gz
Make UpdateService error message translatable
-rw-r--r--app/services/groups/update_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/groups/update_service.rb b/app/services/groups/update_service.rb
index 7955dc32d52..246aff6c0fa 100644
--- a/app/services/groups/update_service.rb
+++ b/app/services/groups/update_service.rb
@@ -30,7 +30,7 @@ module Groups
return true unless changing_share_with_group_lock?
return true if can?(current_user, :change_share_with_group_lock, group)
- group.errors.add(:share_with_group_lock, 'cannot be disabled when the parent group Share lock is enabled, except by the owner of the parent group')
+ group.errors.add(:share_with_group_lock, s_('GroupSettings|cannot be disabled when the parent group Share with group lock is enabled, except by the owner of the parent group'))
false
end