[development] hook_perm() and t()

Augustin (Beginner) drupal.beginner at wechange.org
Wed Sep 6 11:42:55 UTC 2006


On Wednesday 06 September 2006 07:19 pm, Gabor Hojtsy wrote:

> > http://api.drupal.org/api/HEAD/function/hook_perm
> > makes no mention of t() either way.
>
> There is no need to use t() here, since the string extractor takes care of
> extracting permission names defined in the perm hook for translation. It
> might be more consistent to use t() all over the user_acess() calls, but
> it seems superfluos. The permission names are translateable, they are just
> a special case in the extractor, and are t()-ed on the display of the
> permission table.

Thanks Gabor for the explanation.
:)


Maybe someone who has the power to do that could add a small comment about 
this on the api documentation:
 http://api.drupal.org/api/HEAD/function/hook_perm
> > makes no mention of t() either way.


A.

-- 
http://www.wechange.org/
Because we and the world need to change.
 
http://www.reuniting.info/
Intimate Relationships, peace and harmony in the couple.


More information about the development mailing list