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 '';
  }
}
CommentFileSizeAuthor
#1 fix_modr8_t_0.txt793 bytespwolanin

Comments

pwolanin’s picture

Status: Needs review » Fixed
StatusFileSize
new793 bytes

just committed the attached patch.

Anonymous’s picture

Status: Fixed » Closed (fixed)