FIX: auto-load all plugin locales so that they can be used in PrettyText

This commit is contained in:
Régis Hanol
2015-04-09 17:04:14 +02:00
parent 77dc5f2f58
commit 4a9587fa23
2 changed files with 6 additions and 8 deletions

View File

@@ -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'