summaryrefslogtreecommitdiff
path: root/lib/gitlab/checks/tag_check.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/checks/tag_check.rb')
-rw-r--r--lib/gitlab/checks/tag_check.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/gitlab/checks/tag_check.rb b/lib/gitlab/checks/tag_check.rb
index 2a75c8059bd..d703e68199e 100644
--- a/lib/gitlab/checks/tag_check.rb
+++ b/lib/gitlab/checks/tag_check.rb
@@ -4,15 +4,15 @@ module Gitlab
module Checks
class TagCheck < BaseChecker
ERROR_MESSAGES = {
- change_existing_tags: 'You are not allowed to change existing tags on this project.',
- update_protected_tag: 'Protected tags cannot be updated.',
- delete_protected_tag: 'Protected tags cannot be deleted.',
- create_protected_tag: 'You are not allowed to create this tag as it is protected.'
+ change_existing_tags: _('You are not allowed to change existing tags on this project.'),
+ update_protected_tag: _('Protected tags cannot be updated.'),
+ delete_protected_tag: _('Protected tags cannot be deleted.'),
+ create_protected_tag: _('You are not allowed to create this tag as it is protected.')
}.freeze
LOG_MESSAGES = {
- tag_checks: "Checking if you are allowed to change existing tags...",
- protected_tag_checks: "Checking if you are creating, updating or deleting a protected tag..."
+ tag_checks: _("Checking if you are allowed to change existing tags..."),
+ protected_tag_checks: _("Checking if you are creating, updating or deleting a protected tag...")
}.freeze
def validate!