Project

General

Profile

Actions

Defect #2211

closed

GLoc don't work in init.rb of plugins

Added by Diego Sousa over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
2008-11-18
Due date:
% Done:

100%

Estimated time:
Resolution:
Affected version:

Description

Hi,

I don't need use gloc at all in init.rb of plugins, but this time i need to translate some links to insert in top_menu, but gloc doesnt work there, i did a quick fix to insert in every plugin to GLoc work, it was in Redmine::Plugin but i dont want to insert anything in core so i moved to plugins i need

Redmine::Plugin.send(:include, GLoc)
require "#{RAILS_ROOT}/config/initializers/30-redmine" 

Have any general and better way to do this?

Thanks!

Actions

Also available in: Atom PDF