Mark two strings for translation.
This commit is contained in:
parent
9644784a79
commit
be4774c95c
@ -108,11 +108,11 @@ class IDF_Form_ProjectConf extends Pluf_Form
|
||||
$meta = getimagesize(Pluf::f('upload_path') . '/' . $this->project->shortname . $this->cleaned_data['logo']);
|
||||
|
||||
if ($meta === false) {
|
||||
throw new Pluf_Form_Invalid("Could not determine the size of the uploaded picture.");
|
||||
throw new Pluf_Form_Invalid(__('Could not determine the size of the uploaded picture.'));
|
||||
}
|
||||
|
||||
if ($meta[0] !== 32 || $meta[1] !== 32) {
|
||||
throw new Pluf_Form_Invalid("The picture must have a size of 32 by 32.");
|
||||
throw new Pluf_Form_Invalid(__('The picture must have a size of 32 by 32.'));
|
||||
}
|
||||
|
||||
return $this->cleaned_data['logo'];
|
||||
|
Loading…
Reference in New Issue
Block a user