From 899df6a0514d362ac4ffc729fee72b40637cc455 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Sun, 6 Mar 2022 17:23:36 +0000 Subject: Lazy load locales (#36728). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@21448 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/i18n.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/redmine') diff --git a/lib/redmine/i18n.rb b/lib/redmine/i18n.rb index b1066539f..13b84512f 100644 --- a/lib/redmine/i18n.rb +++ b/lib/redmine/i18n.rb @@ -157,7 +157,7 @@ module Redmine # Custom backend based on I18n::Backend::Simple with the following changes: # * available_locales are determined by looking at translation file names - class Backend < ::I18n::Backend::Simple + class Backend < ::I18n::Backend::LazyLoadable module Implementation # Get available locales from the translations filenames def available_locales -- cgit v1.2.3