It would be great to have the ability of translating denied messages. Currently messages are returned with the following code:

if ($user->uid == 0) {
    return variable_get('comment_perm_message_anon', 'Login or register to post comments!');
} else {
    return variable_get('comment_perm_message_reg', "We're sorry, but you can't post comments here!");
}

Why not add t() to the above code?

Thanks.

Comments

pluess’s picture

Version: 5.x-1.1 » 6.x-1.0
Category: feature » bug
Status: Active » Fixed

For D6 this has been implemented already. Gues no one is looking for D5 anymore.

Status: Fixed » Closed (fixed)

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