Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 310 and 311] [Versions 311 and 400] [Versions 311 and 401] [Versions 311 and 402] [Versions 311 and 403] [Versions 39 and 311]

   1  <?php
   2  // This file is part of Moodle - http://moodle.org/
   3  //
   4  // Moodle is free software: you can redistribute it and/or modify
   5  // it under the terms of the GNU General Public License as published by
   6  // the Free Software Foundation, either version 3 of the License, or
   7  // (at your option) any later version.
   8  //
   9  // Moodle is distributed in the hope that it will be useful,
  10  // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12  // GNU General Public License for more details.
  13  //
  14  // You should have received a copy of the GNU General Public License
  15  // along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
  16  
  17  /**
  18   * Language strings for qtype_ddmarker.
  19   * @package   qtype_ddmarker
  20   * @copyright 2012 The Open University
  21   * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
  22   */
  23  
  24  $string['addmoreitems'] = 'Blanks for {no} more markers';
  25  $string['alttext'] = 'Alt text';
  26  $string['answer'] = 'Answer';
  27  $string['bgimage'] = 'Background image';
  28  $string['coords'] = 'Coordinates';
  29  $string['correctansweris'] = 'The correct answer is: {$a}';
  30  $string['draggableimage'] = 'Draggable image';
  31  $string['draggableitem'] = 'Draggable item';
  32  $string['draggableitemheader'] = 'Draggable item {$a}';
  33  $string['draggableitemtype'] = 'Type';
  34  $string['draggableword'] = 'Draggable text';
  35  $string['dropbackground'] = 'Background image for dragging markers onto';
  36  $string['dropzone'] = 'Drop zone {$a}';
  37  $string['dropzoneheader'] = 'Drop zones';
  38  $string['dropzones'] = 'Drop zones';
  39  $string['dropzones_help'] = 'Drop zones may be defined by coordinates, or dragged into position in the preview above.
  40  
  41  First selecting a shape (circle, rectangle or polygon) will add a new drop zone shape to the top left of the preview. It may be useful to minimise the Markers section so you can see the preview while editing the Drop zones.
  42  
  43  Editing a shape starts with a click on the shape in the preview to show the editing handles. You can move the shape using the center handle, or adjust the shape\'s dimensions with the vertex handles.
  44  
  45  For polygons only, holding the control button (command button on a Mac) while clicking on a vertex handle will add a new vertex to the polygon. Please keep a polygon shape as simple as possible, without crossing lines.
  46  
  47  For information the three shapes use coordinates in this way:
  48  
  49  * Circle: centre_x, centre_y; radius<br />for example: <code>80,100;50</code>
  50  * Rectangle: top_left_x, top_left_y; width, height<br />for example: <code>20,60;80,40</code>
  51  * Polygon: x1, y1; x2, y2; ...; xn, yn<br />for example: <code>20,60;100,60;20,100</code>
  52  
  53  Selecting a Marker text will add that text to the shape in the preview.';
  54  $string['followingarewrong'] = 'The following markers have been placed in the wrong area : {$a}.';
  55  $string['followingarewrongandhighlighted'] = 'The following markers were incorrectly placed :  {$a}. Highlighted marker(s) are now shown with the correct placement(s).<br /> Click on the marker to highlight the allowed area.';
  56  $string['formerror_nobgimage'] = 'You need to select an image to use as the background for the drag and drop area.';
  57  $string['formerror_noitemselected'] = 'You have specified a drop zone but not chosen a marker that must be dragged to the zone.';
  58  $string['formerror_nosemicolons'] = 'There are no semicolons in your coordinates string. Your coordinates for a {$a->shape} should be expressed as - {$a->coordsstring}.';
  59  $string['formerror_onlysometagsallowed'] = 'Only "{$a}" tags are allowed in the label for a marker.';
  60  $string['formerror_onlyusewholepositivenumbers'] = 'Please use only whole positive numbers to specify x,y coordinates and/or width and height of shapes. Your coordinates for a {$a->shape} should be expressed as - {$a->coordsstring}.';
  61  $string['formerror_polygonmusthaveatleastthreepoints'] = 'For a polygon shape you need to specify at least 3 points. Your coordinates for a {$a->shape} should be expressed as - {$a->coordsstring}.';
  62  $string['formerror_repeatedpoint'] = 'You have entered the same coordinates twice. Each point must be unique. Your coordinates for a {$a->shape} should be expressed as - {$a->coordsstring}.';
  63  $string['formerror_shapeoutsideboundsofbgimage'] = 'The shape you have defined goes out of the bounds of the background image.';
  64  $string['formerror_toomanysemicolons'] = 'There are too many semicolon-separated parts to the coordinates you have specified. Your coordinates for a {$a->shape} should be expressed as - {$a->coordsstring}.';
  65  $string['formerror_unrecognisedwidthheightpart'] = 'The width and height that you have specified are unrecognisable. Your coordinates for a {$a->shape} should be expressed as - {$a->coordsstring}.';
  66  $string['formerror_unrecognisedxypart'] = 'The x,y coordinates that you have specified are unrecognisable. Your coordinates for a {$a->shape} should be expressed as - {$a->coordsstring}.';
  67  $string['infinite'] = 'Infinite';
  68  $string['marker'] = 'Marker';
  69  $string['marker_n'] = 'Marker {no}';
  70  $string['markers'] = 'Markers';
  71  $string['nolabel'] = 'No label text';
  72  $string['noofdrags'] = 'Number';
  73  $string['pleasedragatleastonemarker'] = 'Your answer is not complete; you must place at least one marker on the image.';
  74  $string['pluginname'] = 'Drag and drop markers';
  75  $string['pluginname_help'] = 'Drag and drop markers require the respondent to drag text labels and drop them into defined drop zones on a background image.';
  76  $string['pluginname_link'] = 'question/type/ddmarker';
  77  $string['pluginnameadding'] = 'Adding drag and drop markers';
  78  $string['pluginnameediting'] = 'Editing drag and drop markers';
  79  $string['pluginnamesummary'] = 'Markers are dragged and dropped onto a background image.
  80  
  81  Note: This question type is not accessible to users who are visually impaired.';
  82  $string['previewareaheader'] = 'Preview';
  83  $string['previewareamessage'] = 'Select a background image file, enter text labels for markers and define the drop zones on the background image to which they must be dragged.';
  84  $string['privacy:metadata'] = 'Drag and drop markers question type plugin allows question authors to set default options as user preferences.';
  85  $string['privacy:preference:defaultmark'] = 'The default mark set for a given question.';
  86  $string['privacy:preference:penalty'] = 'The penalty for each incorrect try when questions are run using the \'Interactive with multiple tries\' or \'Adaptive mode\' behaviour.';
  87  $string['privacy:preference:shuffleanswers'] = 'Whether the answers should be automatically shuffled.';
  88  $string['refresh'] = 'Refresh preview';
  89  $string['clearwrongparts'] = 'Move incorrectly placed markers back to default start position below image';
  90  $string['shape'] = 'Shape';
  91  $string['shape_circle'] = 'Circle';
  92  $string['shape_circle_lowercase'] = 'circle';
  93  $string['shape_circle_coords'] = 'x,y;r (where x,y are the coordinates of the centre of the circle and r is the radius)';
  94  $string['shape_rectangle'] = 'Rectangle';
  95  $string['shape_rectangle_lowercase'] = 'rectangle';
  96  $string['shape_rectangle_coords'] = 'x,y;w,h (where x,y are the coordinates of the top left corner of the rectangle and w and h are the width and height of the rectangle)';
  97  $string['shape_polygon'] = 'Polygon';
  98  $string['shape_polygon_lowercase'] = 'polygon';
  99  $string['shape_polygon_coords'] = 'x1,y1;x2,y2;x3,y3;x4,y4... (where x1, y1 are the coordinates of the first vertex, x2, y2 are the coordinates of the second etc. There is no need to repeat the coordinates for the first vertex to close the polygon.)';
 100  $string['showmisplaced'] = 'Highlight drop zones which have not had the correct marker dropped on them';
 101  $string['shuffleimages'] = 'Shuffle drag items each time question is attempted';
 102  $string['stateincorrectlyplaced'] = 'State which markers are incorrectly placed';
 103  $string['summariseplace'] = '{$a->no}. {$a->text}';
 104  $string['summariseplaceno'] = 'Drop zone {$a}';
 105  $string['ytop'] = 'Top';