// BugFix : admin scenes controller translations

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11643 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vChabot
2011-12-22 17:04:01 +00:00
parent d1f8e02485
commit 2c6e8a41c7
4 changed files with 174 additions and 151 deletions
+17 -11
View File
@@ -134,16 +134,23 @@ class AdminScenesControllerCore extends AdminController
'title' => $this->l('Image Maps'),
'image' => '../img/admin/photo.gif',
),
'description' => $this->l('When a customer hovers over the image with the mouse, a pop-up appears displaying a brief description of the product.
The customer can then click to open the product\'s full product page. To achieve this, please define the \'mapping zone\'
that, when hovered over, will display the pop-up. Left-click with your mouse to draw the four-sided mapping zone, then release.
Then, begin typing the name of the associated product. A list of products appears. Click the appropriate product, then click OK.
Repeat these steps for each mapping zone you wish to create. When you have finished mapping zones, click Save Image Map.'),
'submit' => array(
'title' => $this->l(' Save '),
'class' => 'button'
),
'input' => array(
array(
'type' => 'description',
'name' => 'description',
'label' => $this->l('How to map products in the image:'),
'text' => $this->l('When a customer hovers over the image with the mouse, a pop-up appears displaying a brief description of the product.').
$this->l('The customer can then click to open the product\'s full product page. ').
$this->l('To achieve this, please define the \'mapping zone\' that, when hovered over, will display the pop-up. ').
$this->l('Left-click with your mouse to draw the four-sided mapping zone, then release.').
$this->l('Then, begin typing the name of the associated product. A list of products appears. ').
$this->l('Click the appropriate product, then click OK. Repeat these steps for each mapping zone you wish to create. ').
$this->l('When you have finished mapping zones, click Save Image Map.')
),
array(
'type' => 'text',
'label' => $this->l('Image map name:'),
@@ -153,7 +160,7 @@ class AdminScenesControllerCore extends AdminController
'required' => true,
'hint' => $this->l('Invalid characters:').' <>;=#{}'
),
array(
array(
'type' => 'radio',
'label' => $this->l('Status:'),
'name' => 'active',
@@ -178,13 +185,13 @@ class AdminScenesControllerCore extends AdminController
$this->fields_form = $fields_form;
$image_to_map_desc = '';
$image_to_map_desc = $this->l('Format:').' JPG, GIF, PNG. '.$this->l('File size:').' '
$image_to_map_desc .= $this->l('Format:').' JPG, GIF, PNG. '.$this->l('File size:').' '
.(Tools::getMaxUploadSize() / 1024).''.$this->l('KB max.').' '
.$this->l('If larger than the image size setting, the image will be reduced to ')
.' '.$large_scene_image_type['width'].'x'.$large_scene_image_type['height'].'px '
.$this->l('(width x height). If smaller than the image-size setting, a white background will be added in order to achieve the
correct image size.').'.<br />'.$this->l('Note: To change image dimensions, please change the \'large_scene\' image type settings
to the desired size (in Back Office > Preferences > Images).');
correct image size.').'.<br />'.
$this->l('Note: To change image dimensions, please change the \'large_scene\' image type settings to the desired size (in Back Office > Preferences > Images).');
if ($obj->id && file_exists(_PS_SCENE_IMG_DIR_.$obj->id.'-large_scene.jpg'))
{
$this->addJqueryPlugin('autocomplete');
@@ -213,8 +220,7 @@ class AdminScenesControllerCore extends AdminController
.$this->l('Filesize:').' '.(Tools::getMaxUploadSize() / 1024).''.$this->l('Kb max.').' '
.$this->l('Automatically resized to')
.' '.$thumb_scene_image_type['width'].'x'.$thumb_scene_image_type['height'].'px '.$this->l('(width x height)').'.<br />'
.$this->l('Note: To change image dimensions, please change the \'thumb_scene\' image type settings to the desired size
(in Back Office > Preferences > Images).');
.$this->l('Note: To change image dimensions, please change the \'thumb_scene\' image type settings to the desired size (in Back Office > Preferences > Images).');
$input_img_alt = array(
'type' => 'file',