Project

General

Profile

Actions

Feature #36728

closed

Reintroduce lazy loading of i18n files

Feature #36728: Reintroduce lazy loading of i18n files

Added by Pavel Rosický over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Category:
I18n
Target version:
Resolution:

Description

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


Related issues 3 (0 open — 3 closed)

Related to Redmine - Patch #31384: Remove custom lazy loading of i18n filesClosedJean-Philippe LangActions
Related to Redmine - Patch #36564: Update I18n to 1.10ClosedGo MAEDAActions
Related to Redmine - Defect #36998: Revert lazy loading of i18n files introduced in Redmine 5.0ClosedMarius BĂLTEANUActions

Updated by Go MAEDA over 4 years ago Actions #1

  • Related to Patch #31384: Remove custom lazy loading of i18n files added

Updated by Go MAEDA over 4 years ago Actions #2

Updated by Go MAEDA over 4 years ago Actions #3

  • Target version set to Candidate for next major release

Updated by Marius BĂLTEANU over 4 years ago Actions #4

  • Category set to I18n
  • Status changed from New to Resolved
  • Assignee set to Marius BĂLTEANU
  • Target version changed from Candidate for next major release to 5.0.0

Patch committed, thanks!

Updated by Marius BĂLTEANU over 4 years ago Actions #5

  • Status changed from Resolved to Closed

Updated by Go MAEDA over 4 years ago Actions #6

  • Tracker changed from Patch to Feature

Updated by Go MAEDA over 4 years ago Actions #7

  • Related to Defect #36998: Revert lazy loading of i18n files introduced in Redmine 5.0 added

Updated by Marius BĂLTEANU over 4 years ago Actions #8

Feature reverted in Redmine 5.0.1 (#36998).

Actions

Also available in: PDF Atom