From eb58929bbb381b9732ab44fac97b4eba1d98cc27 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Sun, 13 Feb 2005 11:22:48 +0000 Subject: [PATCH] Added string 'counteditems' to allow better translation of things like "8 students", see bug 2530 --- lang/en/moodle.php | 1 + user/index.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lang/en/moodle.php b/lang/en/moodle.php index 19d57b7ad5a..649566393ad 100644 --- a/lang/en/moodle.php +++ b/lang/en/moodle.php @@ -184,6 +184,7 @@ $string['copyingzipfile'] = 'Copying zip file'; $string['copyrightnotice'] = 'Copyright notice'; $string['cost'] = 'Cost'; $string['costdefault'] = 'Default cost'; +$string['counteditems'] = '$a->count $a->items'; $string['country'] = 'Country'; $string['course'] = 'Course'; $string['courseavailable'] = 'This course is available to students'; diff --git a/user/index.php b/user/index.php index 32c74e3f1d4..ddf54ed9924 100644 --- a/user/index.php +++ b/user/index.php @@ -127,7 +127,9 @@ } } - echo "

$totalcount $course->students"; + $a->count = $totalcount; + $a->items = $course->students; + echo '

'.get_string('counteditems', '', $a); if (isteacheredit($course->id)) { echo ' '; echo '';