MDL-74885 reportbuilder: format value using percents from lang pack

This commit is contained in:
David Matamoros 2022-05-31 12:36:23 +02:00
parent 9ccda59e00
commit ecb95114e9

View File

@ -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));
}
}