Skip to content

Commit

Permalink
MDL-12192 temporarily disabled support for colonized labels
Browse files Browse the repository at this point in the history
The code must be fixed so that the colon is not displayed when the label
is hidden by accessibility CSS.
  • Loading branch information
mudrd8mz committed Sep 24, 2010
1 parent 682a192 commit 81e62b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lang/en/langconfig.php
Expand Up @@ -29,7 +29,7 @@
$string['firstdayofweek'] = '0';
$string['iso6391'] = 'en';
$string['iso6392'] = 'eng';
$string['labelsep'] = ' ';
$string['labelsep'] = ': ';
$string['listsep'] = ',';
$string['locale'] = 'en_AU.UTF-8';
$string['localewin'] = 'English_Australia.1252';
Expand Down
3 changes: 3 additions & 0 deletions lib/outputcomponents.php
Expand Up @@ -1373,6 +1373,8 @@ public static function label($text, $for, $colonize=true, array $attributes=arra
$text = trim($text);
$label = self::tag('label', $text, $attributes);

/*
// TODO $colonize disabled for now yet - see MDL-12192 for details
if (!empty($text) and $colonize) {
// the $text may end with the colon already, though it is bad string definition style
$colon = get_string('labelsep', 'langconfig');
Expand All @@ -1386,6 +1388,7 @@ public static function label($text, $for, $colonize=true, array $attributes=arra
}
}
}
*/

return $label;
}
Expand Down

0 comments on commit 81e62b6

Please sign in to comment.