Translation of denied message
valcker - December 22, 2008 - 15:32
| Project: | Comment Permissions |
| Version: | 5.x-1.1 |
| Component: | Code |
| Category: | feature request |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | active |
Description
It would be great to have the ability of translating denied messages. Currently messages are returned with the following code:
<?php
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.
