Closed (fixed)
Project:
modr8
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
4 Oct 2006 at 14:02 UTC
Updated:
25 Nov 2006 at 21:46 UTC
Jump to comment: Most recent file
In this function (last function in the file) the drupal_set_message function's string arrgument is not translated.
function theme_modr8_message($teaser = FALSE, $nodetype = 'page', $op = 'view') {
if ($teaser) {
return ' <div class="marker">'. t('pending moderation') .'</div>';
}
else {
drupal_set_message('The post has been submitted for moderation and won\'t be accessible until it has been approved.'); return '';
}
}
The fixed version:
function theme_modr8_message($teaser = FALSE, $nodetype = 'page', $op = 'view') {
if ($teaser) {
return ' <div class="marker">'. t('pending moderation') .'</div>';
}
else {
drupal_set_message(t('The post has been submitted for moderation and won\'t be accessible until it has been approved.')); return '';
}
}
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | fix_modr8_t_0.txt | 793 bytes | pwolanin |
Comments
Comment #1
pwolanin commentedjust committed the attached patch.
Comment #2
(not verified) commented