Index: admin/report/customlang/renderer.php =================================================================== RCS file: /cvsroot/moodle/moodle/admin/report/customlang/renderer.php,v retrieving revision 1.2 diff -u -r1.2 renderer.php --- admin/report/customlang/renderer.php 17 Sep 2010 18:12:42 -0000 1.2 +++ admin/report/customlang/renderer.php 10 Nov 2010 11:06:46 -0000 @@ -76,6 +76,7 @@ $cells[1]->attributes['class'] = 'stringid'; // master translation of the string $master = html_writer::tag('div', s($string->master), array('class' => 'preformatted')); + $minheight = strlen($string->master) / 200; if (preg_match('/\{\$a(->.+)?\}/', $string->master)) { $master .= html_writer::tag('div', $this->help_icon('placeholder', 'report_customlang', get_string('placeholderwarning', 'report_customlang')), array('class' => 'placeholderinfo')); @@ -83,7 +84,11 @@ $cells[2] = new html_table_cell($master); $cells[2]->attributes['class'] = 'standard master'; // local customization of the string - $textarea = html_writer::tag('textarea', s($string->local), array('name'=>'cust['.$string->id.']')); + $textareaattributes = array('name'=>'cust['.$string->id.']', 'cols'=>40, 'rows'=>3); + if ($minheight>1) { + $textareaattributes['style'] = 'min-height:' . (int) 4*$minheight . 'em';; + } + $textarea = html_writer::tag('textarea', s($string->local), $textareaattributes); $cells[3] = new html_table_cell($textarea); if (!is_null($string->local) and $string->outdated) { $mark = html_writer::empty_tag('input', array('type' => 'checkbox', 'id' => 'update_' . $string->id,