Commit 118da4b7 authored by Dries's avatar Dries
Browse files

- A variety of small localization updates.  Patch by Ori Folger.
parent af7e08b4
...@@ -444,16 +444,16 @@ function format_plural($count, $singular, $plural) { ...@@ -444,16 +444,16 @@ function format_plural($count, $singular, $plural) {
} }
function format_size($size) { function format_size($size) {
$suffix = "bytes"; $suffix = t("bytes");
if ($size > 1024) { if ($size > 1024) {
$size = round($size / 1024, 2); $size = round($size / 1024, 2);
$suffix = "KB"; $suffix = t("KB");
} }
if ($size > 1024) { if ($size > 1024) {
$size = round($size / 1024, 2); $size = round($size / 1024, 2);
$suffix = "MB"; $suffix = t("MB");
} }
return "$size $suffix"; return t("%size %suffix", array("%size" => $size, "%suffix" => $suffix));
} }
function cache_get($key) { function cache_get($key) {
...@@ -512,7 +512,7 @@ function format_interval($timestamp) { ...@@ -512,7 +512,7 @@ function format_interval($timestamp) {
$timestamp %= $value; $timestamp %= $value;
} }
} }
return ($output) ? $output : "0 sec"; return ($output) ? $output : t("0 sec");
} }
function format_date($timestamp, $type = "medium", $format = "") { function format_date($timestamp, $type = "medium", $format = "") {
...@@ -561,7 +561,7 @@ function format_name($object) { ...@@ -561,7 +561,7 @@ function format_name($object) {
} }
} }
else { else {
$output = variable_get(anonymous, "Anonymous"); $output = t(variable_get(anonymous, "Anonymous"));
} }
return $output; return $output;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment