From: tjhunt Date: Mon, 3 Jul 2006 10:04:04 +0000 (+0000) Subject: Rename lang file as per Martin's request. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4f9c6e279c123da5f02c211c3d2910c13b94ea3e;p=moodle.git Rename lang file as per Martin's request. --- diff --git a/admin/report/simpletest/ex_reporter.php b/admin/report/simpletest/ex_reporter.php index 22603d3674..0a705f61f9 100644 --- a/admin/report/simpletest/ex_reporter.php +++ b/admin/report/simpletest/ex_reporter.php @@ -205,7 +205,7 @@ class ExHtmlReporter extends HtmlReporter { * Look up a lang string in the appropriate file. */ function get_string($identifier, $a = NULL) { - return get_string($identifier, 'unittest', $a); + return get_string($identifier, 'simpletest', $a); } } ?> \ No newline at end of file diff --git a/admin/report/simpletest/index.php b/admin/report/simpletest/index.php index 0fdde58cc6..a2b289210f 100644 --- a/admin/report/simpletest/index.php +++ b/admin/report/simpletest/index.php @@ -18,6 +18,7 @@ require_once('ex_reporter.php'); /* The UNITTEST constant can be checked elsewhere if you need to know * when your code is being run as part of a unit test. */ define('UNITTEST', true); +$langfile = 'simpletest'; require_login(); if (!isadmin()) { @@ -42,7 +43,7 @@ $test->addIgnoreFolder($CFG->dirroot . '/_nonproject'); $reporter = new ExHtmlReporter($showpasses); // Print the header. -$strtitle = get_string('unittests', 'unittest'); +$strtitle = get_string('unittests', $langfile); $stradmin = get_string('administration'); print_header("$SITE->shortname: $strtitle", $SITE->fullname, '' . get_string('administration') . ' -> ' . @@ -69,16 +70,16 @@ if (is_file($path)) { } else if (is_dir($path)){ $test->findTestFiles($path); } else { - print_simple_box(get_string('pathdoesnotexist', 'unittest', $path), '', '', '', '', 'errorbox'); + print_simple_box(get_string('pathdoesnotexist', $langfile, $path), '', '', '', '', 'errorbox'); $ok = false; } // If we have something to test, do it. if ($ok) { if ($path == $CFG->dirroot) { - $title = get_string('moodleunittests', 'unittest', get_string('all', 'unittest')); + $title = get_string('moodleunittests', $langfile, get_string('all', $langfile)); } else { - $title = get_string('moodleunittests', 'unittest', $displaypath); + $title = get_string('moodleunittests', $langfile, $displaypath); } print_heading($title); $test->run($reporter); @@ -87,15 +88,15 @@ if ($ok) { // Print the form for adjusting options. print_simple_box_start('center', '70%'); echo '
'; -print_heading(get_string('retest', 'unittest')); -echo '

'; print_checkbox('showpasses', 1, $showpasses, get_string('showpasses', 'unittest')); echo '

'; -echo '

'; print_checkbox('showsearch', 1, $showsearch, get_string('showsearch', 'unittest')); echo '

'; -echo '

'; print_checkbox('thorough', 1, $thorough, get_string('thorough', 'unittest')); echo '

'; +print_heading(get_string('retest', $langfile)); +echo '

'; print_checkbox('showpasses', 1, $showpasses, get_string('showpasses', $langfile)); echo '

'; +echo '

'; print_checkbox('showsearch', 1, $showsearch, get_string('showsearch', $langfile)); echo '

'; +echo '

'; print_checkbox('thorough', 1, $thorough, get_string('thorough', $langfile)); echo '

'; echo '

'; - echo ' '; + echo ' '; echo ''; echo '

'; -echo ''; +echo ''; echo '
'; print_simple_box_end(); diff --git a/admin/report/simpletest/mod.php b/admin/report/simpletest/mod.php index eed76a5cf4..d53d9a716b 100644 --- a/admin/report/simpletest/mod.php +++ b/admin/report/simpletest/mod.php @@ -13,8 +13,9 @@ if (!defined('MOODLE_INTERNAL')) { die('Direct access to this script is forbidden.'); // It must be included from a Moodle page } +$langfile = 'simpletest'; -print_heading(get_string('unittests', 'unittest')); +print_heading(get_string('unittests', $langfile)); print_heading('' . - get_string('rununittests', 'unittest') . '', '', 3); + get_string('rununittests', $langfile) . '', '', 3); ?> \ No newline at end of file diff --git a/lang/en_utf8/unittest.php b/lang/en_utf8/simpletest.php similarity index 100% rename from lang/en_utf8/unittest.php rename to lang/en_utf8/simpletest.php