From d482735614b8c0e32564f468f170f0e879eee731 Mon Sep 17 00:00:00 2001 From: Milan Zazrivec Date: Mon, 8 Oct 2018 16:05:28 +0200 Subject: [PATCH] Don't translate FileDepot types The types (NFS, AWS, ...) as they come from the backend should remain untranslated. Gettext should be applied in UI (if needed). --- app/models/file_depot.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/file_depot.rb b/app/models/file_depot.rb index 6388947a011..e1a1326da8d 100644 --- a/app/models/file_depot.rb +++ b/app/models/file_depot.rb @@ -9,7 +9,7 @@ class FileDepot < ApplicationRecord attr_accessor :file def self.supported_depots - @supported_depots ||= descendants.each_with_object({}) { |klass, hash| hash[klass.name] = Dictionary.gettext(klass.name, :type => :model, :notfound => :titleize) }.freeze + @supported_depots ||= descendants.each_with_object({}) { |klass, hash| hash[klass.name] = Dictionary.gettext(klass.name, :type => :model, :notfound => :titleize, :translate => false) }.freeze end def self.supported_protocols