Skip to content

Commit

Permalink
MDL-74885 reportbuilder: format value using percents from lang pack
Browse files Browse the repository at this point in the history
  • Loading branch information
dravek committed Jul 6, 2022
1 parent 9ccda59 commit ecb9511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reportbuilder/classes/local/helpers/format.php
Expand Up @@ -58,6 +58,6 @@ public static function boolean_as_text(bool $value): string {
* @return string
*/
public static function percent(float $value): string {
return format_float($value, 1) . '%';
return get_string('percents', 'moodle', format_float($value));
}
}

0 comments on commit ecb9511

Please sign in to comment.