summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2014-01-04 19:26:24 +0100
committerczaks <marcin@6irc.net>2014-01-04 19:26:44 +0100
commit0264a5ca6d5c8976d9a3c544bf9c9d7b9d14be6d (patch)
tree5734dcabb1a33dd4f965ea21d5f1df4d7715ab98 /inc
parent9ed0a83434deb244c54f168b73f64f350e87ea6a (diff)
inc/image.php: i18n
Diffstat (limited to 'inc')
-rw-r--r--inc/image.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/inc/image.php b/inc/image.php
index 9bb44414..98535e0e 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'))
@@ -340,7 +340,7 @@ class ImageConvert extends ImageBase {
escapeshellarg($this->temp)))) || !file_exists($this->temp)) {
if (!preg_match ('/sBIT: invalid/', $error)) {
$this->destroy();
- error('Failed to resize image!', null, $error);
+ error(_('Failed to resize image!'), null, $error);
}
}
if ($size = $this->get_size($this->temp)) {
@@ -365,7 +365,7 @@ class ImageConvert extends ImageBase {
escapeshellarg($this->temp)))) || !file_exists($this->temp)) {
if (!preg_match ('/sBIT: invalid/', $error)) {
$this->destroy();
- error('Failed to resize image!', null, $error);
+ error(_('Failed to resize image!'), null, $error);
}
}
if ($size = $this->get_size($this->temp)) {