Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Language change to account for singular vs plural comment(s).

  • Loading branch information...
commit 7470e1547c088c523367b6495501857ab250bd75 1 parent 9a483c2
@amphibian amphibian authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 extensions/ext.comment_moderation_nag.php
View
5 extensions/ext.comment_moderation_nag.php
@@ -9,7 +9,7 @@ class Comment_moderation_nag
{
var $settings = array();
var $name = 'Comment Moderation Nag';
- var $version = '1.0';
+ var $version = '1.0.1';
var $description = 'Prominently nags administrators to approve or delete pending comments.';
var $settings_exist = 'n';
var $docs_url = '';
@@ -40,11 +40,12 @@ function show_full_control_panel_end($out)
if($total)
{
+ $c_word = ($total == 1) ? ' comment requires' : ' comments require';
$find= "<div id='contentNB'>";
$replace = "
<div id='contentNB'>
<div class='box'>
- <span class='highlight_bold'>".$total." comments require moderation. </span>
+ <span class='highlight_bold'>".$total.$c_word." moderation. </span>
<a href='".BASE.AMP."C=edit&amp;M=view_comments&amp;validate=1'>
Click here to approve or delete pending comments.</a>
</span>
Please sign in to comment.
Something went wrong with that request. Please try again.