//Changed English strings using the translationsenglish module.
This commit is contained in:
@@ -140,7 +140,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
if ($this->tabAccess['edit'] === '1')
|
||||
$this->display = 'edit';
|
||||
else
|
||||
$this->errors[] = Tools::displayError($this->l('You do not have permission to edit here.'));
|
||||
$this->errors[] = Tools::displayError($this->l('You do not have permission to edit this.'));
|
||||
}
|
||||
|
||||
if (Tools::isSubmit('update_receipt') && Tools::isSubmit('id_supply_order'))
|
||||
@@ -166,10 +166,10 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
{
|
||||
|
||||
if (Tools::isSubmit('addsupply_order') || Tools::isSubmit('submitAddsupply_order'))
|
||||
$this->toolbar_title = $this->l('Stock: Create new supply order');
|
||||
$this->toolbar_title = $this->l('Stock: Create a new supply order');
|
||||
|
||||
if (Tools::isSubmit('updatesupply_order') || Tools::isSubmit('submitUpdatesupply_order'))
|
||||
$this->toolbar_title = $this->l('Stock: Manage supply order');
|
||||
$this->toolbar_title = $this->l('Stock: Manage supply orders');
|
||||
|
||||
if (Tools::isSubmit('mod') && Tools::getValue('mod') === 'template' || $this->object->is_template)
|
||||
$this->toolbar_title .= ' ('.$this->l('template').')';
|
||||
@@ -212,7 +212,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
'name' => 'reference',
|
||||
'size' => 50,
|
||||
'required' => true,
|
||||
'desc' => $this->l('This is the reference for your order.'),
|
||||
'desc' => $this->l('Here\'s the reference number for your order.'),
|
||||
),
|
||||
array(
|
||||
'type' => 'select',
|
||||
@@ -224,8 +224,8 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
'id' => 'id_supplier',
|
||||
'name' => 'name'
|
||||
),
|
||||
'desc' => $this->l('Select the supplier from whom you are buying products.'),
|
||||
'hint' => $this->l('Be careful! When changing this field, all products already added to the order will be removed.')
|
||||
'desc' => $this->l('Select the supplier you\'ll be purchasing from.'),
|
||||
'hint' => $this->l('Warning: All products already added to the order will be removed.')
|
||||
),
|
||||
array(
|
||||
'type' => 'select',
|
||||
@@ -237,7 +237,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
'id' => 'id_warehouse',
|
||||
'name' => 'name'
|
||||
),
|
||||
'desc' => $this->l('Select the warehouse to which you want the order to be sent.'),
|
||||
'desc' => $this->l('Which warehouse will the order be sent to?'),
|
||||
),
|
||||
array(
|
||||
'type' => 'select',
|
||||
@@ -250,7 +250,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
'name' => 'name'
|
||||
),
|
||||
'desc' => $this->l('The currency of the order.'),
|
||||
'hint' => $this->l('Be careful! When changing this field, all products already added to the order will be removed.')
|
||||
'hint' => $this->l('Warning: All products already added to the order will be removed.')
|
||||
),
|
||||
array(
|
||||
'type' => 'select',
|
||||
@@ -279,7 +279,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
'size' => 10,
|
||||
'required' => false,
|
||||
'hint' => $this->l('This will reset the order'),
|
||||
'desc' => $this->l('If specified, each product which quantity is less than or equal to this value will be loaded.'),
|
||||
'desc' => $this->l('If specified, each product quantity less than or equal to this value will be loaded.'),
|
||||
),
|
||||
),
|
||||
'submit' => array(
|
||||
@@ -309,7 +309,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
'name' => 'date_delivery_expected',
|
||||
'size' => 10,
|
||||
'required' => true,
|
||||
'desc' => $this->l('This is the expected delivery date for this order.'),
|
||||
'desc' => $this->l('The expected delivery date for this order is...'),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -327,14 +327,14 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
}
|
||||
|
||||
$this->displayInformation(
|
||||
$this->l('Please note that if you wish to order products, they have to be available for the specified Supplier/Warehouse.')
|
||||
$this->l('If you wish to order products, they have to be available for the specified supplier/warehouse.')
|
||||
.' '.
|
||||
$this->l('See Catalog/Products/Your Product/Suppliers & Warehouses')
|
||||
.'<br />'.
|
||||
$this->l('Also, changing the currency or the supplier will reset the order.')
|
||||
$this->l('Changing the currency or the supplier will reset the order.')
|
||||
.'<br />'
|
||||
.'<br />'.
|
||||
$this->l('Finally, please note that you can only order from one supplier at a time.')
|
||||
$this->l('Please note that you can only order from one supplier at a time.')
|
||||
);
|
||||
return parent::renderForm();
|
||||
}
|
||||
@@ -371,7 +371,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
{
|
||||
$this->toolbar_btn['new'] = array(
|
||||
'href' => self::$currentIndex.'&add'.$this->table.'&token='.$this->token,
|
||||
'desc' => $this->l('Add new')
|
||||
'desc' => $this->l('Add New')
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -417,10 +417,10 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
public function renderList()
|
||||
{
|
||||
$this->displayInformation($this->l('This interface allows you to manage supply orders.').'<br />');
|
||||
$this->displayInformation($this->l('Also, you can create templates that you can use later to generate actual orders.').'<br />');
|
||||
$this->displayInformation($this->l('You can create templates to generate actual orders.').'<br />');
|
||||
|
||||
if (count($this->warehouses) <= 1)
|
||||
$this->displayWarning($this->l('You must have at least one warehouse before creating supply orders. See Stock/Warehouses'));
|
||||
$this->displayWarning($this->l('You must choose at least one warehouse before creating supply orders. For more information, see Stock/Warehouses.'));
|
||||
|
||||
// assigns warehouses
|
||||
$this->tpl_list_vars['warehouses'] = $this->warehouses;
|
||||
@@ -574,12 +574,12 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
// defines the fields of the form to display
|
||||
$this->fields_form[]['form'] = array(
|
||||
'legend' => array(
|
||||
'title' => $this->l('Supply Order Status'),
|
||||
'title' => $this->l('Supply order status'),
|
||||
'image' => '../img/admin/cms.gif'
|
||||
),
|
||||
);
|
||||
|
||||
$this->displayInformation($this->l('Be careful when changing status. Some of them cannot be changed afterwards (Canceled, for instance).'));
|
||||
$this->displayInformation($this->l('Be careful when changing status\'. Some of those changes cannot be canceled. '));
|
||||
|
||||
// sets up the helper
|
||||
$helper = new HelperForm();
|
||||
@@ -826,8 +826,8 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
|
||||
// display these global order informations
|
||||
$this->displayInformation($this->l('This interface allows you to update the quantities of this ongoing order.').'<br />');
|
||||
$this->displayInformation($this->l('Be careful : once you update, you cannot go back unless you add new negative stock movements.').'<br />');
|
||||
$this->displayInformation($this->l('Please not that a green line means that you received what you expected, and a red line means that you received more than expected.').'<br />');
|
||||
$this->displayInformation($this->l('Be careful! Once you update, you cannot go back unless you add new negative stock movements.').'<br />');
|
||||
$this->displayInformation($this->l('A green line means that you\'ve received what you expected. A red line means that you\'ve received more than expected.').'<br />');
|
||||
|
||||
// generates content
|
||||
$content = $helper->generateList($this->_list, $this->fields_list);
|
||||
@@ -1122,7 +1122,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
// get supply order ID
|
||||
$id_supply_order = (int)Tools::getValue('id_supply_order', 0);
|
||||
if ($id_supply_order <= 0)
|
||||
$this->errors[] = Tools::displayError($this->l('The supply order id is not valid.'));
|
||||
$this->errors[] = Tools::displayError($this->l('The supply order ID is not valid.'));
|
||||
|
||||
if (!count($this->errors))
|
||||
{
|
||||
@@ -1146,7 +1146,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
// special case of validate state - check if there are products in the order and the required state is not an enclosed state
|
||||
if ($supply_order->isEditable() && !$supply_order->hasEntries() && !$new_state->enclosed)
|
||||
$this->errors[] = Tools::displayError(
|
||||
$this->l('It is not possible to change the status of this order because you did not order any products')
|
||||
$this->l('It is not possible to change the status of this order because you did not order any products.')
|
||||
);
|
||||
|
||||
if (!count($this->errors))
|
||||
@@ -1298,7 +1298,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
$rows = Tools::getValue('supply_order_detailBox');
|
||||
if (!$rows)
|
||||
{
|
||||
$this->errors[] = Tools::displayError($this->l('You did not select any product to update'));
|
||||
$this->errors[] = Tools::displayError($this->l('You did not select any products to update.'));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1314,7 +1314,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
// checks if there is something to update
|
||||
if (!count($to_update))
|
||||
{
|
||||
$this->errors[] = Tools::displayError($this->l('You did not select any product to update'));
|
||||
$this->errors[] = Tools::displayError($this->l('You did not select any products to update.'));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1351,7 +1351,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
$warehouse = new Warehouse($supply_order->id_warehouse);
|
||||
if (!Validate::isLoadedObject($warehouse))
|
||||
{
|
||||
$this->errors[] = Tools::displayError($this->l('Warehouse could not be loaded'));
|
||||
$this->errors[] = Tools::displayError($this->l('The warehouse could not be loaded.'));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1385,7 +1385,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
$supply_order->save();
|
||||
}
|
||||
else
|
||||
$this->errors[] = Tools::displayError($this->l('Something went wrong when adding products to the warehouse'));
|
||||
$this->errors[] = Tools::displayError($this->l('Something went wrong when adding products to the warehouse.'));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1408,7 +1408,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
public function displayUpdateReceiptLink($token = null, $id)
|
||||
{
|
||||
if (!array_key_exists('Receipt', self::$cache_lang))
|
||||
self::$cache_lang['Receipt'] = $this->l('Update ongoing receipt of products');
|
||||
self::$cache_lang['Receipt'] = $this->l('Update ongoing receipt of products.');
|
||||
|
||||
$this->context->smarty->assign(array(
|
||||
'href' => self::$currentIndex.
|
||||
@@ -1450,7 +1450,7 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
public function displayCreateSupplyOrderLink($token = null, $id)
|
||||
{
|
||||
if (!array_key_exists('CreateSupplyOrder', self::$cache_lang))
|
||||
self::$cache_lang['CreateSupplyOrder'] = $this->l('Use this template to create a supply order');
|
||||
self::$cache_lang['CreateSupplyOrder'] = $this->l('Use this template to create a supply order.');
|
||||
|
||||
if (!array_key_exists('CreateSupplyOrderConfirm', self::$cache_lang))
|
||||
self::$cache_lang['CreateSupplyOrderConfirm'] = $this->l('Are you sure you want to use this template?');
|
||||
@@ -1695,9 +1695,9 @@ class AdminSupplyOrdersControllerCore extends AdminController
|
||||
if (Validate::isLoadedObject($supply_order))
|
||||
{
|
||||
if (!$supply_order->is_template)
|
||||
$this->displayInformation($this->l('This interface allows you to display detailed information on your order.').'<br />');
|
||||
$this->displayInformation($this->l('This interface allows you to display detailed information about your order.').'<br />');
|
||||
else
|
||||
$this->displayInformation($this->l('This interface allows you to display detailed information on your order template.').'<br />');
|
||||
$this->displayInformation($this->l('This interface allows you to display detailed information about your order template.').'<br />');
|
||||
|
||||
$lang_id = (int)$supply_order->id_lang;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user