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

This commit is contained in:
David Matamoros
2022-07-06 08:17:20 +02:00
parent 9ccda59e00
commit ecb95114e9
@@ -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));
}
}