From e33e3d29ae56ddd10b66513c35f3e318ea375cb9 Mon Sep 17 00:00:00 2001 From: Luke Bennett Date: Wed, 30 Jan 2019 05:10:37 +0000 Subject: Autofixed some untranslated strings --- lib/backup/files.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/backup/files.rb') diff --git a/lib/backup/files.rb b/lib/backup/files.rb index 2bac84846c5..ca088401abd 100644 --- a/lib/backup/files.rb +++ b/lib/backup/files.rb @@ -28,7 +28,7 @@ module Backup unless status.zero? puts output - raise Backup::Error, 'Backup failed' + raise Backup::Error, _('Backup failed') end run_pipeline!([%W(#{tar} --exclude=lost+found -C #{@backup_files_dir} -cf - .), %w(gzip -c -1)], out: [backup_tarball, 'w', 0600]) @@ -78,7 +78,7 @@ module Backup return if status.compact.all?(&:success?) regex = /^g?tar: \.: Cannot mkdir: No such file or directory$/ - raise Backup::Error, 'Backup failed' unless err_r.read =~ regex + raise Backup::Error, _('Backup failed') unless err_r.read =~ regex end end end -- cgit v1.2.1