From 007e4f6edee9ae6ae2a5c0ae6b489ba101c15716 Mon Sep 17 00:00:00 2001 From: skodak Date: Wed, 13 Dec 2006 09:29:03 +0000 Subject: [PATCH] xhtml and accessibility cleanup in data mod MDL-7813 * image alt value is now called "Alternative text" because it should not be considered optional --- lang/en_utf8/data.php | 1 + mod/data/field/picture/field.class.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/en_utf8/data.php b/lang/en_utf8/data.php index 3dbc04373d..89c2f22ac1 100644 --- a/lang/en_utf8/data.php +++ b/lang/en_utf8/data.php @@ -10,6 +10,7 @@ $string['addentries'] = 'Add entries'; $string['addtemplate'] = 'Add template'; $string['allowcomments'] = 'Allow comments?'; $string['allowratings'] = 'Allow posts to be rated?'; +$string['alttext'] = 'Alternative text'; $string['approve'] = 'Approve'; $string['ascending'] = 'Ascending'; $string['atmaxentry'] = 'You have entered the maximum number of entries allowed!'; diff --git a/mod/data/field/picture/field.class.php b/mod/data/field/picture/field.class.php index d4f4670596..a23768076f 100755 --- a/mod/data/field/picture/field.class.php +++ b/mod/data/field/picture/field.class.php @@ -61,7 +61,7 @@ class data_field_picture extends data_field_file { $str .= '
'.$this->field->name.''; $str .= ''; $str .= ' 
'; - $str .= ' field->id.'_filename">'.get_string('alttext','data') .' 
'; $str .= ''; if ($filepath){ -- 2.39.5