Patch #2112
closed
GLoc plugin available from hook
Added by Diego Sousa about 16 years ago.
Updated about 16 years ago.
Description
in file /vendor/plugins/gloc**/lib/gloc-rails.rb
insert in the last line
module Redmine
module Hook
include GLoc
end
end
with this hooks can use GLoc plugin
- Category set to Plugin API
- Status changed from New to Resolved
Actually, it should be included in Redmine::Hook::Listener instead if you want to use GLoc methods in your listeners. It's done in r2005.
Am I missing something?
Jean-Philippe Lang wrote:
Am I missing something?
That should be fine. I've used the full class method in my hooks before this:
# http://github.com/edavis10/redmine-budget-plugin/tree/master/lib/budget_project_hook.rb
return "<th>#{GLoc.l(:label_member_rate) }</th>"
- Status changed from Resolved to Closed
Thanks Eric. Reopen if needed.
Also available in: Atom
PDF