summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gettext.rake2
-rw-r--r--lib/tasks/gitlab/backup.rake4
-rw-r--r--lib/tasks/gitlab/exclusive_lease.rake2
-rw-r--r--lib/tasks/gitlab/ldap.rake2
-rw-r--r--lib/tasks/gitlab/setup.rake6
-rw-r--r--lib/tasks/gitlab/shell.rake12
-rw-r--r--lib/tasks/gitlab/storage.rake4
-rw-r--r--lib/tasks/gitlab/tcp_check.rake2
-rw-r--r--lib/tasks/gitlab/two_factor.rake2
-rw-r--r--lib/tasks/import.rake4
-rw-r--r--lib/tasks/yarn.rake2
11 files changed, 21 insertions, 21 deletions
diff --git a/lib/tasks/gettext.rake b/lib/tasks/gettext.rake
index 2235a6ba194..c5bdf43925a 100644
--- a/lib/tasks/gettext.rake
+++ b/lib/tasks/gettext.rake
@@ -62,7 +62,7 @@ namespace :gettext do
failed_linters = linters.select { |linter| linter.errors.any? }
if failed_linters.empty?
- puts 'All PO files are valid.'
+ puts _('All PO files are valid.')
else
failed_linters.each do |linter|
report_errors_for_file(linter.po_path, linter.errors)
diff --git a/lib/tasks/gitlab/backup.rake b/lib/tasks/gitlab/backup.rake
index e96fbb64372..422d44e6f2d 100644
--- a/lib/tasks/gitlab/backup.rake
+++ b/lib/tasks/gitlab/backup.rake
@@ -72,7 +72,7 @@ namespace :gitlab do
namespace :repo do
task create: :gitlab_environment do
- progress.puts "Dumping repositories ...".color(:blue)
+ progress.puts _("Dumping repositories ...").color(:blue)
if ENV["SKIP"] && ENV["SKIP"].include?("repositories")
progress.puts "[SKIPPED]".color(:cyan)
@@ -83,7 +83,7 @@ namespace :gitlab do
end
task restore: :gitlab_environment do
- progress.puts "Restoring repositories ...".color(:blue)
+ progress.puts _("Restoring repositories ...").color(:blue)
Backup::Repository.new(progress).restore
progress.puts "done".color(:green)
end
diff --git a/lib/tasks/gitlab/exclusive_lease.rake b/lib/tasks/gitlab/exclusive_lease.rake
index 83722bf6d94..1e11c55a017 100644
--- a/lib/tasks/gitlab/exclusive_lease.rake
+++ b/lib/tasks/gitlab/exclusive_lease.rake
@@ -3,7 +3,7 @@ namespace :gitlab do
desc 'GitLab | Clear existing exclusive leases for specified scope (default: *)'
task :clear, [:scope] => [:environment] do |_, args|
args[:scope].nil? ? Gitlab::ExclusiveLease.reset_all! : Gitlab::ExclusiveLease.reset_all!(args[:scope])
- puts 'All exclusive lease entries were removed.'
+ puts _('All exclusive lease entries were removed.')
end
end
end
diff --git a/lib/tasks/gitlab/ldap.rake b/lib/tasks/gitlab/ldap.rake
index 0459de27c96..7dea1addc56 100644
--- a/lib/tasks/gitlab/ldap.rake
+++ b/lib/tasks/gitlab/ldap.rake
@@ -13,7 +13,7 @@ namespace :gitlab do
if identities.empty?
puts "Found no user identities with '#{old_provider}' provider."
- puts 'Please check the provider name and try again.'
+ puts _('Please check the provider name and try again.')
exit 1
end
diff --git a/lib/tasks/gitlab/setup.rake b/lib/tasks/gitlab/setup.rake
index f71e69987cb..278bdfe3932 100644
--- a/lib/tasks/gitlab/setup.rake
+++ b/lib/tasks/gitlab/setup.rake
@@ -10,7 +10,7 @@ namespace :gitlab do
Gitlab::GitalyClient::ServerService.new(name).info
end
rescue GRPC::Unavailable => ex
- puts "Failed to connect to Gitaly...".color(:red)
+ puts _("Failed to connect to Gitaly...").color(:red)
puts "Error: #{ex}"
exit 1
end
@@ -19,8 +19,8 @@ namespace :gitlab do
warn_user_is_not_gitlab
unless ENV['force'] == 'yes'
- puts "This will create the necessary database tables and seed the database."
- puts "You will lose any previous data stored in the database."
+ puts _("This will create the necessary database tables and seed the database.")
+ puts _("You will lose any previous data stored in the database.")
ask_to_continue
puts ""
end
diff --git a/lib/tasks/gitlab/shell.rake b/lib/tasks/gitlab/shell.rake
index 0ebc6f00793..f4fa1a801ca 100644
--- a/lib/tasks/gitlab/shell.rake
+++ b/lib/tasks/gitlab/shell.rake
@@ -95,8 +95,8 @@ namespace :gitlab do
ensure_write_to_authorized_keys_is_enabled
unless ENV['force'] == 'yes'
- puts "This task will now rebuild the authorized_keys file."
- puts "You will lose any data stored in the authorized_keys file."
+ puts _("This task will now rebuild the authorized_keys file.")
+ puts _("You will lose any data stored in the authorized_keys file.")
ask_to_continue
puts ""
end
@@ -112,7 +112,7 @@ namespace :gitlab do
puts ""
unless $?.success?
- puts "Failed to add keys...".color(:red)
+ puts _("Failed to add keys...").color(:red)
exit 1
end
@@ -127,14 +127,14 @@ namespace :gitlab do
puts authorized_keys_is_disabled_warning
unless ENV['force'] == 'yes'
- puts 'Do you want to permanently enable the "Write to authorized_keys file" setting now?'
+ puts _('Do you want to permanently enable the "Write to authorized_keys file" setting now?')
ask_to_continue
end
- puts 'Enabling the "Write to authorized_keys file" setting...'
+ puts _('Enabling the "Write to authorized_keys file" setting...')
Gitlab::CurrentSettings.current_application_settings.update!(authorized_keys_enabled: true)
- puts 'Successfully enabled "Write to authorized_keys file"!'
+ puts _('Successfully enabled "Write to authorized_keys file"!')
puts ''
end
diff --git a/lib/tasks/gitlab/storage.rake b/lib/tasks/gitlab/storage.rake
index 09dc3aa9882..59bfb28ea3a 100644
--- a/lib/tasks/gitlab/storage.rake
+++ b/lib/tasks/gitlab/storage.rake
@@ -3,7 +3,7 @@ namespace :gitlab do
desc 'GitLab | Storage | Migrate existing projects to Hashed Storage'
task migrate_to_hashed: :environment do
if Gitlab::Database.read_only?
- warn 'This task requires database write access. Exiting.'
+ warn _('This task requires database write access. Exiting.')
next
end
@@ -29,7 +29,7 @@ namespace :gitlab do
legacy_projects_count = Project.with_unmigrated_storage.count
if legacy_projects_count == 0
- warn 'There are no projects requiring storage migration. Nothing to do!'
+ warn _('There are no projects requiring storage migration. Nothing to do!')
next
end
diff --git a/lib/tasks/gitlab/tcp_check.rake b/lib/tasks/gitlab/tcp_check.rake
index 1400f57d6b9..91458a72d70 100644
--- a/lib/tasks/gitlab/tcp_check.rake
+++ b/lib/tasks/gitlab/tcp_check.rake
@@ -13,7 +13,7 @@ namespace :gitlab do
else
puts "TCP connection to #{checker.remote} failed: #{checker.error}".color(:red)
puts
- puts 'Check that host and port are correct, and that the traffic is permitted through any firewalls.'
+ puts _('Check that host and port are correct, and that the traffic is permitted through any firewalls.')
exit 1
end
end
diff --git a/lib/tasks/gitlab/two_factor.rake b/lib/tasks/gitlab/two_factor.rake
index 6b22499a5c8..bd0c5ed5423 100644
--- a/lib/tasks/gitlab/two_factor.rake
+++ b/lib/tasks/gitlab/two_factor.rake
@@ -16,7 +16,7 @@ namespace :gitlab do
puts "Quitting...".color(:red)
end
else
- puts "There are currently no users with 2FA enabled.".color(:yellow)
+ puts _("There are currently no users with 2FA enabled.").color(:yellow)
end
end
diff --git a/lib/tasks/import.rake b/lib/tasks/import.rake
index f912f521dfb..709e4d3ef2d 100644
--- a/lib/tasks/import.rake
+++ b/lib/tasks/import.rake
@@ -21,7 +21,7 @@ class GithubImport
.new(@options[:token], @current_user, @github_repo)
.choose_one!
- raise 'No repo found!' unless @repo
+ raise _('No repo found!') unless @repo
show_warning!
@@ -34,7 +34,7 @@ class GithubImport
def show_warning!
puts "This will import GitHub #{@repo.full_name.bright} into GitLab #{@project_path.bright} as #{@current_user.name}"
- puts "Permission checks are ignored. Press any key to continue.".color(:red)
+ puts _("Permission checks are ignored. Press any key to continue.").color(:red)
STDIN.getch
diff --git a/lib/tasks/yarn.rake b/lib/tasks/yarn.rake
index 2ac88a039e7..1f95f52beaf 100644
--- a/lib/tasks/yarn.rake
+++ b/lib/tasks/yarn.rake
@@ -16,7 +16,7 @@ namespace :yarn do
unless system('yarn check --ignore-engines', out: File::NULL)
warn(
'Error: You have unmet dependencies. (`yarn check` command failed)'.color(:red),
- 'Run `yarn install` to install missing modules.'.color(:green)
+ _('Run `yarn install` to install missing modules.').color(:green)
)
abort
end