diff --git a/lang/en/table.php b/lang/en/table.php index c2bf4637612..02763e527d8 100644 --- a/lang/en/table.php +++ b/lang/en/table.php @@ -23,10 +23,10 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -$string['downloadas'] = 'Download table data as'; -$string['downloadcsv'] = 'a comma separated values text file'; -$string['downloadexcel'] = 'a Microsoft Excel spreadsheet'; -$string['downloadods'] = 'an OpenDocument Spreadsheet (ODS)'; +$string['downloadas'] = 'Download table data as {$a->formatsmenu} {$a->downloadbutton}'; +$string['downloadcsv'] = 'Comma separated values text file'; +$string['downloadexcel'] = 'Excel spreadsheet'; +$string['downloadods'] = 'OpenDocument spreadsheet'; $string['downloadoptions'] = 'Select download options'; -$string['downloadtsv'] = 'a tab separated values text file'; -$string['downloadxhtml'] = 'an unpaged XHTML document'; +$string['downloadtsv'] = 'Tab separated values text file'; +$string['downloadxhtml'] = 'Unpaged XHTML document'; diff --git a/lib/tablelib.php b/lib/tablelib.php index 75711ec29db..1915e7f7347 100644 --- a/lib/tablelib.php +++ b/lib/tablelib.php @@ -915,11 +915,15 @@ class flexible_table { function download_buttons() { if ($this->is_downloadable() && !$this->is_downloading()) { $downloadoptions = $this->get_download_menu(); + + $downloadelements = new stdClass(); + $downloadelements->formatsmenu = html_writer::select($downloadoptions, + 'download', $this->defaultdownloadformat, false); + $downloadelements->downloadbutton = ''; $html = '
'; $html .= '
'; - $html .= ''; - $html .= html_writer::label(get_string('downloadoptions', 'table'), 'menudownload', false, array('class' => 'accesshide')); - $html .= html_writer::select($downloadoptions, 'download', $this->defaultdownloadformat, false); + $html .= html_writer::tag('label', get_string('downloadas', 'table', $downloadelements)); $html .= '
'; return $html; diff --git a/mod/quiz/editlib.php b/mod/quiz/editlib.php index 987a39b3f0a..9f713bd9ec9 100644 --- a/mod/quiz/editlib.php +++ b/mod/quiz/editlib.php @@ -433,7 +433,7 @@ function quiz_print_question_list($quiz, $pageurl, $allowdelete, $reordertool, $pagingdisabled . ' />'; $reordercontrols2top = '
' . - get_string('moveselectedonpage', 'quiz', $a) . + '' . '' . '
' . '
' . - get_string('moveselectedonpage', 'quiz', $b) . + '' . ' ' . '
'; @@ -650,7 +650,10 @@ function quiz_print_question_list($quiz, $pageurl, $allowdelete, $reordertool, ?>
id . '">' . + get_string('questionposition', 'quiz', $qnodisplay) . ''; echo ''; ?> diff --git a/mod/quiz/lang/en/quiz.php b/mod/quiz/lang/en/quiz.php index 838084654b3..b2619d7e2c2 100644 --- a/mod/quiz/lang/en/quiz.php +++ b/mod/quiz/lang/en/quiz.php @@ -582,6 +582,7 @@ $string['questionnonav'] = 'Question {$a->number $string['questionnonavinfo'] = 'Information {$a->number} {$a->attributes}'; $string['questionnotloaded'] = 'Question {$a} has not been loaded from the database'; $string['questionorder'] = 'Question order'; +$string['questionposition'] = 'New position in order for question {$a}'; $string['questions'] = 'Questions'; $string['questionsinclhidden'] = 'Questions (including hidden)'; $string['questionsinthisquiz'] = 'Questions in this quiz'; diff --git a/mod/quiz/report/statistics/lang/en/quiz_statistics.php b/mod/quiz/report/statistics/lang/en/quiz_statistics.php index 24db6f10127..477db9782ff 100644 --- a/mod/quiz/report/statistics/lang/en/quiz_statistics.php +++ b/mod/quiz/report/statistics/lang/en/quiz_statistics.php @@ -40,7 +40,7 @@ $string['coursename'] = 'Course name'; $string['detailedanalysis'] = 'More detailed analysis of the responses to this question'; $string['discrimination_index'] = 'Discrimination index'; $string['discriminative_efficiency'] = 'Discriminative efficiency'; -$string['downloadeverything'] = 'Download full report as'; +$string['downloadeverything'] = 'Download full report as {$a->formatsmenu} {$a->downloadbutton}'; $string['duration'] = 'Open for'; $string['effective_weight'] = 'Effective weight'; $string['errordeleting'] = 'Error deleting old {$a} records.'; diff --git a/mod/quiz/report/statistics/report.php b/mod/quiz/report/statistics/report.php index 48c91eebb03..e3153a17b24 100644 --- a/mod/quiz/report/statistics/report.php +++ b/mod/quiz/report/statistics/report.php @@ -966,13 +966,16 @@ class quiz_statistics_report extends quiz_default_report { protected function everything_download_options() { $downloadoptions = $this->table->get_download_menu(); + $downloadelements = new stdClass(); + $downloadelements->formatsmenu = html_writer::select($downloadoptions, 'download', + $this->table->defaultdownloadformat, false); + $downloadelements->downloadbutton = ''; + $output = '
'; $output .= '
'; $output .= ''; - $output .= ''; - $output .= html_writer::select($downloadoptions, 'download', - $this->table->defaultdownloadformat, false); + $output .= html_writer::tag('label', get_string('downloadeverything', 'quiz_statistics', $downloadelements)); $output .= '
'; return $output;