MDL-74885 reportbuilder: format value using percents from lang pack
This commit is contained in:
@@ -58,6 +58,6 @@ class format {
|
||||
* @return string
|
||||
*/
|
||||
public static function percent(float $value): string {
|
||||
return format_float($value, 1) . '%';
|
||||
return get_string('percents', 'moodle', format_float($value));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user