Project

General

Profile

RE: Patch for the Redmine Collapse plugin ยป collapse_plugin_i18n_tabs.patch

i18n tab patch - Eric Davis, 2009-02-27 19:26

View differences:

vendor/plugins/redmine_collapse/lib/collapse_application_helper_patch.rb
45 45
    def left_menu_tabs
46 46
      # Don't render the projects-tab unless specifically configured
47 47
      if Setting.plugin_redmine_collapse['show_projects_tab'] == '1'
48
        tabs = [ { :name => 'actions', :label => l(:label_actions_tab), :partial => 'left_menu/actions.rhtml' },
49
                 { :name => 'projects', :label => l(:label_projects_tab), :partial => 'left_menu/projects.rhtml' } ]
48
        tabs = [ { :name => 'actions', :label => :label_actions_tab, :partial => 'left_menu/actions.rhtml' },
49
                 { :name => 'projects', :label => :label_projects_tab, :partial => 'left_menu/projects.rhtml' } ]
50 50
      else
51
        tabs = [ { :name => 'actions', :label => l(:label_actions_tab), :partial => 'left_menu/actions.rhtml' } ]
51
        tabs = [ { :name => 'actions', :label => :label_actions_tab, :partial => 'left_menu/actions.rhtml' } ]
52 52
      end
53 53
      return tabs
54 54
    end
    (1-1/1)