mirror of
https://github.com/redmine/redmine.git
synced 2026-01-26 17:30:00 +01:00
Lazy load locales (#36728).
Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@21448 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user