1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

Translate numbers in ar, bn, fa

This commit is contained in:
Jakub Vrana
2014-03-19 21:56:42 -07:00
parent 73629178d8
commit 4d491d704e
39 changed files with 49 additions and 8 deletions

View File

@@ -12,7 +12,7 @@ if ($_GET["script"] == "db") {
}
foreach ($sums + array("Auto_increment" => 0, "Rows" => 0) as $key => $val) {
if ($table_status[$key] != "") {
$val = number_format($table_status[$key], 0, '.', lang(','));
$val = format_number($table_status[$key]);
json_row("$key-$id", ($key == "Rows" && $val && $table_status["Engine"] == ($sql == "pgsql" ? "table" : "InnoDB")
? "~ $val"
: $val
@@ -28,7 +28,7 @@ if ($_GET["script"] == "db") {
}
}
foreach ($sums as $key => $val) {
json_row("sum-$key", number_format($val, 0, '.', lang(',')));
json_row("sum-$key", format_number($val));
}
json_row("");