mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: auto-load all plugin locales so that they can be used in PrettyText
This commit is contained in:
@@ -88,8 +88,9 @@ module Discourse
|
||||
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
||||
config.time_zone = 'UTC'
|
||||
|
||||
# auto-load server locale in plugins
|
||||
config.i18n.load_path += Dir["#{Rails.root}/plugins/*/config/locales/server.*.yml"]
|
||||
# auto-load locales in plugins
|
||||
# NOTE: we load both client & server locales since some might be used by PrettyText
|
||||
config.i18n.load_path += Dir["#{Rails.root}/plugins/*/config/locales/*.yml"]
|
||||
|
||||
# Configure the default encoding used in templates for Ruby 1.9.
|
||||
config.encoding = 'utf-8'
|
||||
|
||||
Reference in New Issue
Block a user