From b3468749fdd086e20a763c386e2d06f8b8989dba Mon Sep 17 00:00:00 2001 From: Shinjiman Date: Fri, 22 May 2009 21:09:39 +0000 Subject: [PATCH] treak some messages --- maintenance/language/checkDupeMessages.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/maintenance/language/checkDupeMessages.php b/maintenance/language/checkDupeMessages.php index 941fb5390c..3ad28d3fd5 100644 --- a/maintenance/language/checkDupeMessages.php +++ b/maintenance/language/checkDupeMessages.php @@ -44,12 +44,11 @@ if ( $runTest ) { $langCodeC = ucfirst(strtolower(preg_replace('/-/','_',$options['clang']))); $messagesFile = $messagesDir.'Messages'.$langCode.'.php'; $messagesFileC = $messagesDir.'Messages'.$langCodeC.'.php'; - print("$messagesFile\n$messagesFileC\n"); if (file_exists($messagesFile) && file_exists($messagesFileC)) { $run = true; } else { - echo "Languages file(s) could not found.\nMake sure both files are exists.\n"; + echo "Messages file(s) could not be found.\nMake sure both files are exists.\n"; } } @@ -84,6 +83,10 @@ if ( $run ) { } } if (!strcmp($runMode,'text')) { - echo "\nThere are $count duplicates messages in ".$options['lang'].", against to ".$options['clang']."\n"; + if ($count == 1) { + echo "\nThere are $count duplicated message in ".$options['lang'].", against to ".$options['clang'].".\n"; + } else { + echo "\nThere are $count duplicated messages in ".$options['lang'].", against to ".$options['clang'].".\n"; + } } } -- 2.20.1