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:
Benjamin Perche
2014-07-21 16:17:37 +02:00
parent f83251d31d
commit 6c8411f0c0
9 changed files with 197 additions and 27 deletions

View File

@@ -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;
}
}