Project

General

Profile

Actions

Feature #3057

closed

Allow custom my_page blocks to define drop-down names

Added by Brad Beattie over 15 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
Start date:
2009-03-26
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed

Description

I have a plugin that adds additional blocks to the my_page page. The only problem I have here is that I can't name the blocks beyond their file names, whereas core blocks define their localized names:

BLOCKS = { 'issuesassignedtome' => :label_assigned_to_me_issues,
             'issuesreportedbyme' => :label_reported_issues,
             'issueswatched' => :label_watched_issues,
             'news' => :label_news_latest,
             'calendar' => :label_calendar,
             'documents' => :label_document_plural,
             'timelog' => :label_spent_time
           }.merge(Redmine::Views::MyPage::Block.additional_blocks).freeze

This request is necessary in order to localize the plugin.

Actions

Also available in: Atom PDF