Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2015-04-07 06:59:24 +02:00
commit e0ac5554fb
2 changed files with 5 additions and 4 deletions

View File

@ -24,6 +24,7 @@ phpMyAdmin - ChangeLog
- bug #4836 Server warning after moving from console to direct clicks
- bug #4837 Duplicate new version notification when using the "Back" button
- bug #4839 DOC link in setting is broken
- bug #4841 Status page: Mislukte pogingen per uur value is incorrect
4.4.1.0 (not yet released)
- bug #4813 MySQL 5.7.6 and the Users menu tab

View File

@ -1498,19 +1498,19 @@ class PMA_Util
// If we don't want any zeros after the comma just add the thousand separator
if ($noTrailingZero) {
$value = self::localizeNumber(
$localizedValue = self::localizeNumber(
preg_replace('/(?<=\d)(?=(\d{3})+(?!\d))/', ',', $value)
);
} else {
//number_format is not multibyte safe, str_replace is safe
$value = self::localizeNumber(number_format($value, $digits_right));
$localizedValue = self::localizeNumber(number_format($value, $digits_right));
}
if ($originalValue != 0 && floatval($value) == 0) {
return ' <' . (1 / self::pow(10, $digits_right)) . ' ' . $unit;
return ' <' . self::localizeNumber((1 / self::pow(10, $digits_right))) . ' ' . $unit;
}
return $sign . $value . ' ' . $unit;
return $sign . $localizedValue . ' ' . $unit;
} // end of the 'formatNumber' function
/**