Add language in import and export form, with handle by FormatterData
modifié: core/lib/Thelia/Controller/Admin/ExportController.php modifié: core/lib/Thelia/Controller/Admin/ImportController.php modifié: core/lib/Thelia/Core/FileFormat/Formatting/FormatterData.php modifié: core/lib/Thelia/Form/ExportForm.php modifié: core/lib/Thelia/Form/ImportForm.php modifié: templates/backOffice/default/ajax/export-modal.html modifié: templates/backOffice/default/ajax/import-modal.html modifié: templates/backOffice/default/export-page.html modifié: templates/backOffice/default/import-page.html
This commit is contained in:
@@ -14,6 +14,8 @@ namespace Thelia\Core\FileFormat\Formatting;
|
||||
use Propel\Runtime\ActiveQuery\ModelCriteria;
|
||||
use Propel\Runtime\Map\TableMap;
|
||||
use Thelia\Core\Translation\Translator;
|
||||
use Thelia\Model\Lang;
|
||||
|
||||
/**
|
||||
* Class FormatterData
|
||||
* @package Thelia\Core\FileFormat\Formatting
|
||||
@@ -21,6 +23,8 @@ use Thelia\Core\Translation\Translator;
|
||||
*/
|
||||
class FormatterData
|
||||
{
|
||||
protected $lang;
|
||||
|
||||
/** @var array */
|
||||
protected $data = array();
|
||||
|
||||
@@ -227,4 +231,16 @@ class FormatterData
|
||||
{
|
||||
return $this->reverseAliases($this->data, $this->aliases);
|
||||
}
|
||||
|
||||
public function setLang(Lang $lang)
|
||||
{
|
||||
$this->lang = $lang;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getLang()
|
||||
{
|
||||
return $this->lang;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user