Project

General

Profile

Actions

Patch #12753

closed

Update config.i18n.load_path for plugin-supplied locales

Patch #12753: Update config.i18n.load_path for plugin-supplied locales

Added by Takeshi Yaegashi almost 14 years ago. Updated almost 13 years ago.

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

Description

With Rails 3 Redmine::Plugin.register should update Rails.application.config.i18n.load_path for plugin-supplied locales to allow them to override system locales. I18n.load_path is overriden with system locales by an after_initialize hook in active_support/i18n_railtie.rb, thus currently plugins like https://github.com/edavis10/redmine_language_change won't work.

The attached patch is against 2.1-stable branch.


Files


Related issues 1 (0 open — 1 closed)

Has duplicate Redmine - Defect #14758: Can't override default locale with pluginClosedActions

Updated by Jean-Philippe Lang almost 14 years ago Actions #1

Can you add a test to your patch?

Updated by Siegfried Vogel over 13 years ago Actions #2

+1

Need the string customization scheme in plugins of previous Redmine versions back, too!

Updated by Daniel Felix over 13 years ago Actions #3

Hi there,

any news on this? Did you write a test? :-)

Updated by Toshi MARUYAMA about 13 years ago Actions #4

  • Has duplicate Defect #14758: Can't override default locale with plugin added

Updated by Ebrahim Mohammadi almost 13 years ago Actions #5

This is absolutely needed.

Updated by Jean-Philippe Lang almost 13 years ago Actions #6

  • Status changed from New to Resolved
  • Assignee set to Jean-Philippe Lang
  • Target version set to 2.4.3

redmine_language_change plugin works fine for me without the patch applied but it's committed in r12482 anyway as it seems safer to use Rails config instead.

Updated by Jean-Philippe Lang almost 13 years ago Actions #7

  • Status changed from Resolved to Closed
  • Target version changed from 2.4.3 to 2.5.0
Actions

Also available in: PDF Atom