summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-01-04 19:26:24 +0100
committerMichael Foster <savetheinterpod@gmail.com>2014-01-19 14:54:35 -0500
commite88a0f02ecd78ace80584d877e3bccb383c956cb (patch)
tree57a601aefc41ddcc5529dad8a420f57c416f5f73
parent0986f77113560703cc5808d7d32733c0ee4a88a9 (diff)
inc/image.php: i18n
Conflicts: inc/image.php
-rw-r--r--inc/image.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/inc/image.php b/inc/image.php
index 1d591c25..f18c6395 100644
--- a/inc/image.php
+++ b/inc/image.php
@@ -21,7 +21,7 @@ class Image {
} else {
$classname = 'Image' . strtoupper($this->format);
if (!class_exists($classname)) {
- error('Unsupported file format: ' . $this->format);
+ error(_('Unsupported file format: ') . $this->format);
}
}
@@ -59,7 +59,7 @@ class Image {
} else {
$classname = 'Image' . strtoupper($extension);
if (!class_exists($classname)) {
- error('Unsupported file format: ' . $extension);
+ error(_('Unsupported file format: ') . $extension);
}
}
@@ -279,13 +279,13 @@ class ImageConvert extends ImageBase {
if($error = shell_exec_error(($this->gm ? 'gm ' : '') . 'convert ' .
escapeshellarg($this->src) . ' -auto-orient -strip ' . escapeshellarg($src))) {
$this->destroy();
- error('Failed to redraw image!', null, $error);
+ error(_('Failed to redraw image!'), null, $error);
}
} else {
if($error = shell_exec_error(($this->gm ? 'gm ' : '') . 'convert ' .
escapeshellarg($this->src) . ' -auto-orient ' . escapeshellarg($src))) {
$this->destroy();
- error('Failed to redraw image!', null, $error);
+ error(_('Failed to redraw image!'), null, $error);
}
}
} else {
@@ -321,7 +321,7 @@ class ImageConvert extends ImageBase {
escapeshellarg($this->src . '') . " \"#0-{$config['thumb_keep_animation_frames']}\" -o " .
escapeshellarg($this->temp))) || !file_exists($this->temp)) {
$this->destroy();
- error('Failed to resize image!', null, $error);
+ error(_('Failed to resize image!'), null, $error);
}
} else {
if ($config['convert_manual_orient'] && ($this->format == 'jpg' || $this->format == 'jpeg'))