Vote #81846
完了Reintroduce lazy loading of i18n files
0%
説明
this change restores a removed optimization https://www.redmine.org/issues/31384
see https://github.com/ruby-i18n/i18n/pull/612
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
journals
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Patch committed, thanks!
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Closed,31384,Remove custom lazy loading of i18n files
relates,Closed,36564,Update I18n to 1.10
relates,Closed,36998,Revert lazy loading of i18n files introduced in Redmine 5.0