diff options
author | Martin Wortschack <mwortschack@gitlab.com> | 2019-04-12 12:28:07 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-04-12 12:28:07 +0000 |
commit | cd6f77409359de53c20c99c5d291ada3545d9d28 (patch) | |
tree | 6adff56500804a67329a8746613c370fe62bb24e /app/models/upload.rb | |
parent | f9cf04fe4fa39a71ba4d17201397fff5f3dc7d97 (diff) | |
download | gitlab-ce-cd6f77409359de53c20c99c5d291ada3545d9d28.tar.gz |
Externalize strings in app/models
- Update PO file
Diffstat (limited to 'app/models/upload.rb')
-rw-r--r-- | app/models/upload.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/upload.rb b/app/models/upload.rb index 9bffdcdb2e7..ca74f16b3b8 100644 --- a/app/models/upload.rb +++ b/app/models/upload.rb @@ -45,7 +45,7 @@ class Upload < ApplicationRecord end def absolute_path - raise ObjectStorage::RemoteStoreError, "Remote object has no absolute path." unless local? + raise ObjectStorage::RemoteStoreError, _("Remote object has no absolute path.") unless local? return path unless relative_path? uploader_class.absolute_path(self) @@ -71,10 +71,10 @@ class Upload < ApplicationRecord # Help sysadmins find missing upload files if persisted? && !exist if Gitlab::Sentry.enabled? - Raven.capture_message("Upload file does not exist", extra: self.attributes) + Raven.capture_message(_("Upload file does not exist"), extra: self.attributes) end - Gitlab::Metrics.counter(:upload_file_does_not_exist_total, 'The number of times an upload record could not find its file').increment + Gitlab::Metrics.counter(:upload_file_does_not_exist_total, _('The number of times an upload record could not find its file')).increment end exist |