Download & Extend

t() is not necessary for '#title', and '#description'

Project:Kaltura
Version:6.x-1.3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Like documented from Drupal, '#title', and '#description' given in the implementation of hook_menu() don't need to contain strings passed through t() because the core module responsible for the creation of the Drupal menu system will pass them to t() before to use them.

With the implementation of hook_menu() given by the project module, the function will be called twice: one from the module, and one from the core code.

Comments

#1

This is clearly stated in Menu item title and description callbacks, localization, where there is written Titles and Descriptions should no longer be wrapped in t().

#2

Status:active» fixed

fixed in 6.x-1.4

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here