[*] Installer : thanks to the old installer/upgrader which is now removed
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12525 b9a71923-0436-4b27-9f14-aed3839534dd
@@ -1,91 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
class AddConfToFile
|
||||
{
|
||||
public $fd;
|
||||
public $file;
|
||||
public $mode;
|
||||
public $error = false;
|
||||
|
||||
public function __construct($file, $mode = 'r+')
|
||||
{
|
||||
$this->file = $file;
|
||||
$this->mode = $mode;
|
||||
$this->checkFile($file);
|
||||
if ($mode == 'w' AND !$this->error)
|
||||
if (!$res = @fwrite($this->fd, '<?php'."\n"))
|
||||
$this->error = 6;
|
||||
}
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
if (!$this->error)
|
||||
@fclose($this->fd);
|
||||
}
|
||||
|
||||
private function checkFile($file)
|
||||
{
|
||||
if (!$fd = @fopen($this->file, $this->mode))
|
||||
$this->error = 5;
|
||||
elseif (!is_writable($this->file))
|
||||
$this->error = 6;
|
||||
$this->fd = $fd;
|
||||
}
|
||||
|
||||
public function writeInFile($name, $data)
|
||||
{
|
||||
if (!$res = @fwrite($this->fd,
|
||||
'define(\''.$name.'\', \''.$this->checkString($data).'\');'."\n"))
|
||||
{
|
||||
$this->error = 6;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public function writeEndTagPhp()
|
||||
{
|
||||
if (!$res = @fwrite($this->fd, '?>'."\n")) {
|
||||
$this->error = 6;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public function checkString($string)
|
||||
{
|
||||
if (get_magic_quotes_gpc())
|
||||
$string = stripslashes($string);
|
||||
if (!is_numeric($string))
|
||||
{
|
||||
$string = addslashes($string);
|
||||
$string = strip_tags(nl2br($string));
|
||||
}
|
||||
return $string;
|
||||
}
|
||||
}
|
||||
@@ -1,667 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
/**
|
||||
* This class search Prestashop version from current database structure
|
||||
*
|
||||
* @since 1.4.2.3
|
||||
* @todo (priority low) compare index keys updates ; compare types range ; add custom methods to search versions with no SQL updates
|
||||
*/
|
||||
class GetVersionFromDb
|
||||
{
|
||||
/**
|
||||
* @var array Because of some errors and differences between some upgrades files and some db.sql files, we need to ignore some fields.
|
||||
*/
|
||||
private $ignore = array(
|
||||
'blocklink' => array(
|
||||
'fields' => array('id_link', 'id_blocklink'),
|
||||
),
|
||||
'blocklink_lang' => array(
|
||||
'fields' => array('id_link', 'id_blocklink'),
|
||||
'keys' => array('primary'),
|
||||
),
|
||||
'cms_block' => array(
|
||||
'fields' => array('id_block_cms', 'id_cms_block', 'display_store'),
|
||||
),
|
||||
'cms_block_lang' => array(
|
||||
'fields' => array('id_block_cms', 'id_cms_block'),
|
||||
),
|
||||
'cms_block_page' => array(
|
||||
'fields' => array('id_block_cms_page', 'id_cms_block_page'),
|
||||
),
|
||||
'cms_lang' => array(
|
||||
'types' => array('content'),
|
||||
),
|
||||
'log_email' => array(
|
||||
'keys' => array('date_add', 'id_cart'),
|
||||
),
|
||||
'newsletter' => array(
|
||||
'fields' => array('http_referer'),
|
||||
),
|
||||
'order_detail' => array(
|
||||
'fields' => array('group_reduction', 'ecotax_tax_rate', 'id_currency', 'reduction_percent', 'reduction_amount'),
|
||||
),
|
||||
'webservice_account' => array(
|
||||
'fields' => array('is_module', 'module_name'),
|
||||
),
|
||||
);
|
||||
|
||||
/**
|
||||
* @var string Path to install directory
|
||||
*/
|
||||
private $installPath;
|
||||
|
||||
/**
|
||||
* @var array Store schemas of all upgrades
|
||||
*/
|
||||
private $schemas = array();
|
||||
|
||||
/**
|
||||
* @var array Store db.sql schema
|
||||
*/
|
||||
private $generalSchema = null;
|
||||
|
||||
/**
|
||||
* @var array Store current database schema
|
||||
*/
|
||||
private $currentSchema = null;
|
||||
|
||||
/**
|
||||
* @var bool If set to false, will compare all data of each table to get full error log
|
||||
*/
|
||||
private $fastExecution = false;
|
||||
|
||||
/**
|
||||
* @var bool If true, fields type will be compared too
|
||||
*/
|
||||
private $compareTypes = true;
|
||||
|
||||
/**
|
||||
* @var int Store microtime of the script execution
|
||||
*/
|
||||
private $totalTime = 0;
|
||||
|
||||
/**
|
||||
* @var array Error log
|
||||
*/
|
||||
private $errors = array();
|
||||
|
||||
/**
|
||||
* @var array Prefix for current database
|
||||
*/
|
||||
private $prefix;
|
||||
|
||||
/**
|
||||
* @var string Found versions
|
||||
*/
|
||||
private $versions = array();
|
||||
|
||||
/**
|
||||
* Constructor, launch the compare algorithm
|
||||
*
|
||||
* @param bool $compareTypes If true, will compare field types
|
||||
* @param bool $fastExecution If false, will loose some performance but log all errors
|
||||
*/
|
||||
public function __construct($compareTypes = true, $fastExecution = false)
|
||||
{
|
||||
// added for compatibility prestashop version < 1.3.7
|
||||
if(!defined('_PS_CACHE_ENABLED_'))
|
||||
define('_PS_CACHE_ENABLED_', '0');
|
||||
|
||||
$this->installPath = INSTALL_PATH . '/';
|
||||
$this->prefix = _DB_PREFIX_;
|
||||
$this->compareTypes = $compareTypes;
|
||||
$this->fastExecution = $fastExecution;
|
||||
|
||||
$start = microtime(true);
|
||||
$this->generateSchemasFromUpdates();
|
||||
$this->getDatabaseSchema();
|
||||
$this->versions = $this->searchCurrentVersion();
|
||||
$this->totalTime = microtime(true) - $start;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int Get total execution time of class
|
||||
*/
|
||||
public function getTotalTime()
|
||||
{
|
||||
return $this->totalTime;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array Get list of differences between current database and all upgrades
|
||||
*/
|
||||
public function getErrors($version = null)
|
||||
{
|
||||
if (!is_null($version))
|
||||
{
|
||||
return isset($this->errors[$version]) ? $this->errors[$version] : array();
|
||||
}
|
||||
return $this->errors;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string Get found versions
|
||||
*/
|
||||
public function getVersions()
|
||||
{
|
||||
return $this->versions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add more informations in database schema property in order to fix some troubles with missing data between db.sql and upgrades
|
||||
*/
|
||||
private function completeDatabaseSchema()
|
||||
{
|
||||
// Add key "discount" in "discount_category" table, because the name is different between the 1.2.2 upgrade and db.sql
|
||||
if (isset($this->currentSchema['discount_category']['@keys']['id_discount']))
|
||||
$this->currentSchema['discount_category']['@keys']['discount'] = $this->currentSchema['discount_category']['@keys']['id_discount'];
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the schema of all updates
|
||||
*/
|
||||
private function generateSchemasFromUpdates()
|
||||
{
|
||||
// Get list of sorted upgrades
|
||||
$fd = opendir($this->installPath . 'sql/upgrade');
|
||||
while ($file = readdir($fd))
|
||||
{
|
||||
if (substr($file, -3, 3) == 'sql' && version_compare(substr($file, 0, -4), INSTALL_VERSION) <= 0)
|
||||
{
|
||||
$list[] = $file;
|
||||
}
|
||||
}
|
||||
closedir($fd);
|
||||
usort($list, 'version_compare');
|
||||
$list = array_reverse($list);
|
||||
|
||||
for ($i = 0, $total = count($list); $i < $total - 1; $i++)
|
||||
{
|
||||
$file = $list[$i];
|
||||
$next = $list[$i + 1];
|
||||
|
||||
$this->generateSchema(substr($file, 0, -4), substr($next, 0, -4));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Generate the schema of the given version
|
||||
*
|
||||
* @param string $currentVersion Version name
|
||||
* @param string $nextVersion Next version
|
||||
*/
|
||||
private function generateSchema($currentVersion, $nextVersion)
|
||||
{
|
||||
static $storeTypes = array();
|
||||
|
||||
// Load db.sql once
|
||||
if (is_null($this->generalSchema))
|
||||
{
|
||||
$this->loadGeneralSchema();
|
||||
}
|
||||
|
||||
$this->schemas[] = array(
|
||||
'name' => $nextVersion,
|
||||
'struct' => array(),
|
||||
);
|
||||
|
||||
// Read queries in upgrade files, and reverse structure from db.sql
|
||||
if (!file_exists($this->installPath . 'sql/upgrade/' . $currentVersion . '.sql'))
|
||||
{
|
||||
throw new Exception('File sql/upgrade/' . $currentVersion . '.sql not found');
|
||||
}
|
||||
|
||||
$struct = (count($this->schemas) >= 2) ? $this->schemas[count($this->schemas) - 2]['struct'] : $this->generalSchema;
|
||||
$content = file_get_contents($this->installPath . 'sql/upgrade/' . $currentVersion . '.sql');
|
||||
$queries = array_reverse(preg_split("/;\s*[\r\n]+/", $content));
|
||||
foreach ($queries as $query)
|
||||
{
|
||||
$query = trim($query);
|
||||
|
||||
// ALTER TABLE -> add, delete or update fields
|
||||
if (preg_match('#^alter\s+table\s+`?prefix_([a-z0-9_]+)`?\s+#si', $query, $m))
|
||||
{
|
||||
$table = $m[1];
|
||||
|
||||
// Alter drop index
|
||||
preg_match_all('#\s*drop\s+(index|primary key)(\s+`?([a-z0-9_]+)`?)?#si', $query, $m);
|
||||
for ($i = 0, $total = count($m[0]); $i < $total; $i++)
|
||||
{
|
||||
$name = $m[3][$i];
|
||||
if (strtolower($m[1][$i]) == 'primary key')
|
||||
{
|
||||
$name = 'primary';
|
||||
}
|
||||
|
||||
$struct[$table]['@keys'][$name] = '?';
|
||||
$query = str_replace($m[0][$i], '', $query);
|
||||
}
|
||||
|
||||
// Alter add index
|
||||
preg_match_all('#\s*add\s+(index|primary key|key|unique key|unique)\s*\(?([a-z0-9_,`\s]+)\)?(\s+\(([a-z0-9_,` ]+)\))?\s*(,|;|$)#si', $query, $m);
|
||||
for ($i = 0, $total = count($m[0]); $i < $total; $i++)
|
||||
{
|
||||
$name = str_replace(array('`', ' '), array('', ''), $m[2][$i]);
|
||||
$tmpName = explode(',', $name);
|
||||
$name = $tmpName[0];
|
||||
|
||||
if (strtolower($m[1][$i] == 'primary key'))
|
||||
{
|
||||
$name = 'primary';
|
||||
}
|
||||
|
||||
if (isset($struct[$table]['@keys']) && !isset($struct[$table]['@keys'][$name]))
|
||||
{
|
||||
// If key name doesn't exist, we try to match with list of fields and type
|
||||
$type = strtolower($m[1][$i]);
|
||||
if ($type == 'primary key')
|
||||
{
|
||||
$type = 'primary';
|
||||
}
|
||||
else if ($type == 'key')
|
||||
{
|
||||
$type = 'index';
|
||||
}
|
||||
else if ($type == 'unique key')
|
||||
{
|
||||
$type = 'unique';
|
||||
}
|
||||
|
||||
$fields = ($m[4][$i]) ? $m[4][$i] : $m[2][$i];
|
||||
$fields = explode(',', preg_replace('#[\s`]#si', '', $fields));
|
||||
|
||||
foreach ($struct[$table]['@keys'] as $key => $data)
|
||||
{
|
||||
if ($data['type'] == $type && !array_diff($data['fields'], $fields))
|
||||
{
|
||||
// Found it !
|
||||
unset($struct[$table]['@keys'][$key]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
unset($struct[$table]['@keys'][$name]);
|
||||
}
|
||||
$query = str_replace($m[0][$i], '', $query);
|
||||
}
|
||||
|
||||
// Alter add
|
||||
preg_match_all('#\s*add\s+`?([a-z0-9_]+)`?\s+(([a-z]+)(\([ 0-9,]+\))?(\s+unsigned)?)(\s+not)?(\s+null)?(\s+auto_increment)?(\s+primary)?#si', $query, $m);
|
||||
for ($i = 0, $total = count($m[0]); $i < $total; $i++)
|
||||
{
|
||||
unset($struct[$table][$m[1][$i]]);
|
||||
if (strtolower(trim($m[9][$i])) == 'primary')
|
||||
{
|
||||
unset($struct[$table]['@keys']['primary']);
|
||||
}
|
||||
}
|
||||
|
||||
// Alter drop
|
||||
preg_match_all('#\s*drop\s+`?([a-z0-9_]+)`?#si', $query, $m);
|
||||
for ($i = 0, $total = count($m[0]); $i < $total; $i++)
|
||||
{
|
||||
$struct[$table][$m[1][$i]] = '?';
|
||||
}
|
||||
|
||||
// Alter change
|
||||
preg_match_all('#\s*change\s+`([a-z0-9_]+)`\s+`?([a-z0-9_]+)`?\s+([a-z]+)(\s*\([ 0-9,]+\))?(\s+unsigned)?#si', $query, $m);
|
||||
for ($i = 0, $total = count($m[0]); $i < $total; $i++)
|
||||
{
|
||||
if ($m[1][$i] != $m[2][$i])
|
||||
{
|
||||
unset($struct[$table][$m[1][$i]]);
|
||||
}
|
||||
$struct[$table][$m[2][$i]] = '?';
|
||||
}
|
||||
}
|
||||
// CREATE TABLE -> delete this table from structure
|
||||
else if (preg_match('#^create\s+table\s+(if\s+not\s+exists\s+)?`?prefix_([a-z0-9_]+)`?#si', $query, $m) && !preg_match('#_tmp[0-9]?$#i', $m[2]))
|
||||
{
|
||||
unset($struct[$m[2]]);
|
||||
}
|
||||
// DROP TABLE -> add this table in structure
|
||||
else if (preg_match('#^drop\s*table\s+(if\s+exists\s+)?`?prefix_([a-z0-9_]+)`?#si', $query, $m) && !preg_match('#_tmp[0-9]?$#i', $m[2]))
|
||||
{
|
||||
$struct[$m[2]] = array();
|
||||
}
|
||||
}
|
||||
|
||||
$this->schemas[count($this->schemas) - 1]['struct'] = $struct;
|
||||
}
|
||||
|
||||
/**
|
||||
* Read db.sql file and load tables structure
|
||||
*/
|
||||
private function loadGeneralSchema()
|
||||
{
|
||||
$this->generalSchema = array();
|
||||
if (!file_exists($this->installPath . 'sql/db.sql'))
|
||||
{
|
||||
throw new Exception('File sql/db.sql not found');
|
||||
}
|
||||
|
||||
// Get create queries from db.sql file
|
||||
$content = file_get_contents($this->installPath . 'sql/db.sql');
|
||||
$queries = preg_split("/;\s*[\r\n]+/", $content);
|
||||
foreach ($queries as $query)
|
||||
{
|
||||
$query = trim($query);
|
||||
if (!preg_match('#^create table `?prefix_([a-z0-9_]+)`?\s#i', $query, $m))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$table = $m[1];
|
||||
$this->generalSchema[$table] = array();
|
||||
|
||||
// Get fields list
|
||||
preg_match_all('#(\(|,)\s*`?([a-z0-9_]+)`?\s+(([a-z]+)(\([ 0-9,]+\))?(\s+unsigned)?)\s*[^,]*#si', $query, $m);
|
||||
for ($i = 0, $total = count($m[0]); $i < $total; $i++)
|
||||
{
|
||||
if (in_array(strtolower($m[2][$i]), array('primary', 'key', 'unique', 'index')))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
$this->generalSchema[$table][$m[2][$i]] = $this->parseType($m[4][$i]);
|
||||
}
|
||||
|
||||
// Get index
|
||||
$this->generalSchema[$table]['@keys'] = array();
|
||||
preg_match_all('#(primary\s+key|unique\s+key|key|index)\s+\(?`?([a-z0-9_,` ]+)`?\)?(\s+\(([a-z0-9_,` ]+)\))?\s*(,|\))#si', $query, $m);
|
||||
for ($i = 0, $total = count($m[0]); $i < $total; $i++)
|
||||
{
|
||||
$type = strtolower($m[1][$i]);
|
||||
if ($type == 'primary key')
|
||||
{
|
||||
$type = 'primary';
|
||||
}
|
||||
else if ($type == 'key')
|
||||
{
|
||||
$type = 'index';
|
||||
}
|
||||
else if ($type == 'unique key')
|
||||
{
|
||||
$type = 'unique';
|
||||
}
|
||||
|
||||
$name = str_replace(array('`', ' '), array('', ''), $m[2][$i]);
|
||||
$tmpName = explode(',', $name);
|
||||
$name = $tmpName[0];
|
||||
if ($type == 'primary')
|
||||
{
|
||||
$name = 'primary';
|
||||
}
|
||||
|
||||
$fields = ($m[4][$i]) ? $m[4][$i] : $m[2][$i];
|
||||
$fields = explode(',', preg_replace('#[\s`]#si', '', $fields));
|
||||
|
||||
$this->generalSchema[$table]['@keys'][$name] = array(
|
||||
'type' => $type,
|
||||
'fields' => $fields,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
$this->schemas[] = array(
|
||||
'name' => INSTALL_VERSION,
|
||||
'struct' => $this->generalSchema,
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the schema of current database
|
||||
*/
|
||||
private function getDatabaseSchema()
|
||||
{
|
||||
$struct = array();
|
||||
$sql = 'SHOW TABLES';
|
||||
foreach (Db::getInstance()->executeS($sql) as $row)
|
||||
{
|
||||
$table = current($row);
|
||||
if (substr($table, 0, strlen($this->prefix)) != $this->prefix)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$virtualTable = substr($table, strlen($this->prefix));
|
||||
$struct[$virtualTable] = array();
|
||||
|
||||
// List fields
|
||||
$sql = 'SHOW FIELDS FROM ' . $table;
|
||||
foreach (Db::getInstance()->executeS($sql) as $rowField)
|
||||
{
|
||||
$struct[$virtualTable][$rowField['Field']] = $this->parseType($rowField['Type']);
|
||||
}
|
||||
|
||||
// List keys
|
||||
$struct[$virtualTable]['@keys'] = array();
|
||||
$sql = 'SHOW INDEX FROM ' . $table;
|
||||
$results = Db::getInstance()->executeS($sql);
|
||||
if($results)
|
||||
foreach ($results as $rowIndex)
|
||||
{
|
||||
$keyName = strtolower($rowIndex['Key_name']);
|
||||
$type = 'index';
|
||||
if ($keyName == 'primary')
|
||||
{
|
||||
$type = 'primary';
|
||||
}
|
||||
else if (!$rowIndex['Non_unique'])
|
||||
{
|
||||
$type = 'unique';
|
||||
}
|
||||
|
||||
if (!isset($struct[$virtualTable]['@keys'][$keyName]))
|
||||
{
|
||||
$struct[$virtualTable]['@keys'][$keyName] = array(
|
||||
'type' => $type,
|
||||
'fields' => array(),
|
||||
);
|
||||
}
|
||||
$struct[$virtualTable]['@keys'][$keyName]['fields'][] = $rowIndex['Column_name'];
|
||||
}
|
||||
}
|
||||
|
||||
$this->currentSchema = $struct;
|
||||
$this->completeDatabaseSchema();
|
||||
}
|
||||
|
||||
/**
|
||||
* Launch comparison and search current version
|
||||
*/
|
||||
private function searchCurrentVersion()
|
||||
{
|
||||
$this->errors = array();
|
||||
$version = null;
|
||||
$versions = array();
|
||||
$state = 0;
|
||||
|
||||
// Browse all schema, we will compare all data of listed schema to current database structure, evertytime something is different
|
||||
// we break and go to next schema
|
||||
foreach ($this->schemas as $schema)
|
||||
{
|
||||
$struct = $schema['struct'];
|
||||
$this->errors[$schema['name']] = array();
|
||||
$isThisVersion = true;
|
||||
|
||||
// Browse all table for schema
|
||||
foreach ($struct as $table => $fields)
|
||||
{
|
||||
// Is this table ignored ?
|
||||
if (isset($this->ignore[$table]) && !$this->ignore[$table])
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// Check if table exists
|
||||
if (!isset($this->currentSchema[$table]))
|
||||
{
|
||||
$this->errors[$schema['name']][] = "Table '$table' not found";
|
||||
$isThisVersion = false;
|
||||
|
||||
if ($this->fastExecution)
|
||||
{
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
// Browse all fields for this table
|
||||
foreach ($fields as $field => $type)
|
||||
{
|
||||
if ($field == '@keys')
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// Is this field ignored ?
|
||||
if (isset($this->ignore[$table], $this->ignore[$table]['fields']) && in_array($field, $this->ignore[$table]['fields']))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// Check if field exists
|
||||
if (!isset($this->currentSchema[$table][$field]))
|
||||
{
|
||||
$this->errors[$schema['name']][] = "Field '$field' in table '$table' not found";
|
||||
$isThisVersion = false;
|
||||
|
||||
if ($this->fastExecution)
|
||||
{
|
||||
break 2;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
// Is this type ignored ?
|
||||
if (isset($this->ignore[$table], $this->ignore[$table]['types']) && in_array($field, $this->ignore[$table]['types']))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// Compare the field type, ignore comparaison if we don't know the field type (? char)
|
||||
if ($this->compareTypes && $type != '?' && $this->currentSchema[$table][$field] != $type)
|
||||
{
|
||||
$this->errors[$schema['name']][] = "The field '$field' in table '$table' has a different type ('$type' :: '{$this->currentSchema[$table][$field]}')";
|
||||
$isThisVersion = false;
|
||||
|
||||
if ($this->fastExecution)
|
||||
{
|
||||
break 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Compare index
|
||||
if (isset($fields['@keys']))
|
||||
{
|
||||
foreach ($fields['@keys'] as $name => $data)
|
||||
{
|
||||
if ($data == '?')
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// Is this index ignored ?
|
||||
if (isset($this->ignore[$table], $this->ignore[$table]['keys']) && in_array($name, $this->ignore[$table]['keys']))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// Test if index exists
|
||||
if (!isset($this->currentSchema[$table]['@keys'][$name]))
|
||||
{
|
||||
$this->errors[$schema['name']][] = "Key '$name' in table '$table' not found";
|
||||
$isThisVersion = false;
|
||||
|
||||
if ($this->fastExecution)
|
||||
{
|
||||
break 2;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
// Compare index type
|
||||
if ($this->currentSchema[$table]['@keys'][$name]['type'] != $data['type'])
|
||||
{
|
||||
$this->errors[$schema['name']][] = "Key '$name' in table '$table' has different type ('{$this->currentSchema[$table]['@keys'][$name]['type']}', '{$data['type']}')";
|
||||
$isThisVersion = false;
|
||||
|
||||
if ($this->fastExecution)
|
||||
{
|
||||
break 2;
|
||||
}
|
||||
}
|
||||
|
||||
// Compare list of fields
|
||||
$diff = array_diff($this->currentSchema[$table]['@keys'][$name]['fields'], $data['fields']);
|
||||
if ($diff)
|
||||
{
|
||||
$this->errors[$schema['name']][] = "Key '$name' in table '$table' has different fields ('" . implode("', '", $diff) . "')";
|
||||
$isThisVersion = false;
|
||||
|
||||
if ($this->fastExecution)
|
||||
{
|
||||
break 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($isThisVersion)
|
||||
{
|
||||
$versions[] = $schema['name'];
|
||||
$state = 1;
|
||||
}
|
||||
|
||||
if (!$isThisVersion && $state == 1)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return ($versions);
|
||||
}
|
||||
|
||||
/**
|
||||
* Format correctly a field type name
|
||||
*
|
||||
* @param string $type Type name
|
||||
* @return Parsed type name
|
||||
*/
|
||||
private function parseType($type)
|
||||
{
|
||||
$type = strtolower(preg_replace('#^([a-z]+).*$#i', '\\1', $type));
|
||||
$type = str_replace('boolean', 'tinyint', $type);
|
||||
|
||||
return $type;
|
||||
}
|
||||
}
|
||||
@@ -1,652 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 7442 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
class Language extends ObjectModel
|
||||
{
|
||||
public $id;
|
||||
|
||||
/** @var string Name */
|
||||
public $name;
|
||||
|
||||
/** @var string 2-letter iso code */
|
||||
public $iso_code;
|
||||
|
||||
/** @var string 5-letter iso code */
|
||||
public $language_code;
|
||||
|
||||
/** @var bool true if this language is right to left language */
|
||||
public $is_rtl = false;
|
||||
|
||||
/** @var boolean Status */
|
||||
public $active = true;
|
||||
|
||||
protected $fieldsRequired = array('name', 'iso_code');
|
||||
protected $fieldsSize = array('name' => 32, 'iso_code' => 2, 'language_code' => 5);
|
||||
protected $fieldsValidate = array('name' => 'isGenericName', 'iso_code' => 'isLanguageIsoCode', 'language_code' => 'isLanguageCode', 'active' => 'isBool', 'is_rtl' => 'isBool');
|
||||
|
||||
protected $table = 'lang';
|
||||
protected $identifier = 'id_lang';
|
||||
|
||||
/** @var array Languages cache */
|
||||
protected static $_checkedLangs;
|
||||
protected static $_LANGUAGES;
|
||||
protected static $countActiveLanguages;
|
||||
|
||||
protected $webserviceParameters = array(
|
||||
'objectNodeName' => 'language',
|
||||
'objectsNodeName' => 'languages',
|
||||
);
|
||||
|
||||
public function __construct($id = NULL, $id_lang = NULL)
|
||||
{
|
||||
parent::__construct($id);
|
||||
}
|
||||
|
||||
public function getFields()
|
||||
{
|
||||
parent::validateFields();
|
||||
$fields['name'] = pSQL($this->name);
|
||||
$fields['iso_code'] = pSQL(strtolower($this->iso_code));
|
||||
$fields['language_code'] = pSQL(strtolower($this->language_code));
|
||||
$fields['is_rtl'] = (int)$this->is_rtl;
|
||||
if (empty($fields['language_code']))
|
||||
$fields['language_code'] = $fields['iso_code'];
|
||||
$fields['active'] = (int)$this->active;
|
||||
return $fields;
|
||||
}
|
||||
|
||||
public function add($autodate = true, $nullValues = false)
|
||||
{
|
||||
if (!parent::add($autodate))
|
||||
return false;
|
||||
|
||||
$translationsFiles = array(
|
||||
'fields' => '_FIELDS',
|
||||
'errors' => '_ERRORS',
|
||||
'admin' => '_LANGADM',
|
||||
'pdf' => '_LANGPDF',
|
||||
);
|
||||
if (!file_exists(_PS_TRANSLATIONS_DIR_.$this->iso_code))
|
||||
mkdir(_PS_TRANSLATIONS_DIR_.$this->iso_code);
|
||||
foreach ($translationsFiles as $file => $var)
|
||||
if (!file_exists(_PS_TRANSLATIONS_DIR_.$this->iso_code.'/'.$file.'.php'))
|
||||
file_put_contents(_PS_TRANSLATIONS_DIR_.$this->iso_code.'/'.$file.'.php', '<?php
|
||||
global $'.$var.';
|
||||
$'.$var.' = array();
|
||||
?>');
|
||||
|
||||
$resUpdateSQL = $this->loadUpdateSQL();
|
||||
// If url_rewrite is not enabled, we don't need to regenerate .htaccess
|
||||
if(!Configuration::get('PS_REWRITING_SETTINGS'))
|
||||
return $resUpdateSQL;
|
||||
|
||||
return ($resUpdateSQL AND Tools::generateHtaccess(dirname(__FILE__).'/../.htaccess',
|
||||
(int)(Configuration::get('PS_REWRITING_SETTINGS')),
|
||||
(int)(Configuration::get('PS_HTACCESS_CACHE_CONTROL')),
|
||||
''
|
||||
));
|
||||
}
|
||||
|
||||
public function toggleStatus()
|
||||
{
|
||||
if (!parent::toggleStatus())
|
||||
return false;
|
||||
|
||||
// If url_rewrite is not enabled, we don't need to regenerate .htaccess
|
||||
if(!Configuration::get('PS_REWRITING_SETTINGS'))
|
||||
return true;
|
||||
return (Tools::generateHtaccess(dirname(__FILE__).'/../.htaccess',
|
||||
(int)(Configuration::get('PS_REWRITING_SETTINGS')),
|
||||
(int)(Configuration::get('PS_HTACCESS_CACHE_CONTROL')),
|
||||
''
|
||||
));
|
||||
}
|
||||
|
||||
public function checkFiles()
|
||||
{
|
||||
return self::checkFilesWithIsoCode($this->iso_code);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This functions checks if every files exists for the language $iso_code.
|
||||
* Concerned files are those located in translations/$iso_code/
|
||||
* and translations/mails/$iso_code .
|
||||
*
|
||||
* @param mixed $iso_code
|
||||
* @returntrue if all files exists
|
||||
*/
|
||||
public static function checkFilesWithIsoCode($iso_code)
|
||||
{
|
||||
if (isset(self::$_checkedLangs[$iso_code]) AND self::$_checkedLangs[$iso_code])
|
||||
return true;
|
||||
foreach (array_keys(self::getFilesList($iso_code, _THEME_NAME_, false, false, false, true)) as $key)
|
||||
if (!file_exists($key))
|
||||
return false;
|
||||
self::$_checkedLangs[$iso_code] = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
public static function getFilesList($iso_from, $theme_from, $iso_to = false, $theme_to = false, $select = false, $check = false, $modules = false)
|
||||
{
|
||||
if (empty($iso_from))
|
||||
die(Tools::displayError());
|
||||
|
||||
$copy = ($iso_to AND $theme_to) ? true : false;
|
||||
|
||||
$lPath_from = _PS_TRANSLATIONS_DIR_.(string)$iso_from.'/';
|
||||
$tPath_from = _PS_ROOT_DIR_.'/themes/'.(string)$theme_from.'/';
|
||||
$mPath_from = _PS_MAIL_DIR_.(string)$iso_from.'/';
|
||||
|
||||
if ($copy)
|
||||
{
|
||||
$lPath_to = _PS_TRANSLATIONS_DIR_.(string)$iso_to.'/';
|
||||
$tPath_to = _PS_ROOT_DIR_.'/themes/'.(string)$theme_to.'/';
|
||||
$mPath_to = _PS_MAIL_DIR_.(string)$iso_to.'/';
|
||||
}
|
||||
|
||||
$lFiles = array('admin'.'.php', 'errors'.'.php', 'fields'.'.php', 'pdf'.'.php');
|
||||
$mFiles = array(
|
||||
'account.html', 'account.txt',
|
||||
'bankwire.html', 'bankwire.txt',
|
||||
'cheque.html', 'cheque.txt',
|
||||
'contact.html', 'contact.txt',
|
||||
'contact_form.html', 'contact_form.txt',
|
||||
'credit_slip.html', 'credit_slip.txt',
|
||||
'download_product.html', 'download_product.txt',
|
||||
'download-product.tpl',
|
||||
'employee_password.html', 'employee_password.txt',
|
||||
'forward_msg.html', 'forward_msg.txt',
|
||||
'guest_to_customer.html', 'guest_to_customer.txt',
|
||||
'in_transit.html', 'in_transit.txt',
|
||||
'newsletter.html', 'newsletter.txt',
|
||||
'order_canceled.html', 'order_canceled.txt',
|
||||
'order_conf.html', 'order_conf.txt',
|
||||
'order_customer_comment.html', 'order_customer_comment.txt',
|
||||
'order_merchant_comment.html', 'order_merchant_comment.txt',
|
||||
'order_return_state.html', 'order_return_state.txt',
|
||||
'outofstock.html', 'outofstock.txt',
|
||||
'password.html', 'password.txt',
|
||||
'password_query.html', 'password_query.txt',
|
||||
'payment.html', 'payment.txt',
|
||||
'payment_error.html', 'payment_error.txt',
|
||||
'preparation.html', 'preparation.txt',
|
||||
'refund.html', 'refund.txt',
|
||||
'reply_msg.html', 'reply_msg.txt',
|
||||
'shipped.html', 'shipped.txt',
|
||||
'test.html', 'test.txt',
|
||||
'voucher.html', 'voucher.txt',
|
||||
);
|
||||
|
||||
$number = -1;
|
||||
|
||||
$files = array();
|
||||
$files_tr = array();
|
||||
$files_theme = array();
|
||||
$files_mail = array();
|
||||
$files_modules = array();
|
||||
|
||||
|
||||
// When a copy is made from a theme in specific language
|
||||
// to an other theme for the same language,
|
||||
// it's avoid to copy Translations, Mails files
|
||||
// and modules files which are not override by theme.
|
||||
if (!$copy OR $iso_from != $iso_to)
|
||||
{
|
||||
// Translations files
|
||||
if (!$check OR ($check AND (string)$iso_from != 'en'))
|
||||
foreach ($lFiles as $file)
|
||||
$files_tr[$lPath_from.$file] = ($copy ? $lPath_to.$file : ++$number);
|
||||
if ($select == 'tr')
|
||||
return $files_tr;
|
||||
$files = array_merge($files, $files_tr);
|
||||
|
||||
// Mail files
|
||||
if (!$check OR ($check AND (string)$iso_from != 'en'))
|
||||
$files_mail[$mPath_from.'lang.php'] = ($copy ? $mPath_to.'lang.php' : ++$number);
|
||||
foreach ($mFiles as $file)
|
||||
$files_mail[$mPath_from.$file] = ($copy ? $mPath_to.$file : ++$number);
|
||||
if ($select == 'mail')
|
||||
return $files_mail;
|
||||
$files = array_merge($files, $files_mail);
|
||||
|
||||
// Modules
|
||||
if ($modules)
|
||||
{
|
||||
$modList = Module::getModulesDirOnDisk();
|
||||
foreach ($modList as $mod)
|
||||
{
|
||||
$modDir = _PS_MODULE_DIR_.$mod;
|
||||
// Lang file
|
||||
if (file_exists($modDir.'/'.(string)$iso_from.'.php'))
|
||||
$files_modules[$modDir.'/'.(string)$iso_from.'.php'] = ($copy ? $modDir.'/'.(string)$iso_to.'.php' : ++$number);
|
||||
// Mails files
|
||||
$modMailDirFrom = $modDir.'/mails/'.(string)$iso_from;
|
||||
$modMailDirTo = $modDir.'/mails/'.(string)$iso_to;
|
||||
if (file_exists($modMailDirFrom))
|
||||
{
|
||||
$dirFiles = scandir($modMailDirFrom);
|
||||
foreach ($dirFiles as $file)
|
||||
if (file_exists($modMailDirFrom.'/'.$file) AND $file != '.' AND $file != '..' AND $file != '.svn')
|
||||
$files_modules[$modMailDirFrom.'/'.$file] = ($copy ? $modMailDirTo.'/'.$file : ++$number);
|
||||
}
|
||||
}
|
||||
if ($select == 'modules')
|
||||
return $files_modules;
|
||||
$files = array_merge($files, $files_modules);
|
||||
}
|
||||
}
|
||||
else if ($select == 'mail' OR $select == 'tr')
|
||||
{
|
||||
return $files;
|
||||
}
|
||||
|
||||
// Theme files
|
||||
if (!$check OR ($check AND (string)$iso_from != 'en'))
|
||||
{
|
||||
$files_theme[$tPath_from.'lang/'.(string)$iso_from.'.php'] = ($copy ? $tPath_to.'lang/'.(string)$iso_to.'.php' : ++$number);
|
||||
$module_theme_files = (file_exists($tPath_from.'modules/') ? scandir($tPath_from.'modules/') : array());
|
||||
foreach ($module_theme_files as $module)
|
||||
if ($module !== '.' AND $module != '..' AND $module !== '.svn' AND file_exists($tPath_from.'modules/'.$module.'/'.(string)$iso_from.'.php'))
|
||||
$files_theme[$tPath_from.'modules/'.$module.'/'.(string)$iso_from.'.php'] = ($copy ? $tPath_to.'modules/'.$module.'/'.(string)$iso_to.'.php' : ++$number);
|
||||
}
|
||||
if ($select == 'theme')
|
||||
return $files_theme;
|
||||
$files = array_merge($files, $files_theme);
|
||||
|
||||
// Return
|
||||
return $files;
|
||||
}
|
||||
|
||||
/**
|
||||
* loadUpdateSQL will create default lang values when you create a new lang, based on default id lang
|
||||
*
|
||||
* @return boolean true if succeed
|
||||
*/
|
||||
public function loadUpdateSQL()
|
||||
{
|
||||
$tables = Db::getInstance()->executeS('SHOW TABLES LIKE \''._DB_PREFIX_.'%_lang\' ');
|
||||
$langTables = array();
|
||||
|
||||
foreach($tables as $table)
|
||||
foreach($table as $t)
|
||||
$langTables[] = $t;
|
||||
|
||||
Db::getInstance()->execute('SET @id_lang_default = (SELECT c.`value` FROM `'._DB_PREFIX_.'configuration` c WHERE c.`name` = \'PS_LANG_DEFAULT\' LIMIT 1)');
|
||||
$return = true;
|
||||
foreach($langTables as $name)
|
||||
{
|
||||
$fields = '';
|
||||
$columns = Db::getInstance()->executeS('SHOW COLUMNS FROM `'.$name.'`');
|
||||
foreach($columns as $column)
|
||||
$fields .= $column['Field'].', ';
|
||||
$fields = rtrim($fields, ', ');
|
||||
$identifier = 'id_'.str_replace('_lang', '', str_replace(_DB_PREFIX_, '', $name));
|
||||
|
||||
$sql = 'INSERT IGNORE INTO `'.$name.'` ('.$fields.') (SELECT ';
|
||||
foreach($columns as $column) {
|
||||
if ($identifier != $column['Field'] and $column['Field'] != 'id_lang')
|
||||
$sql .= '(SELECT `'.$column['Field'].'` FROM `'.$name.'` tl WHERE tl.`id_lang` = @id_lang_default AND tl.`'.$identifier.'` = `'.str_replace('_lang', '', $name).'`.`'.$identifier.'`), ';
|
||||
else
|
||||
$sql.= '`'.$column['Field'].'`, ';
|
||||
}
|
||||
$sql = rtrim($sql, ', ');
|
||||
$sql .= ' FROM `'._DB_PREFIX_.'lang` CROSS JOIN `'.str_replace('_lang', '', $name).'`) ;';
|
||||
$return &= Db::getInstance()->execute(pSQL($sql));
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
public static function recurseDeleteDir($dir)
|
||||
{
|
||||
if (!is_dir($dir))
|
||||
return false;
|
||||
if ($handle = @opendir($dir))
|
||||
{
|
||||
while (false !== ($file = readdir($handle)))
|
||||
if ($file != '.' && $file != '..')
|
||||
{
|
||||
if (is_dir($dir.'/'.$file))
|
||||
self::recurseDeleteDir($dir.'/'.$file);
|
||||
elseif (file_exists($dir.'/'.$file))
|
||||
@unlink($dir.'/'.$file);
|
||||
}
|
||||
closedir($handle);
|
||||
}
|
||||
rmdir($dir);
|
||||
}
|
||||
|
||||
public function delete()
|
||||
{
|
||||
if (empty($this->iso_code))
|
||||
$this->iso_code = self::getIsoById($this->id);
|
||||
|
||||
// Database translations deletion
|
||||
$result = Db::getInstance()->executeS('SHOW TABLES FROM `'._DB_NAME_.'`');
|
||||
foreach ($result AS $row)
|
||||
if (preg_match('/_lang/', $row['Tables_in_'._DB_NAME_]))
|
||||
if (!Db::getInstance()->execute('DELETE FROM `'.$row['Tables_in_'._DB_NAME_].'` WHERE `id_lang` = '.(int)($this->id)))
|
||||
return false;
|
||||
|
||||
// Delete tags
|
||||
Db::getInstance()->execute('DELETE FROM '._DB_PREFIX_.'tag WHERE id_lang = '.(int)($this->id));
|
||||
|
||||
// Delete search words
|
||||
Db::getInstance()->execute('DELETE FROM '._DB_PREFIX_.'search_word WHERE id_lang = '.(int)($this->id));
|
||||
|
||||
// Files deletion
|
||||
foreach (self::getFilesList($this->iso_code, _THEME_NAME_, false, false, false, true, true) as $key => $file)
|
||||
if (file_exists($key))
|
||||
unlink($key);
|
||||
$modList = scandir(_PS_MODULE_DIR_);
|
||||
foreach ($modList as $mod)
|
||||
{
|
||||
self::recurseDeleteDir(_PS_MODULE_DIR_.$mod.'/mails/'.$this->iso_code);
|
||||
$files = @scandir(_PS_MODULE_DIR_.$mod.'/mails/');
|
||||
if (count($files) <= 2)
|
||||
self::recurseDeleteDir(_PS_MODULE_DIR_.$mod.'/mails/');
|
||||
|
||||
if(file_exists(_PS_MODULE_DIR_.$mod.'/'.$this->iso_code.'.php'))
|
||||
{
|
||||
unlink(_PS_MODULE_DIR_.$mod.'/'.$this->iso_code.'.php');
|
||||
$files = @scandir(_PS_MODULE_DIR_.$mod);
|
||||
if (count($files) <= 2)
|
||||
self::recurseDeleteDir(_PS_MODULE_DIR_.$mod);
|
||||
}
|
||||
}
|
||||
|
||||
if (file_exists(_PS_MAIL_DIR_.$this->iso_code))
|
||||
self::recurseDeleteDir(_PS_MAIL_DIR_.$this->iso_code);
|
||||
if (file_exists(_PS_TRANSLATIONS_DIR_.$this->iso_code))
|
||||
self::recurseDeleteDir(_PS_TRANSLATIONS_DIR_.$this->iso_code);
|
||||
if (!parent::delete())
|
||||
return false;
|
||||
|
||||
// delete images
|
||||
$files_copy = array('/en.jpg', '/en-default-thickbox.jpg', '/en-default-home.jpg', '/en-default-large.jpg', '/en-default-medium.jpg', '/en-default-small.jpg', '/en-default-large_scene.jpg');
|
||||
$tos = array(_PS_CAT_IMG_DIR_, _PS_MANU_IMG_DIR_, _PS_PROD_IMG_DIR_, _PS_SUPP_IMG_DIR_);
|
||||
foreach($tos AS $to)
|
||||
foreach($files_copy AS $file)
|
||||
{
|
||||
$name = str_replace('/en', ''.$this->iso_code, $file);
|
||||
|
||||
if (file_exists($to.$name))
|
||||
unlink($to.$name);
|
||||
if (file_exists(dirname(__FILE__).'/../img/l/'.$this->id.'.jpg'))
|
||||
unlink(dirname(__FILE__).'/../img/l/'.$this->id.'.jpg');
|
||||
}
|
||||
|
||||
// If url_rewrite is not enabled, we don't need to regenerate .htaccess
|
||||
if(!Configuration::get('PS_REWRITING_SETTINGS'))
|
||||
return true;
|
||||
|
||||
return Tools::generateHtaccess(dirname(__FILE__).'/../.htaccess',
|
||||
(int)(Configuration::get('PS_REWRITING_SETTINGS')),
|
||||
(int)(Configuration::get('PS_HTACCESS_CACHE_CONTROL')),
|
||||
''
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
public function deleteSelection($selection)
|
||||
{
|
||||
if (!is_array($selection) OR !Validate::isTableOrIdentifier($this->identifier) OR !Validate::isTableOrIdentifier($this->table))
|
||||
die(Tools::displayError());
|
||||
$result = true;
|
||||
foreach ($selection AS $id)
|
||||
{
|
||||
$this->id = (int)($id);
|
||||
$result = $result AND $this->delete();
|
||||
}
|
||||
|
||||
// If url_rewrite is not enabled, we don't need to regenerate .htaccess
|
||||
if(!Configuration::get('PS_REWRITING_SETTINGS'))
|
||||
return true;
|
||||
|
||||
Tools::generateHtaccess(dirname(__FILE__).'/../.htaccess',
|
||||
(int)(Configuration::get('PS_REWRITING_SETTINGS')),
|
||||
(int)(Configuration::get('PS_HTACCESS_CACHE_CONTROL')),
|
||||
''
|
||||
);
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return available languages
|
||||
*
|
||||
* @param boolean $active Select only active languages
|
||||
* @return array Languages
|
||||
*/
|
||||
public static function getLanguages($active = true)
|
||||
{
|
||||
if(!self::$_LANGUAGES)
|
||||
self::loadLanguages();
|
||||
|
||||
$languages = array();
|
||||
foreach (self::$_LANGUAGES AS $language)
|
||||
{
|
||||
if ($active AND !$language['active'])
|
||||
continue;
|
||||
$languages[] = $language;
|
||||
}
|
||||
return $languages;
|
||||
}
|
||||
|
||||
public static function getLanguage($id_lang)
|
||||
{
|
||||
if (!array_key_exists((int)($id_lang), self::$_LANGUAGES))
|
||||
return false;
|
||||
return self::$_LANGUAGES[(int)($id_lang)];
|
||||
}
|
||||
|
||||
/**
|
||||
* Return iso code from id
|
||||
*
|
||||
* @param integer $id_lang Language ID
|
||||
* @return string Iso code
|
||||
*/
|
||||
public static function getIsoById($id_lang)
|
||||
{
|
||||
if (isset(self::$_LANGUAGES[(int)$id_lang]['iso_code']))
|
||||
return self::$_LANGUAGES[(int)$id_lang]['iso_code'];
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return id from iso code
|
||||
*
|
||||
* @param string $iso_code Iso code
|
||||
* @return integer Language ID
|
||||
*/
|
||||
public static function getIdByIso($iso_code)
|
||||
{
|
||||
if (!Validate::isLanguageIsoCode($iso_code))
|
||||
die(Tools::displayError('Fatal error : iso code is not correct : ').$iso_code);
|
||||
|
||||
return Db::getInstance()->getValue('SELECT `id_lang` FROM `'._DB_PREFIX_.'lang` WHERE `iso_code` = \''.pSQL(strtolower($iso_code)).'\'');
|
||||
}
|
||||
|
||||
public static function getLanguageCodeByIso($iso_code)
|
||||
{
|
||||
if (!Validate::isLanguageIsoCode($iso_code))
|
||||
die(Tools::displayError('Fatal error : iso code is not correct : ').$iso_code);
|
||||
|
||||
return Db::getInstance()->getValue('SELECT `language_code` FROM `'._DB_PREFIX_.'lang` WHERE `iso_code` = \''.pSQL(strtolower($iso_code)).'\'');
|
||||
}
|
||||
|
||||
/**
|
||||
* Return array (id_lang, iso_code)
|
||||
*
|
||||
* @param string $iso_code Iso code
|
||||
* @return array Language (id_lang, iso_code)
|
||||
*/
|
||||
public static function getIsoIds($active = true)
|
||||
{
|
||||
return Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('SELECT `id_lang`, `iso_code` FROM `'._DB_PREFIX_.'lang` '.($active ? 'WHERE active = 1' : ''));
|
||||
}
|
||||
|
||||
public static function copyLanguageData($from, $to)
|
||||
{
|
||||
$result = Db::getInstance()->executeS('SHOW TABLES FROM `'._DB_NAME_.'`');
|
||||
foreach ($result AS $row)
|
||||
if (preg_match('/_lang/', $row['Tables_in_'._DB_NAME_]) AND $row['Tables_in_'._DB_NAME_] != _DB_PREFIX_.'lang')
|
||||
{
|
||||
$result2 = Db::getInstance()->executeS('SELECT * FROM `'.$row['Tables_in_'._DB_NAME_].'` WHERE `id_lang` = '.(int)($from));
|
||||
if (!sizeof($result2))
|
||||
continue;
|
||||
Db::getInstance()->execute('DELETE FROM `'.$row['Tables_in_'._DB_NAME_].'` WHERE `id_lang` = '.(int)($to));
|
||||
$query = 'INSERT INTO `'.$row['Tables_in_'._DB_NAME_].'` VALUES ';
|
||||
foreach ($result2 AS $row2)
|
||||
{
|
||||
$query .= '(';
|
||||
$row2['id_lang'] = $to;
|
||||
foreach ($row2 AS $field)
|
||||
$query .= '\''.pSQL($field, true).'\',';
|
||||
$query = rtrim($query, ',').'),';
|
||||
}
|
||||
$query = rtrim($query, ',');
|
||||
Db::getInstance()->execute($query);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load all languages in memory for caching
|
||||
*/
|
||||
public static function loadLanguages()
|
||||
{
|
||||
self::$_LANGUAGES = array();
|
||||
|
||||
$result = Db::getInstance()->executeS('
|
||||
SELECT `id_lang`, `name`, `iso_code`, `active`
|
||||
FROM `'._DB_PREFIX_.'lang`');
|
||||
|
||||
foreach ($result AS $row)
|
||||
self::$_LANGUAGES[(int)$row['id_lang']] = array('id_lang' => (int)$row['id_lang'], 'name' => $row['name'], 'iso_code' => $row['iso_code'], 'active' => (int)$row['active']);
|
||||
}
|
||||
|
||||
public function update($nullValues = false)
|
||||
{
|
||||
if (!parent::update($nullValues))
|
||||
return false;
|
||||
|
||||
// If url_rewrite is not enabled, we don't need to regenerate .htaccess
|
||||
if(!Configuration::get('PS_REWRITING_SETTINGS'))
|
||||
return true;
|
||||
|
||||
return Tools::generateHtaccess(dirname(__FILE__).'/../.htaccess',
|
||||
(int)(Configuration::get('PS_REWRITING_SETTINGS')),
|
||||
(int)(Configuration::get('PS_HTACCESS_CACHE_CONTROL')),
|
||||
''
|
||||
);
|
||||
}
|
||||
|
||||
public static function checkAndAddLanguage($iso_code)
|
||||
{
|
||||
if (Language::getIdByIso($iso_code))
|
||||
return true;
|
||||
else
|
||||
{
|
||||
if(@fsockopen('api.prestashop.com', 80))
|
||||
{
|
||||
$lang = new Language();
|
||||
$lang->iso_code = $iso_code;
|
||||
$lang->active = true;
|
||||
|
||||
if ($lang_pack = Tools::jsonDecode(Tools::file_get_contents('http://api.prestashop.com/download/lang_packs/get_language_pack.php?version='._PS_VERSION_.'&iso_lang='.$iso_code)))
|
||||
{
|
||||
if (isset($lang_pack->name)
|
||||
&& isset($lang_pack->version)
|
||||
&& isset($lang_pack->iso_code))
|
||||
$lang->name = $lang_pack->name;
|
||||
}
|
||||
if (!$lang->name OR !$lang->add())
|
||||
return false;
|
||||
$insert_id = (int)($lang->id);
|
||||
|
||||
if ($lang_pack)
|
||||
{
|
||||
$flag = Tools::file_get_contents('http://api.prestashop.com/download/lang_packs/flags/jpeg/'.$iso_code.'.jpg');
|
||||
if ($flag != NULL && !preg_match('/<body>/', $flag))
|
||||
{
|
||||
$file = fopen(dirname(__FILE__).'/../img/l/'.$insert_id.'.jpg', 'w');
|
||||
if ($file)
|
||||
{
|
||||
fwrite($file, $flag);
|
||||
fclose($file);
|
||||
}
|
||||
else
|
||||
self::_copyNoneFlag($insert_id);
|
||||
}
|
||||
else
|
||||
self::_copyNoneFlag($insert_id);
|
||||
}
|
||||
else
|
||||
self::_copyNoneFlag($insert_id);
|
||||
|
||||
$files_copy = array('/en.jpg', '/en-default-thickbox.jpg', '/en-default-home.jpg', '/en-default-large.jpg', '/en-default-medium.jpg', '/en-default-small.jpg', '/en-default-large_scene.jpg');
|
||||
$tos = array(_PS_CAT_IMG_DIR_, _PS_MANU_IMG_DIR_, _PS_PROD_IMG_DIR_, _PS_SUPP_IMG_DIR_);
|
||||
foreach($tos AS $to)
|
||||
foreach($files_copy AS $file)
|
||||
{
|
||||
$name = str_replace('/en', '/'.$iso_code, $file);
|
||||
copy(dirname(__FILE__).'/../img/l'.$file, $to.$name);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
else
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
protected static function _copyNoneFlag($id)
|
||||
{
|
||||
return copy(dirname(__FILE__).'/../img/l/none.jpg', dirname(__FILE__).'/../img/l/'.$id.'.jpg');
|
||||
}
|
||||
|
||||
private static $_cache_language_installation = null;
|
||||
public static function isInstalled($iso_code)
|
||||
{
|
||||
if (self::$_cache_language_installation === null)
|
||||
{
|
||||
self::$_cache_language_installation = array();
|
||||
$result = Db::getInstance()->executeS('SELECT `id_lang`, `iso_code` FROM `'._DB_PREFIX_.'lang`');
|
||||
foreach ($result as $row)
|
||||
self::$_cache_language_installation[$row['iso_code']] = $row['id_lang'];
|
||||
}
|
||||
return (isset(self::$_cache_language_installation[$iso_code]) ? self::$_cache_language_installation[$iso_code] : false);
|
||||
}
|
||||
|
||||
public static function countActiveLanguages()
|
||||
{
|
||||
if (!self::$countActiveLanguages)
|
||||
self::$countActiveLanguages = Db::getInstance()->getValue('SELECT COUNT(*) FROM `'._DB_PREFIX_.'lang` WHERE `active` = 1');
|
||||
return self::$countActiveLanguages;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,110 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
class LanguageManager
|
||||
{
|
||||
private $url_xml;
|
||||
private $lang;
|
||||
private $xml_file;
|
||||
|
||||
function __construct ($url_xml)
|
||||
{
|
||||
$this->loadXML($url_xml);
|
||||
$this->setLanguage();
|
||||
$this->getIncludeTradFilename();
|
||||
}
|
||||
|
||||
private function loadXML($url_xml)
|
||||
{
|
||||
global $errors;
|
||||
if (!$this->xml_file = simplexml_load_file($url_xml))
|
||||
$errors = 'Error when loading XML language file : '.$url_xml;
|
||||
}
|
||||
|
||||
public function getIdSelectedLang()
|
||||
{
|
||||
return $this->lang['id'];
|
||||
}
|
||||
|
||||
public function getIsoCodeSelectedLang()
|
||||
{
|
||||
return $this->lang->idLangPS;
|
||||
}
|
||||
|
||||
public function countLangs()
|
||||
{
|
||||
return sizeof($this->xml_file);
|
||||
}
|
||||
|
||||
public function getAvailableLangs()
|
||||
{
|
||||
return $this->xml_file;
|
||||
}
|
||||
|
||||
public function getSelectedLang()
|
||||
{
|
||||
return $this->lang;
|
||||
}
|
||||
|
||||
/** get the http_accept_language isocode (if exists),
|
||||
* and use it to find the corresponding prestashop id_lang
|
||||
* otherwise, return 0.
|
||||
* @return int id_lang to use
|
||||
*/
|
||||
private function getIdByHAL(){
|
||||
if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
|
||||
{
|
||||
$FirstHAL = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
||||
$iso = $FirstHAL[0];
|
||||
if ($iso != "en-us")
|
||||
foreach ($this->xml_file as $lang)
|
||||
foreach ($lang->isos->iso as $anIso)
|
||||
if ($anIso == $iso)
|
||||
return $lang['id'];
|
||||
}
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
/** set lang property with param $_GET['language'] if present,
|
||||
* or by $_SERVER['HTTP_ACCEPT_LANGUAGE'] otherwise
|
||||
*/
|
||||
private function setLanguage()
|
||||
{
|
||||
if (isset($_GET['language']))
|
||||
$id_lang = (int)($_GET['language'])>0 ? $_GET['language'] : 0;
|
||||
if (!isset($id_lang))
|
||||
$id_lang = ($this->getIdByHAL());
|
||||
$this->lang = $this->xml_file->lang[(int)($id_lang)];
|
||||
}
|
||||
|
||||
public function getIncludeTradFilename()
|
||||
{
|
||||
return ($this->lang == NULL) ? false : dirname(__FILE__).$this->lang['trad_file'];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,208 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
class ToolsInstall
|
||||
{
|
||||
/**
|
||||
* checkDB will call to the
|
||||
*
|
||||
* @param string $srv
|
||||
* @param string $login
|
||||
* @param string $password
|
||||
* @param string $name
|
||||
* @param string $posted
|
||||
* @return void
|
||||
*/
|
||||
public static function checkDB ($srv, $login, $password, $name, $posted = true)
|
||||
{
|
||||
// Don't include theses files if classes are already defined
|
||||
if (!class_exists('Validate', false))
|
||||
{
|
||||
include_once(INSTALL_PATH.'/../classes/Validate.php');
|
||||
eval('class Validate extends ValidateCore{}');
|
||||
}
|
||||
|
||||
if (!class_exists('Db', false))
|
||||
{
|
||||
include_once(INSTALL_PATH.'/../classes/db/Db.php');
|
||||
eval('abstract class Db extends DbCore{}');
|
||||
}
|
||||
|
||||
if (!class_exists('MySQL', false))
|
||||
{
|
||||
include_once(INSTALL_PATH.'/../classes/db/MySQL.php');
|
||||
eval('class MySQL extends MySQLCore{}');
|
||||
}
|
||||
|
||||
if ($posted)
|
||||
{
|
||||
// Check POST data...
|
||||
$data_check = array(
|
||||
!isset($_GET['server']) OR empty($_GET['server']) OR !Validate::isUrl($_GET['server']),
|
||||
!isset($_GET['engine']) OR empty($_GET['engine']) OR !Validate::isMySQLEngine($_GET['engine']),
|
||||
!isset($_GET['name']) OR empty($_GET['name']) OR !Validate::isUnixName($_GET['name']),
|
||||
!isset($_GET['login']) OR empty($_GET['login']) OR !Validate::isUnixName($_GET['login']),
|
||||
!isset($_GET['password']),
|
||||
(!isset($_GET['tablePrefix']) OR !Validate::isTablePrefix($_GET['tablePrefix'])) && !empty($_GET['tablePrefix']),
|
||||
);
|
||||
|
||||
foreach ($data_check AS $data)
|
||||
if ($data)
|
||||
return 8;
|
||||
}
|
||||
|
||||
switch (Db::checkConnection(trim($srv), trim($login), trim($password), trim($name)))
|
||||
{
|
||||
case 0:
|
||||
if (Db::checkEncoding(trim($srv), trim($login), trim($password)))
|
||||
return true;
|
||||
return 49;
|
||||
break;
|
||||
case 1:
|
||||
return 25;
|
||||
break;
|
||||
case 2:
|
||||
return 24;
|
||||
break;
|
||||
case 3:
|
||||
return 50;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
public static function getHttpHost($http = false, $entities = false, $ignore_port = false)
|
||||
{
|
||||
$host = (isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $_SERVER['HTTP_X_FORWARDED_HOST'] : $_SERVER['HTTP_HOST']);
|
||||
if ($ignore_port && $pos = strpos($host, ':'))
|
||||
$host = substr($host, 0, $pos);
|
||||
if ($entities)
|
||||
$host = htmlspecialchars($host, ENT_COMPAT, 'UTF-8');
|
||||
if ($http)
|
||||
$host = 'http://'.$host;
|
||||
return $host;
|
||||
}
|
||||
|
||||
public static function sendMail($smtpChecked, $smtpServer, $content, $subject, $type, $to, $from, $smtpLogin, $smtpPassword, $smtpPort = 25, $smtpEncryption)
|
||||
{
|
||||
require_once(INSTALL_PATH.'/../tools/swift/Swift.php');
|
||||
require_once(INSTALL_PATH.'/../tools/swift/Swift/Connection/SMTP.php');
|
||||
require_once(INSTALL_PATH.'/../tools/swift/Swift/Connection/NativeMail.php');
|
||||
|
||||
$swift = NULL;
|
||||
$result = NULL;
|
||||
try
|
||||
{
|
||||
if($smtpChecked)
|
||||
{
|
||||
|
||||
$smtp = new Swift_Connection_SMTP($smtpServer, $smtpPort, ($smtpEncryption == "off") ? Swift_Connection_SMTP::ENC_OFF : (($smtpEncryption == "tls") ? Swift_Connection_SMTP::ENC_TLS : Swift_Connection_SMTP::ENC_SSL));
|
||||
$smtp->setUsername($smtpLogin);
|
||||
$smtp->setpassword($smtpPassword);
|
||||
$smtp->setTimeout(5);
|
||||
$swift = new Swift($smtp);
|
||||
}
|
||||
else
|
||||
$swift = new Swift(new Swift_Connection_NativeMail());
|
||||
|
||||
$message = new Swift_Message($subject, $content, $type);
|
||||
|
||||
if ($swift->send($message, $to, $from))
|
||||
$result = true;
|
||||
else
|
||||
$result = 999;
|
||||
|
||||
$swift->disconnect();
|
||||
}
|
||||
catch (Swift_Connection_Exception $e)
|
||||
{
|
||||
$result = $e->getCode();
|
||||
}
|
||||
catch (Swift_Message_MimeException $e)
|
||||
{
|
||||
$result = $e->getCode();
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
public static function getNotificationMail($shopName, $shopUrl, $shopLogo, $firstname, $lastname, $password, $email)
|
||||
{
|
||||
$iso_code = $_GET['isoCodeLocalLanguage'];
|
||||
$pathTpl = INSTALL_PATH.'/../mails/en/employee_password.html';
|
||||
$pathTplLocal = INSTALL_PATH.'/../mails/'.$iso_code.'/employee_password.html';
|
||||
|
||||
$content = (file_exists($pathTplLocal)) ? file_get_contents($pathTplLocal) : file_get_contents($pathTpl);
|
||||
$content = str_replace('{shop_name}', $shopName, $content);
|
||||
$content = str_replace('{shop_url}', $shopUrl, $content);
|
||||
$content = str_replace('{shop_logo}', $shopLogo, $content);
|
||||
$content = str_replace('{firstname}', $firstname, $content);
|
||||
$content = str_replace('{lastname}', $lastname, $content);
|
||||
$content = str_replace('{passwd}', $password, $content);
|
||||
$content = str_replace('{email}', $email, $content);
|
||||
return $content;
|
||||
}
|
||||
|
||||
public static function getLangString($idLang)
|
||||
{
|
||||
switch ($idLang)
|
||||
{
|
||||
case 'en' : return 'English (English)';
|
||||
case 'fr' : return 'Français (French)';
|
||||
}
|
||||
}
|
||||
|
||||
static function strtolower($str)
|
||||
{
|
||||
if (function_exists('mb_strtolower'))
|
||||
return mb_strtolower($str, 'utf-8');
|
||||
return strtolower($str);
|
||||
}
|
||||
|
||||
static function strtoupper($str)
|
||||
{
|
||||
if (function_exists('mb_strtoupper'))
|
||||
return mb_strtoupper($str, 'utf-8');
|
||||
return strtoupper($str);
|
||||
}
|
||||
|
||||
static function ucfirst($str)
|
||||
{
|
||||
return self::strtoupper(self::substr($str, 0, 1)).self::substr($str, 1);
|
||||
}
|
||||
|
||||
static function substr($str, $start, $length = false, $encoding = 'utf-8')
|
||||
{
|
||||
if (function_exists('mb_substr'))
|
||||
return mb_substr($str, $start, ($length === false ? self::strlen($str) : $length), $encoding);
|
||||
return substr($str, $start, $length);
|
||||
}
|
||||
|
||||
static function strlen($str)
|
||||
{
|
||||
if (function_exists('mb_strlen'))
|
||||
return mb_strlen($str, 'utf-8');
|
||||
return strlen($str);
|
||||
}
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
|
Before Width: | Height: | Size: 170 B |
|
Before Width: | Height: | Size: 158 B |
|
Before Width: | Height: | Size: 157 B |
|
Before Width: | Height: | Size: 284 B |
|
Before Width: | Height: | Size: 248 B |
|
Before Width: | Height: | Size: 279 B |
|
Before Width: | Height: | Size: 308 B |
|
Before Width: | Height: | Size: 270 B |
|
Before Width: | Height: | Size: 292 B |
|
Before Width: | Height: | Size: 241 B |
|
Before Width: | Height: | Size: 211 B |
|
Before Width: | Height: | Size: 217 B |
|
Before Width: | Height: | Size: 302 B |
|
Before Width: | Height: | Size: 259 B |
|
Before Width: | Height: | Size: 259 B |
|
Before Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 594 B |
|
Before Width: | Height: | Size: 143 B |
|
Before Width: | Height: | Size: 215 B |
|
Before Width: | Height: | Size: 306 B |
|
Before Width: | Height: | Size: 141 B |
|
Before Width: | Height: | Size: 233 B |
|
Before Width: | Height: | Size: 298 B |
|
Before Width: | Height: | Size: 139 B |
|
Before Width: | Height: | Size: 1006 B |
|
Before Width: | Height: | Size: 190 B |
|
Before Width: | Height: | Size: 218 B |
|
Before Width: | Height: | Size: 885 B |
|
Before Width: | Height: | Size: 126 B |
|
Before Width: | Height: | Size: 908 B |
|
Before Width: | Height: | Size: 141 B |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 204 B |
|
Before Width: | Height: | Size: 109 B |
|
Before Width: | Height: | Size: 262 B |
|
Before Width: | Height: | Size: 719 B |
|
Before Width: | Height: | Size: 714 B |
|
Before Width: | Height: | Size: 701 B |
|
Before Width: | Height: | Size: 772 B |
|
Before Width: | Height: | Size: 474 B |
|
Before Width: | Height: | Size: 248 B |
|
Before Width: | Height: | Size: 251 B |
|
Before Width: | Height: | Size: 251 B |
|
Before Width: | Height: | Size: 251 B |
|
Before Width: | Height: | Size: 251 B |
|
Before Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 1.2 KiB |
@@ -1,36 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
|
Before Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 610 B |
|
Before Width: | Height: | Size: 342 B |
|
Before Width: | Height: | Size: 243 B |
|
Before Width: | Height: | Size: 697 B |
|
Before Width: | Height: | Size: 450 B |
|
Before Width: | Height: | Size: 453 B |
|
Before Width: | Height: | Size: 374 B |
|
Before Width: | Height: | Size: 683 B |
|
Before Width: | Height: | Size: 254 B |
|
Before Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 11 KiB |
@@ -1,290 +0,0 @@
|
||||
<?php
|
||||
|
||||
$_LANG['Installer'] = 'Installation';
|
||||
$_LANG['Updater'] = 'Aktualisierung';
|
||||
$_LANG['.'] = '.';
|
||||
$_LANG['A Prestashop database already exists, please drop it or change the prefix.'] = 'Eine PrestaShop Datenbank existiert bereits mit diesem Präfix, Sie müssen sie manuell löschen oder das Präfix ändern.';
|
||||
$_LANG['A test e-mail has been sent to'] = 'Eine E-Mail wurde verschickt!';
|
||||
$_LANG['An error occurred while resizing the picture.'] = 'Bei der Änderung des Bildmaßstabs ist ein Fehler aufgetreten.';
|
||||
$_LANG['An error occurred while sending email, please verify your parameters.'] = 'Beim Senden der E-Mail ist ein Fehler aufgetreten, bitte prüfen Sie Ihre Einstellungen.';
|
||||
$_LANG['Available shop languages'] = 'Verfügbare Sprachen';
|
||||
$_LANG['Back'] = 'Zurück';
|
||||
$_LANG['Back up your database and all application files (update only)'] = 'Speichern Sie Ihre Datenbank und Dateien (nur im Falle eines Update von PrestaShop)';
|
||||
$_LANG['Please backup the database and application files.'] = 'Bevor Sie fortfahren, sollten Sie eine Sicherungskopie Ihrer Daten vornehmen. Bitte kopieren Sie alle Dateien von der Website in einen Backup-Ordner und nehmen Sie zus√§tzlich eine Sicherungskopie Ihrer Datenbank vor. Wenn Sie die versteckte Datei ".htaccess" manuell am Root Ihres Shops bearbeitet haben, achten Sie darauf, diese ebenfalls zu speichern.';
|
||||
$_LANG['By default, the PHP \'mail()\' function is used (recommended)'] = 'Die Funktion PHP \'mail()\' wird standardmäßig verwendet.';
|
||||
$_LANG['Can\'t create settings file, if /config/settings.inc.php exists, please give the public write permissions to this file, otherwise please create a file named settings.inc.php in config directory.'] = 'Fehler beim Erstellen der Konfigurationsdatei, wenn die Datei /config/ settings.inc.php existiert, geben Sie ihr bitte die offiziellen Schreibrechte, ansonsten erstellen Sie bitte eine Datei settings.inc.php im Konfigurationsverzeichnis (/config/)';
|
||||
$_LANG['Can\'t find the sql upgrade files. Please verify that the /install/sql/upgrade folder is not empty)'] = 'Kann eine der SQL-Update-Dateien nicht finden. Bitte stellen Sie sicher, dass der Ordner /install/sql/upgrade nicht leer ist.';
|
||||
$_LANG['Choose your prefered language for the installation:'] = 'In welcher Sprache möchten Sie das installieren?';
|
||||
$_LANG['Community Forum'] = 'unser Community-Forum';
|
||||
$_LANG['Configure SMTP manually (advanced users only)'] = 'Konfigurieren des SMTP-Sendens (nur für Experten)';
|
||||
$_LANG['Configure your database by filling out the following fields:'] = 'Konfigurieren Sie Ihre Datenbank, indem Sie folgende Felder ausfüllen:';
|
||||
$_LANG['Congratulations, your online shop is now ready!'] = 'Herzlichen Glückwunsch, Ihr Shop installiert!';
|
||||
$_LANG['Contact us!'] = 'Kontaktieren Sie uns!';
|
||||
$_LANG['Creation of new files and folders allowed'] = 'Erstellen neuer Ordner und Dateien zugelassen';
|
||||
$_LANG['Database server is available but database was not found'] = 'Der Datenbank-Server steht zur Verfügung, aber die Datenbank wurde nicht gefunden';
|
||||
$_LANG['Database server was not found. Please verify the login, password and server fields.'] = 'Der Datenbank-Server wurde nicht gefunden, bitte prüfen Sie Ihren Benutzernamen oder den Server-Namen.';
|
||||
$_LANG['Database configuration'] = 'Konfiguration der Datenbank';
|
||||
$_LANG['Database connection is available!'] = 'Die Datenbank wurde gefunden!';
|
||||
$_LANG['Database is created!'] = 'Datenbank installiert!';
|
||||
$_LANG['Database name:'] = 'Name der Datenbank:';
|
||||
$_LANG['Disclaimer'] = 'Warnung';
|
||||
$_LANG['Online documentation'] = 'Wiki-Dokumentation';
|
||||
$_LANG['E-mail:'] = 'E-Mail:';
|
||||
$_LANG['E-mail address:'] = 'E-Mail-Adresse:';
|
||||
$_LANG['E-mail configuration'] = 'Sendeeinstellungen für E-Mails';
|
||||
$_LANG['Encryption:'] = 'Verschlüsselung:';
|
||||
$_LANG['Error!'] = 'Fehler!';
|
||||
$_LANG['Error while creating the /config/settings.inc.php file.'] = 'Fehler beim Erstellen der Datei /config/settings.inc.php.';
|
||||
$_LANG['Error while inserting content into the database'] = 'Fehler beim Einfügen in die Datenbank';
|
||||
$_LANG['Error while inserting data in the database:'] = 'Fehler beim Einfügen in die Datenbank:';
|
||||
$_LANG['Error while loading sql upgrade file.'] = 'Fehler beim Öffnen der SQL-Datei';
|
||||
$_LANG['Error:'] = 'Fehler:';
|
||||
$_LANG['Error(s) while updating...'] = 'Fehler bei der Aktualisierung ...';
|
||||
$_LANG['Failed to write file to disk'] = 'Kann die Datei nicht auf die Festplatte schreiben';
|
||||
$_LANG['Fields are different!'] = 'Die Felder sind unterschiedlich!';
|
||||
$_LANG['File upload allowed'] = 'Datei Senden erlaubt';
|
||||
$_LANG['File upload stopped by extension'] = 'Datei Senden unterbrochen aufgrund falscher Erweiterung';
|
||||
$_LANG['First name:'] = 'Vorname:';
|
||||
$_LANG['For more information, please consult our'] = 'Weitere Informationen finden Sie auf unserer';
|
||||
$_LANG['GD Library installed'] = 'GD-Bibliothek installiert';
|
||||
$_LANG['GZIP compression is on (recommended)'] = 'GZIP-Kompression ist aktiviert (empfohlen)';
|
||||
$_LANG['Here is your shop information. You can modify it once you are logged in.'] = 'Hier sind Ihre Login-Daten, Sie können sie später im Back-Office ändern.';
|
||||
$_LANG['However, you must know how to do the following:'] = 'Nichtsdestotrotz können Sie die folgenden Aufgaben durchführen:';
|
||||
$_LANG['I agree to the above terms and conditions.'] = 'Ich stimme den oben genannten Vertragsbedingungen zu.';
|
||||
$_LANG['If you have any questions, please visit our '] = 'Wenn Sie je Fragen haben sollten, werfen Sie einfach einen Blick auf unsere ';
|
||||
$_LANG['Cannot access the a MySQL data file.'] = 'Kann nicht auf den Inhalt einer *.sql-Datei zugreifen.';
|
||||
$_LANG['Cannot read the content of a MySQL data file.'] = 'Kann den Inhalt einer *.sql-Datei nicht lesen.';
|
||||
$_LANG['Cannot send the email!'] = 'Kann E-Mail nicht senden!';
|
||||
$_LANG['Cannot upload the file!'] = 'Kann Datei nicht senden!';
|
||||
$_LANG['Cannot write the image /img/logo.jpg. If this image already exists, please delete it.'] = 'Kann Bild /img/logo.jpg nicht schreiben. Falls es bereits existiert, löschen Sie es bitte manuell.';
|
||||
$_LANG['Installation: Full installation of PrestaShop'] = 'Komplette Installation von PrestaShop';
|
||||
$_LANG['Installation is complete!'] = 'Installation abgeschlossen!';
|
||||
$_LANG['What do you want to do?'] = 'Installationsmethode';
|
||||
$_LANG['Last name:'] = 'Name:';
|
||||
$_LANG['License Agreement'] = 'Lizenzvertrag';
|
||||
$_LANG['Login:'] = 'Benutzername:';
|
||||
$_LANG['Shop settings and merchant account information'] = 'Informationen über den Verkäufer';
|
||||
$_LANG['Missing a temporary folder'] = 'Der tempor√§re Ordner Ihrer empfangenen Dateisendungen fehlt. Bitte wenden Sie sich an Ihren Systemadministrator.';
|
||||
$_LANG['MySQL support is on'] = 'Die MySQL-Unterstützung ist aktiviert';
|
||||
$_LANG['Next'] = 'Weiter';
|
||||
$_LANG['No error code available.'] = 'Unbekannter Fehler.';
|
||||
$_LANG['No file was uploaded.'] = 'Es ist keine Datei gesandt worden';
|
||||
$_LANG['No upgrade is possible.'] = 'Kein Update verfügbar';
|
||||
$_LANG['None'] = 'Keine';
|
||||
$_LANG['PrestaShop Forums'] = 'Offizielles Forum';
|
||||
$_LANG['One or more errors have occurred, you can find more information below or in the log/installation.log file.'] = 'Ein oder mehrere Fehler sind aufgetreten';
|
||||
$_LANG['Open external URLs allowed'] = 'Öffnung externer URLs erlaubt';
|
||||
$_LANG['Optional languages'] = 'Nicht angebotene Sprachen';
|
||||
$_LANG['Optional set-up'] = 'Optionale Einstellungen';
|
||||
$_LANG['PHP \'mail()\' function is available'] = 'Die Funktion PHP \'mail()\' ist verfügbar';
|
||||
$_LANG['PHP \'mail()\' function is unavailable'] = 'Die Funktion PHP \'mail()\' ist nicht verfügbar';
|
||||
$_LANG['PHP 5.0 or later installed'] = 'PHP 5.0 oder höher installiert';
|
||||
$_LANG['PHP register global option is off (recommended)'] = 'Die PHP-Option "register global" ist deaktiviert (empfohlen)';
|
||||
$_LANG['Password:'] = 'Kennwort:';
|
||||
$_LANG['Please allow 10-15 minutes to complete the installation process.'] = 'Der Installationsprozess dauert nur ein paar Minuten!';
|
||||
$_LANG['Please set a SMTP login'] = 'Geben Sie einen SMTP-Benutzernamen ein';
|
||||
$_LANG['Please set a SMTP password'] = 'Geben Sie das SMTP-Kennwort ein';
|
||||
$_LANG['Please set a SMTP server name'] = 'Geben Sie einen SMTP-Server-Namen ein';
|
||||
$_LANG['Please set a database login'] = 'Geben Sie die SQL-Anmeldung ein';
|
||||
$_LANG['Please set a database name'] = 'Geben Sie den Namen der Datenbank ein';
|
||||
$_LANG['Please set a database server name'] = 'Geben Sie den Namen des Datenbank-Servers ein';
|
||||
$_LANG['Port:'] = 'Port:';
|
||||
$_LANG['PrestaShop %s Installer'] = 'Installation der PrestaShop-Version %s';
|
||||
$_LANG['PrestaShop is ready!'] = 'PrestaShop ist fertig!';
|
||||
$_LANG['Re-type to confirm:'] = 'Best√§tigen Sie das Kennwort:';
|
||||
$_LANG['Ready, set, go!'] = 'PrestaShop ist installiert!';
|
||||
$_LANG['Receive this information by e-mail'] = 'Meine Informationen per E-Mail erhalten';
|
||||
$_LANG['Check my settings again'] = 'Erneut überprüfen';
|
||||
$_LANG['Required field'] = 'Pflichtfelder';
|
||||
$_LANG['Required set-up. Please verify the following checklist items:'] = 'Bitte vergewissern Sie sich, dass jede der folgenden Einstellungen best√§tigt ist.';
|
||||
$_LANG['SMTP connection is available!'] = 'SMTP-Verbindung verfügbar!';
|
||||
$_LANG['SMTP connection is unavailable'] = 'SMTP-Verbindung nicht verfügbar';
|
||||
$_LANG['SMTP server:'] = 'SMTP-Server:';
|
||||
$_LANG['SQL errors have occurred.'] = 'Es sind SQL-Fehler aufgetreten.';
|
||||
$_LANG['Select the different languages available for your shop'] = 'W√§hlen Sie die verschiedenen Sprachen, die Ihr Shop den Kunden anbieten soll';
|
||||
$_LANG['Send me a test email!'] = 'Eine Test-E-Mail an mich senden!';
|
||||
$_LANG['Server:'] = 'Server:';
|
||||
$_LANG['Set permissions on folders & subfolders using an FTP client'] = 'Festlegen von Berechtigungen für Ordner und Unterordner über einen FTP-Client';
|
||||
$_LANG['Shop Configuration'] = 'Shop-Konfiguration';
|
||||
$_LANG['Shop logo:'] = 'Shop-Logo:';
|
||||
$_LANG['Shop name:'] = 'Name des Shops:';
|
||||
$_LANG['Shop password:'] = 'Kennwort des Shops:';
|
||||
$_LANG['Shop\'s default language'] = 'Standard-Sprache';
|
||||
$_LANG['Shop\'s languages'] = 'Sprache des Shops';
|
||||
$_LANG['System Compatibility'] = 'Systemkompatibilit√§t';
|
||||
$_LANG['System Configuration'] = 'Systemkonfiguration';
|
||||
$_LANG['Tables prefix:'] = 'Tabellen-Pr√§fixe:';
|
||||
$_LANG['Test message - Prestashop'] = 'Installation von PrestaShop - Test des E-Mail-Servers';
|
||||
$_LANG['The PrestaShop Installer will do most of the work for you in just a few clicks.'] = 'Der PrestaShop Installer führt die ganze Arbeit mit ein paar Klicks durch.';
|
||||
$_LANG['The config/settings.inc.php file was not found. Did you delete or rename this file?'] = 'Die Datei config/settings.inc.php wurde nicht gefunden. Haben Sie sie gelöscht oder umbenannt?';
|
||||
$_LANG['The config/defines.inc.php file was not found. Where did you move it?'] = 'Die Datei config/defines.inc.php wurde nicht gefunden. Wo ist sie?';
|
||||
$_LANG['The password is incorrect (alphanumeric string at least 8 characters).'] = 'Falsches Kennwort (alpha-numerischer String aus mindestens 8 Zeichen)';
|
||||
$_LANG['The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form'] = 'Die gesendete Datei überschreitet die maximal zulässige Größe.';
|
||||
$_LANG['The uploaded file exceeds the upload_max_filesize directive in php.ini'] = 'Die gesendete Datei überschreitet die maximal zulässige Größe.';
|
||||
$_LANG['The uploaded file was only partially uploaded'] = 'Die Datei wurde teilweise gesendet.';
|
||||
$_LANG['There is no older version. Did you delete or rename the config/settings.inc.php file?'] = 'Keine frühere Version erkannt. Haben Sie die Datei settings.inc.php aus dem Ordner config gelöscht oder umbenannt?';
|
||||
$_LANG['This PrestaShop database already exists. Please revalidate your authentication information to the database.'] = 'Diese PrestaShop-Datenbank existiert schon, bitte best√§tigen Sie der Datenbank erneut Ihre Kennungen.';
|
||||
$_LANG['This application needs you to activate Javascript to correctly work.'] = 'JavaScript ist erforderlich, um diese Anwendung auszuführen.';
|
||||
$_LANG['This e-mail address is invalid!'] = 'Falsche Adresse!';
|
||||
$_LANG['This installer is too old.'] = 'Der Installer ist zu alt.';
|
||||
$_LANG['This is a test message, your server is now available to send email'] = 'Dies ist eine Testnachricht, Ihr E-Mail-Server funktioniert korrekt.';
|
||||
$_LANG['This is not a valid file name.'] = 'Dies ist kein gültiger Name.';
|
||||
$_LANG['This is not a valid image file.'] = 'Dies ist kein gültiges Bild.';
|
||||
$_LANG['Too long'] = 'Zu lang!';
|
||||
$_LANG['Unfortunately,'] = 'Leider';
|
||||
$_LANG['Update is complete!'] = 'Aktualisierung beendet!';
|
||||
$_LANG['Upgrade: get the latest stable version!'] = 'Aktualisierung: Installieren Sie die neueste Version von PrestaShop';
|
||||
$_LANG['Verify my database settings'] = 'Testen der SQL-Verbindung';
|
||||
$_LANG['Verify system compatibility'] = 'Systemkompatibilit√§t';
|
||||
$_LANG['WARNING: For security purposes, you must delete the "install" folder.'] = 'VORSICHT: Aus Sicherheitsgründen löschen Sie bitte den Ordner \'/install\'.';
|
||||
$_LANG['Warning: a manual backup is HIGHLY recommended before continuing!'] = 'Vorsicht: eine manuelle Sicherung ist UNERLÄSSLICH, bevor mit der Aktualisierung der PrestaShop-Anwendung begonnen wird, um jeglichen versehentlichen Datenverlust zu verhindern';
|
||||
$_LANG['Welcome'] = 'Willkommen';
|
||||
$_LANG['Welcome to the PrestaShop %s Installer'] = 'Willkommen bei der Installation von PrestaShop %s';
|
||||
$_LANG['When your backup is complete, please confirm that it is fully functional.'] = 'Sobald die Anwendungsdateien und Ihre Datenbank gesichert sind, werden wir Sie um Bestätigung bitten. Damit übernehmen Sie die gesamte Haftung eines möglichen Datenverlusts durch die Aktualisierung der PrestaShop-Anwendung.';
|
||||
$_LANG['Write permissions on folders (and subfolders):'] = 'Schreibberechtigung für die Ordner (und deren Unterordner):';
|
||||
$_LANG['Write permissions on files and folders:'] = 'Schreibberechtigung für die Dateien und Ordner:';
|
||||
$_LANG['Write permissions on folders:'] = 'Schreibberechtigung für die Ordner';
|
||||
$_LANG['You already have the %s version.'] = 'Sie besitzen bereits die Version. %s';
|
||||
$_LANG['You have just installed and configured PrestaShop as your online shop. We wish you all the best with the success of your online shop.'] = 'Sie haben gerade Ihren Online-Shop installiert und konfiguriert, wir danken Ihnen.';
|
||||
$_LANG['You have just updated and configured PrestaShop as your online shop. We wish you all the best with the success of your online shop.'] = 'Sie haben gerade Ihren Online-Shop aktualisiert wir danken Ihnen.';
|
||||
$_LANG['Your installation is finished!'] = 'Die Installation ist abgeschlossen!';
|
||||
$_LANG['Your update is finished!'] = 'Das Update ist abgeschlossen!';
|
||||
$_LANG['and/or'] = 'und / oder';
|
||||
$_LANG['enter@your.email'] = 'GebenSie@Ihreemail.ein';
|
||||
$_LANG['online documentation'] = 'Online-Dokumentation';
|
||||
$_LANG['Currently installed version detected:'] = 'Aktuelle Version erkannt:';
|
||||
$_LANG['Recommended dimensions:'] = 'Empfohlene Abmessungen:';
|
||||
$_LANG['view the log'] = 'Bericht ansehen';
|
||||
$_LANG['(No previous version detected)'] = '(keine alte Version erkannt)';
|
||||
$_LANG['Can\'t write settings file, please create a file named settings.inc.php in config directory.'] = 'Die Settings-Datei konnte nicht geschrieben werden, erstellen Sie bitte eine Datei namens settings.inc.php in Ihrem Konfigurationsverzeichnis.';
|
||||
$_LANG['Cannot convert your database\'s data to UTF-8.'] = 'Kann die Daten aus Ihrer Datenbank nicht in UTF-8 zu konvertieren.';
|
||||
$_LANG['Your database server does not support the UTF-8 charset.'] = 'Ihr Datenbank-Server unterstützt keinen UTF-8-Zeichensatz.';
|
||||
$_LANG['Need help?'] = 'Brauchen Sie Hilfe?';
|
||||
$_LANG['PrestaShop tips and advice'] = 'Alle Tipps und Tricks rund um PrestaShop';
|
||||
$_LANG['Forums'] = 'Forum';
|
||||
$_LANG['Blog'] = 'Blog';
|
||||
$_LANG['Back Office'] = 'Back Office';
|
||||
$_LANG['Manage your store using your Back Office. Manage your orders and customers, add modules, change themes, etc.'] = 'Verwalten Sie Ihren Shop mit Ihrem Back-Office. Verwalten Sie Ihre Bestellungen und Kunden, fügen Sie Module hinzu, ändern Sie Ihr Thema, usw. ...';
|
||||
$_LANG['Manage your store'] = 'Verwalten Sie Ihren Shop';
|
||||
$_LANG['Front Office'] = 'Front Office';
|
||||
$_LANG['Discover your store as your future customers will see it!'] = 'Sehen Sie, wie Ihr Shop später für Ihre Kunden aussieht!';
|
||||
$_LANG['Discover your store'] = 'Meinen Shop entdecken';
|
||||
$_LANG['Did you know?'] = 'Wussten Sie schon?';
|
||||
$_LANG['Prestashop and its community offers over 40 different languages for free download at'] = 'Prestashop und seine Community bietet über 40 verschiedene Sprachen zum kostenlosen Download auf';
|
||||
$_LANG['Default country:'] = 'Standard-Land:';
|
||||
$_LANG['Shop timezone:'] = 'Zeitzone des Shops:';
|
||||
$_LANG['Your configuration is valid, click \"Next\" to continue!'] = 'Ihre Konfiguration ist gültig, <br /> klicken Sie auf Weiter zum Fortfahren!';
|
||||
$_LANG['Your configuration is invalid. Please fix the issues below:'] = 'Ihre Konfiguration ist nicht gültig, <br /> bitte beheben Sie diese Probleme:';
|
||||
$_LANG['Warning: If you check this box and your e-mail configuration is incorrect, you might not be able to continue the installation.'] = 'Diese Option kann hinderlich sein, wenn Ihre E-Mail-Konfiguration falsch ist, bitte deaktivieren Sie sie, wenn Sie nicht zum nächsten Schritt gehen können.';
|
||||
$_LANG['Mcrypt is available (recommended)'] = 'Mcrypt ist verfügbar (empfohlen)';
|
||||
$_LANG['Your MySQL server doesn\'t support this engine, please use another one like MyISAM'] = 'Diese Datenbank-Engine wird nicht unterstützt, bitte wählen Sie eine andere als MyISAM';
|
||||
$_LANG['Adult'] = 'Erotik und Dessous';
|
||||
$_LANG['Animals and Pets'] = 'Tiere';
|
||||
$_LANG['Art and Culture'] = 'Kultur und Freizeit';
|
||||
$_LANG['Babies'] = 'Baby-Artikel';
|
||||
$_LANG['Beauty and Personal Care'] = 'Gesundheit und Schönheit';
|
||||
$_LANG['Cars'] = 'Auto und Motorrad';
|
||||
$_LANG['Computer Hardware and Software'] = 'Computer & Software';
|
||||
$_LANG['Download'] = 'Download';
|
||||
$_LANG['Fashion and accessories'] = 'Kleidung und Accessoires';
|
||||
$_LANG['Flowers, Gifts and Crafts'] = 'Blumen und Geschenke';
|
||||
$_LANG['Food and beverage'] = 'Lebensmittel und Gastronomie';
|
||||
$_LANG['HiFi, Photo and Video'] = 'Hifi, Foto und Video';
|
||||
$_LANG['Home and Garden'] = 'Haus & Garten';
|
||||
$_LANG['Home Appliances'] = 'Haushaltsger√§te';
|
||||
$_LANG['Jewelry'] = 'Schmuck';
|
||||
$_LANG['Mobile and Telecom'] = 'Telefonie und Kommunikation';
|
||||
$_LANG['Services'] = 'Dienstleistungen';
|
||||
$_LANG['Shoes and accessories'] = 'Schuhe und Accessoires';
|
||||
$_LANG['Sports and Entertainment'] = 'Sport und Freizeit';
|
||||
$_LANG['Travel'] = 'Reise und Tourismus';
|
||||
$_LANG['Main activity:'] = 'Hauptt√§tigkeit';
|
||||
$_LANG['-- Please choose your main activity --'] = '- W√§hlen Sie eine T√§tigkeit --';
|
||||
$_LANG['Invalid catalog mode'] = 'Feld Katalog-Modus ungültig';
|
||||
$_LANG['Catalog mode only:'] = 'Katalog-Modus:';
|
||||
$_LANG['Yes'] = 'Ja';
|
||||
$_LANG['No'] = 'Nein';
|
||||
$_LANG['If you activate this feature, all purchasing will be disabled. However, you will be able to enable purchasing later in your Back Office.'] = 'Wenn Sie diese Option aktivieren, werden alle Kauf-Funktionen deaktiviert. Sie können diese Option später in Ihrem Back-Office aktivieren';
|
||||
$_LANG['Your current version is already up-to-date'] = 'Die bereits installierte Version, die erkannt wurde, ist neu, keine Updates verfügbar';
|
||||
$_LANG['This information is not required, it will only be used for statistical purposes. This information does not change anything in your store.'] = 'Diese Information ist nicht erforderlich, sie wird zu statistischen Zwecken verwendet. Diese Information √§ndert nichts in Ihrem Shop.';
|
||||
$_LANG['Invalid shop name'] = 'Ungültiger Shopname';
|
||||
$_LANG['Your firstname contains some invalid characters'] = 'Ihr Vorname enthält ungültige Zeichen';
|
||||
$_LANG['Your lastname contains some invalid characters'] = 'Ihr Nachname enthält ungültige Zeichen';
|
||||
$_LANG['(FREE)'] = '(KOSTENLOS)';
|
||||
$_LANG['Shop configuration'] = 'Shop-Konfiguration';
|
||||
$_LANG['Database Engine:'] = 'Datenbank-Engine';
|
||||
$_LANG['I certify that I backed up my database and application files. I assume all responsibility for any data loss or damage related to this upgrade.'] = 'Ich bestätige, dass ich meine Datenbank und meine Anwendungsdateien durch ein Backup gesichert habe. Ich übernehme die volle Verantwortung für jeglichen Datenverlust oder jegliche Datenbeschädigung, die im Zusammenhang mit diesem Upgrade stehen.';
|
||||
$_LANG['The file /img/logo.jpg is not writable, please CHMOD 755 this file or CHMOD 777'] = 'Die Datei /img/logo.jpg kann nicht geschrieben werden, bitte √§ndern Sie die Dateirechte mit CHMOD 755 oder CHMOD 777';
|
||||
$_LANG['If you do not know how to enable it, use our turnkey solution PrestaBox at'] = 'Wenn Sie nicht wissen, wie Sie es aktivieren müssen, nutzen Sie unsere Fertiglösung PrestaBox';
|
||||
$_LANG['If you do not know how to fix these issues, use turnkey solution PrestaBox at'] = 'Wenn Sie nicht wissen, wie Sie diese Themen festlegen können, nutzen Sie die Fertiglösung PrestaBox';
|
||||
$_LANG['Lite mode: Basic installation'] = 'Einfacher Modus: Grundinstallation';
|
||||
$_LANG['Full mode: includes core modules,'] = 'Komplettmodus: beinhaltet';
|
||||
$_LANG['100+ additional modules'] = 'über 100 zusätzliche Module';
|
||||
$_LANG['and demo products'] = 'und Demo-Produkte';
|
||||
$_LANG['Installation type'] = 'Installationstyp';
|
||||
$_LANG['Upgrade in progress'] = 'Upgrade l√§uft';
|
||||
$_LANG['Current query:'] = 'Aktueller Satz:';
|
||||
$_LANG['Details about this upgrade'] = 'Mehr über das Upgrade';
|
||||
$_LANG['Thank you, you will be able to continue the upgrade process by clicking on the "Next" button.'] = '';
|
||||
$_LANG['PrestaShop is upgrading your shop one version after the other, the following upgrade files will be processed:'] = '';
|
||||
$_LANG['Upgrade file'] = 'Upgrade-Datei';
|
||||
$_LANG['Modifications to process'] = 'Änderungen zum Durchführen';
|
||||
$_LANG['(major)'] = '(wichtig)';
|
||||
$_LANG['TOTAL'] = '(GESAMT)';
|
||||
$_LANG['Estimated time to complete the'] = 'Verbliebene Zeit zum Abschluß von';
|
||||
$_LANG['modifications:'] = 'Modifikationen';
|
||||
$_LANG['minutes'] = 'Minuten';
|
||||
$_LANG['minute'] = 'Minute';
|
||||
$_LANG['seconds'] = 'Sekunden';
|
||||
$_LANG['second'] = 'Sekunde';
|
||||
$_LANG['Depending on your server and the size of your shop'] = 'Anhängig vom Server und der Größer Ihres Shops';
|
||||
$_LANG['You have not updated your shop in a while,'] = 'Sie haben Ihren Shop seit L√§ngerem nicht upgedatet,';
|
||||
$_LANG['stable releases have been made ​​available since.'] = 'wichtige Neuerungen wurden implementiert seit';
|
||||
$_LANG['This is not a problem however the update may take several minutes, try to update your shop more frequently.'] = 'Das ist unwesentlich, das Upgrade kann einige Minuten dauern, versuchen Sie, Ihren Shop öfert zu updaten.';
|
||||
$_LANG['No files to process, this might be an error.'] = 'Keine Dateien zum Verarbeiten, womöglich ein Fehler';
|
||||
$_LANG['Hosting parameters'] = 'Hosting Eigenschaften';
|
||||
$_LANG['PrestaShop tries to automatically set the best settings for your server in order for the update to be successful.'] = 'Prestashop versucht automatisch, die besten Einstellungen auf dem Server zu machen, damit das Update erfolgreich verl√§uft.';
|
||||
$_LANG['PHP parameter'] = 'PHP Parameter';
|
||||
$_LANG['Description'] = 'Beschreibung';
|
||||
$_LANG['Current value'] = 'Aktueller Wert';
|
||||
$_LANG['Maximum allowed time for the upgrade'] = 'Maximale zugelassene Zeit für das Update';
|
||||
$_LANG['Maximum memory allowed for the upgrade'] = 'Maximal zugelassener Speichern für das Update';
|
||||
$_LANG['All your settings seem to be OK, go for it!'] = 'Alle Einstellungen scheinen zu stimmen, es kann losgehen!';
|
||||
$_LANG['Let\'s go!'] = 'Los!';
|
||||
$_LANG['Click on the "Next" button to start the upgrade, this can take several minutes,'] = 'Klicken Sie das "Weiter"-Button um das Upgrade zu starten, es könne einige Minuten dauern.';
|
||||
$_LANG['please be patient and do not close this window.'] = 'bitte schließen Sie das Fenster nicht.';
|
||||
$_LANG['Your update is complete!'] = 'Ihr Upgrade ist abgeschlossen!';
|
||||
$_LANG['Your shop version is now'] = 'Ihre Shopversion ist nun';
|
||||
$_LANG['New features in PrestaShop v'] = 'Neue Features in Prestashop v';
|
||||
$_LANG['Beware, your settings look correct but are not optimal, if you encounter problems (upgrade too long, memory error...), please ask your hosting provider to increase the values of these parameters: "max_execution_time" and "memory_limit".'] = 'Achtung, Ihre Einstellungen sind zwar korrekt, aber nicht optimal. Sollten während des Updates Probleme auftreten (Ausführungszeit, Speicherlimit usw.) kontaktieren Sie bitte Ihr Hostingunternehmen, damit diese Einstellungen angepasst werden (max_execution_time & memory_limit) ';
|
||||
$_LANG['We strongly recommend that you inform your hosting provider to modify the settings before process to the update.'] = 'Wir empfehlen ausdrücklich, Ihren Hostingprovider zu kontaktieren, um die Einstellungen für das Update anzupassen';
|
||||
$_LANG['Module compatibility'] = 'Modulkompatibilit√§t';
|
||||
$_LANG['It\'s dangerous to keep non-native modules activated during the update. If you really want to take this risk, uncheck the following box.'] = 'Es wird nicht empfohlen, fremde Module w√§hrend des Updates aktiviert zu lassen. Wenn Sie trotzdem fortfahren wollen, entfernen Sie die Markierung in der Checkbox';
|
||||
$_LANG['You will be able to manually reactivate them in your Back Office once the update process has succeeded.'] = 'Sie können sie später im Adminbereich aktivieren, nachdem das Update abgeschlossen ist.';
|
||||
$_LANG['Ok, please deactivate the following modules, I will reactivate them later:'] = 'ok, bitte folgende Module deaktivieren (sie werden sp√§ter wieder aktiviert):';
|
||||
$_LANG['Theme compatibility'] = 'Themenkompatibilit√§t';
|
||||
$_LANG['Before updating, you need to check that your theme is compatible with version'] = 'Um fortzufahren müssen Sie bestätigen, dass Ihr Thema mit der aktuellen Version kompatibel ist';
|
||||
$_LANG['of PrestaShop.'] = 'von Prestashop';
|
||||
$_LANG['Link to the validator'] = 'Link zum Validator';
|
||||
$_LANG['Online Theme Validator'] = 'Online Themenvalidator';
|
||||
$_LANG['If your theme is invalid, you may experience some problems in your Front Office layout, but do not panic! To resolve this, you can make it compatible by fixing the validator errors or by using a theme compatible with '] = 'Sollte Ihr Thema nicht kompatibel sein, könnten einige Probleme im Front-End auftreten. Sie können die Kompatibilität wieder einstellen, indem Sie im Backend Unter Einstellungen die entsprechende Einstellung treffen';
|
||||
$_LANG['version'] = 'Version';
|
||||
$_LANG['To do this, use our'] = 'Verwenden Sie dazu unseren';
|
||||
$_LANG['Additional Benefits'] = 'Exklusiv Angebot';
|
||||
$_LANG['Exclusive offers dedicated to PrestaShop merchants'] = 'Exklusiv Angebot für die Verkäufer PrestaShop';
|
||||
$_LANG['PHP magic quotes option is off (recommended)'] = 'Die PHP-Option "magic quotes" ist deaktiviert (empfohlen)';
|
||||
$_LANG['Other activity...'] = 'Andere activiteit...';
|
||||
$_LANG['Modules'] = 'Módulos';
|
||||
$_LANG['Benefits'] = 'Vorteile';
|
||||
$_LANG['Create a MySQL database using phpMyAdmin (or by asking your hosting provider)'] = '';
|
||||
$_LANG['- or -'] = '- oder -';
|
||||
$_LANG['I want to <b>install</b> a new online shop with PrestaShop'] = 'Ich möchte einen neuen PrestaShop <b>installieren</b>';
|
||||
$_LANG['I want to <b>update</b> my existing PrestaShop to a newer version'] = 'Ich möchte meinen <b>aktuellen</b> PrestaShop mit einer neueren Version aktualisieren';
|
||||
$_LANG['Your current version is too old, updates are possible only from version'] = '';
|
||||
$_LANG['and higher'] = '';
|
||||
$_LANG['PHP settings (for assistance, ask your hosting provider):'] = '';
|
||||
$_LANG['Database Configuration'] = '';
|
||||
$_LANG['Database login:'] = '';
|
||||
$_LANG['Database password:'] = '';
|
||||
$_LANG['Please create a MySQL database and then verify your settings below. If you need assistance, please ask your hosting provider for this information.'] = '';
|
||||
$_LANG['No more information'] = '';
|
||||
@@ -1,293 +0,0 @@
|
||||
<?php
|
||||
|
||||
$_LANG['Installer'] = 'Instalación';
|
||||
$_LANG['Updater'] = 'Actualizatión';
|
||||
$_LANG['.'] = '.';
|
||||
$_LANG['A Prestashop database already exists, please drop it or change the prefix.'] = 'Ya existe una base de datos PrestaShop con este prefijo, debe eliminarla manualmente o cambiar el prefijo.';
|
||||
$_LANG['A test e-mail has been sent to'] = '¡Se ha enviado un correo electrónico!';
|
||||
$_LANG['An error occurred while resizing the picture.'] = 'Se ha producido un error al cambiar el tamaño de la imagen.';
|
||||
$_LANG['An error occurred while sending email, please verify your parameters.'] = 'Se ha producido un error al enviar el correo electrónico, gracias por verificar la configuración.';
|
||||
$_LANG['Available shop languages'] = 'Elija idioma';
|
||||
$_LANG['Back'] = 'Anterior';
|
||||
$_LANG['Back up your database and all application files (update only)'] = 'Salvaguardar su base de datos y sus archivos (únicamente en caso de actualización de PrestaShop)';
|
||||
$_LANG['Please backup the database and application files.'] = 'Antes de continuar, debe hacer una copia de sus datos. Por favor copie todos los archivos desde el sitio en una carpeta de copia de seguridad, y guarde su base de datos.';
|
||||
$_LANG['By default, the PHP \'mail()\' function is used (recommended)'] = 'Por defecto, se utilizará la función PHP \'mail()\'';
|
||||
$_LANG['Can\'t create settings file, if /config/settings.inc.php exists, please give the public write permissions to this file, otherwise please create a file named settings.inc.php in config directory.'] = 'Error en la creación del archivo de configuración, si el archivo /config/settings.inc.php existe, por favor dele derechos púplicos de\escritura; si no, cree un archivo settings.inc.php en el repertorio de configuración (/config/)';
|
||||
$_LANG['Can\'t find the sql upgrade files. Please verify that the /install/sql/upgrade folder is not empty)'] = 'Imposible encontrar uno de los archivos de puesta al día SQL. Por favor, compruebe que el archivo /install/sql/upgrade no está vacío.';
|
||||
$_LANG['Choose your prefered language for the installation:'] = '¿En qué idioma quiere realizar la instalación?';
|
||||
$_LANG['Community Forum'] = 'en nuestro foro comunitario';
|
||||
$_LANG['Configure SMTP manually (advanced users only)'] = 'Configurar el envío SMTP (expertos únicamente)';
|
||||
$_LANG['Configure your database by filling out the following fields:'] = 'Configure su base de datos llenando los siguientes campos:';
|
||||
$_LANG['Congratulations, your online shop is now ready!'] = '¡Enhorabuena, su tienda se ha instalado!';
|
||||
$_LANG['Contact us!'] = '¡Contacte con nosotros!';
|
||||
$_LANG['Creation of new files and folders allowed'] = 'Creación de nuevas carpetas y archivos autorizados';
|
||||
$_LANG['Database server is available but database was not found'] = 'La base de datos del servidor está disponible, pero la base de datos no se ha encontrado ';
|
||||
$_LANG['Database server was not found. Please verify the login, password and server fields.'] = 'La base de datos de servidor no se ha encontrado, por favor, compruebe sus datos de acceso o el nombre del servidor.';
|
||||
$_LANG['Database configuration'] = 'Configuración de la base de datos';
|
||||
$_LANG['Database connection is available!'] = '¡La base de datos se ha encontrado!';
|
||||
$_LANG['Database is created!'] = '¡Base de datos instalada!';
|
||||
$_LANG['Database name:'] = 'Nombre de la base de datos:';
|
||||
$_LANG['Disclaimer'] = 'Aviso';
|
||||
$_LANG['Online documentation'] = 'Documentación en Wiki';
|
||||
$_LANG['E-mail address:'] = 'Dirección de email:';
|
||||
$_LANG['E-mail configuration'] = 'Parámetros de envío de emails';
|
||||
$_LANG['Encryption:'] = 'Encriptación:';
|
||||
$_LANG['Error!'] = '¡Falta!';
|
||||
$_LANG['Error while creating the /config/settings.inc.php file.'] = 'Error al crear el archivo /config/settings.inc.php.';
|
||||
$_LANG['Error while inserting content into the database'] = 'Error al insertar en la base de datos';
|
||||
$_LANG['Error while inserting data in the database:'] = 'Error al insertar en la base de datos:';
|
||||
$_LANG['Error while loading sql upgrade file.'] = 'Error al abrir el archivo SQL';
|
||||
$_LANG['Error:'] = 'Error :';
|
||||
$_LANG['Error(s) while updating...'] = 'Error al actualizar ...';
|
||||
$_LANG['Failed to write file to disk'] = 'No se pueden escribir archivos en el disco';
|
||||
$_LANG['Fields are different!'] = '¡Los campos son diferentes!';
|
||||
$_LANG['File upload allowed'] = 'Envío de archivo autorizado';
|
||||
$_LANG['File upload stopped by extension'] = 'Carga de archivos interrumpido a causa de la extensión incorrecta';
|
||||
$_LANG['First name:'] = 'Nombre:';
|
||||
$_LANG['For more information, please consult our'] = 'Para más información, consulte nuestra';
|
||||
$_LANG['GD Library installed'] = 'Librería GD instalada';
|
||||
$_LANG['GZIP compression is on (recommended)'] = 'La compresión GZIP está activada (aconsejable)';
|
||||
$_LANG['Here is your shop information. You can modify it once you are logged in.'] = 'Aquí tiene sus datos de conexión, puede modificarlos posteriormente si lo desea.';
|
||||
$_LANG['However, you must know how to do the following:'] = 'Sin embargo, tiene que saber realizar las siguientes tareas:';
|
||||
$_LANG['I agree to the above terms and conditions.'] = 'Estoy de acuerdo con los términos y condiciones.';
|
||||
$_LANG['If you have any questions, please visit our '] = 'Si tiene alguna duda o pregunta, echele un vistazo a nuestra ';
|
||||
$_LANG['Cannot access the a MySQL data file.'] = 'No se puede acceder al contenido de un archivo *.sql.';
|
||||
$_LANG['Cannot read the content of a MySQL data file.'] = 'No se puede leer el contenido de un archivo *.sql.';
|
||||
$_LANG['Cannot send the email!'] = '¡No se puede enviar un correo electrónico!';
|
||||
$_LANG['Cannot upload the file!'] = '¡No se puede enviar el archivo!';
|
||||
$_LANG['Cannot write the image /img/logo.jpg. If this image already exists, please delete it.'] = 'No se puede escribir la imagen /img/logo.jpg. Si ya existe, por favor, suprímala manualmente.';
|
||||
$_LANG['Installation: Full installation of PrestaShop'] = 'Instalación completa de PrestaShop';
|
||||
$_LANG['Installation is complete!'] = '¡Instalación terminada! ';
|
||||
$_LANG['What do you want to do?'] = 'Modo de instalación';
|
||||
$_LANG['Last name:'] = 'Apellido:';
|
||||
$_LANG['License Agreement'] = 'Contrato de Licencia';
|
||||
$_LANG['Login:'] = 'Nombre de usuario:';
|
||||
$_LANG['Shop settings and merchant account information'] = 'Información sobre el vendedor';
|
||||
$_LANG['Missing a temporary folder'] = 'Carece de la carpeta temporal para recibir su archivo de correo. ¡Por favor consulte su administrador de sistema!';
|
||||
$_LANG['MySQL support is on'] = 'El soporte de MySQL está activado';
|
||||
$_LANG['Next'] = 'Siguiente';
|
||||
$_LANG['No error code available.'] = 'Error desconocido.';
|
||||
$_LANG['No file was uploaded.'] = 'No se ha enviado ningún archivo';
|
||||
$_LANG['No upgrade is possible.'] = 'No existe actualización';
|
||||
$_LANG['None'] = 'Ninguno';
|
||||
$_LANG['PrestaShop Forums'] = 'Foro Oficial';
|
||||
$_LANG['One or more errors have occurred, you can find more information below or in the log/installation.log file.'] = ' Se han producido uno o más errores';
|
||||
$_LANG['Open external URLs allowed'] = 'Apertura autorizada de URL externas';
|
||||
$_LANG['Optional languages'] = 'Idiomas opcionales';
|
||||
$_LANG['Optional set-up'] = 'Parámetros opcionales';
|
||||
$_LANG['PHP \'mail()\' function is available'] = 'La función PHP \'mail()\' está disponible';
|
||||
$_LANG['PHP \'mail()\' function is unavailable'] = 'La función PHP \'mail()\' no está disponible';
|
||||
$_LANG['PHP 5.0 or later installed'] = 'PHP 5.0 o superior instalado';
|
||||
$_LANG['PHP register global option is off (recommended)'] = 'La opción PHP "register global" está desactivada (aconsejable)';
|
||||
$_LANG['Password:'] = 'Contraseña:';
|
||||
$_LANG['Please allow 10-15 minutes to complete the installation process.'] = 'El proceso de instalación tardará solo unos minutos.';
|
||||
$_LANG['Please set a SMTP login'] = 'Introduzca un nombre de usuario de SMTP';
|
||||
$_LANG['Please set a SMTP password'] = 'Escriba la contraseña SMTP';
|
||||
$_LANG['Please set a SMTP server name'] = 'Introduzca un nombre de servidor SMTP';
|
||||
$_LANG['Please set a database login'] = 'Introduzca el inicio de sesión de SQL';
|
||||
$_LANG['Please set a database name'] = 'Introduzca el nombre de la base de datos';
|
||||
$_LANG['Please set a database server name'] = 'Introduzca el nombre del servidor de la base de datos';
|
||||
$_LANG['Port:'] = 'Puerto:';
|
||||
$_LANG['PrestaShop %s Installer'] = 'Instalación de PrestaShop %s';
|
||||
$_LANG['PrestaShop is ready!'] = '¡PrestaShop está listo!';
|
||||
$_LANG['Re-type to confirm:'] = 'Confirmar la contraseña:';
|
||||
$_LANG['Ready, set, go!'] = '¡PrestaShop está instalado!';
|
||||
$_LANG['Receive this information by e-mail'] = 'Recibe estos datos por email';
|
||||
$_LANG['Check my settings again'] = 'Comprobar de nuevo';
|
||||
$_LANG['Required field'] = 'Los campos obligatorios';
|
||||
$_LANG['Required set-up. Please verify the following checklist items:'] = 'Asegúrese por favor de que cada uno de los siguientes parámetros ha sido validado.';
|
||||
$_LANG['SMTP connection is available!'] = '¡Conexión SMTP disponible!';
|
||||
$_LANG['SMTP connection is unavailable'] = 'Conexión SMTP no está disponible.';
|
||||
$_LANG['SMTP server:'] = 'Servidor SMTP:';
|
||||
$_LANG['SQL errors have occurred.'] = 'Han aparecido errores de SQL.';
|
||||
$_LANG['Select the different languages available for your shop'] = 'Seleccione los idiomas que su tienda ofrecerá a los clientes';
|
||||
$_LANG['Send me a test email!'] = '¡Envíeme un email de prueba!';
|
||||
$_LANG['Server:'] = 'Servidor:';
|
||||
$_LANG['Set permissions on folders & subfolders using an FTP client'] = 'Poner los permisos en las carpetas y subcarpetas vía un cliente FTP';
|
||||
$_LANG['Shop Configuration'] = 'Configuración de la tienda';
|
||||
$_LANG['Shop logo:'] = 'Logo de la tienda:';
|
||||
$_LANG['Shop name:'] = 'Nombre de la tienda:';
|
||||
$_LANG['Shop password:'] = 'Contraseña de la tienda:';
|
||||
$_LANG['Shop\'s default language'] = 'Idioma por defecto';
|
||||
$_LANG['Shop\'s languages'] = 'Idiomas de la tienda';
|
||||
$_LANG['System Compatibility'] = 'Compatibilidad del sistema';
|
||||
$_LANG['System Configuration'] = 'Configuración sistema';
|
||||
$_LANG['Tables prefix:'] = 'Prefijo de las tablas:';
|
||||
$_LANG['Test message - Prestashop'] = 'Instalación Prestashop - Prueba del servidor de correo';
|
||||
$_LANG['The PrestaShop Installer will do most of the work for you in just a few clicks.'] = 'El instalador de PrestaShop hará todo el trabajo en solo unos clics.';
|
||||
$_LANG['The config/settings.inc.php file was not found. Did you delete or rename this file?'] = 'Config/settings.inc.php no se ha encontrado. ¿Ha eliminado o cambiado de nombre?';
|
||||
$_LANG['The password is incorrect (alphanumeric string at least 8 characters).'] = 'Contraseña incorrecta (alfa-cadena numérica de al menos 8 caracteres)';
|
||||
$_LANG['The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form'] = 'El archivo enviado supera el tamaño máximo permitido.';
|
||||
$_LANG['The uploaded file exceeds the upload_max_filesize directive in php.ini'] = 'El archivo enviado supera el tamaño máximo permitido.';
|
||||
$_LANG['The uploaded file was only partially uploaded'] = 'El archivo fue parcialmente enviado.';
|
||||
$_LANG['There is no older version. Did you delete or rename the config/settings.inc.php file?'] = 'Ninguna versión anterior detectada. ¿Puede borrar o renombrar el archivo de configuración settings.inc.php archivo?';
|
||||
$_LANG['This PrestaShop database already exists. Please revalidate your authentication information to the database.'] = 'Esta base de datos ya existe PrestaShop, por favor, valide de nuevo sus credenciales en la base de datos.';
|
||||
$_LANG['This application needs you to activate Javascript to correctly work.'] = 'Se requiere JavaScript para ejecutar esta aplicación.';
|
||||
$_LANG['This e-mail address is invalid!'] = '¡Dirección no válida!';
|
||||
$_LANG['This installer is too old.'] = 'Este instalador es demasiado viejo.';
|
||||
$_LANG['This is a test message, your server is now available to send email'] = 'Este es un mensaje de prueba, el servidor de correo funciona correctamente.';
|
||||
$_LANG['This is not a valid file name.'] = 'Esto no es un nombre válido.';
|
||||
$_LANG['This is not a valid image file.'] = 'Esto no es una imagen válida.';
|
||||
$_LANG['Too long'] = '¡Demasiado largo!';
|
||||
$_LANG['Unfortunately,'] = 'Desgraciadamente,';
|
||||
$_LANG['Update is complete!'] = '¡Actualización completa!';
|
||||
$_LANG['Upgrade: get the latest stable version!'] = 'Actualización: instale la última versión de PrestaShop';
|
||||
$_LANG['Verify my database settings'] = '¡Pruebe ahora!';
|
||||
$_LANG['Verify system compatibility'] = 'Compatibilidad sistema';
|
||||
$_LANG['WARNING: For security purposes, you must delete the "install" folder.'] = 'ATENCION : para más seguridad, por favor borre la carpeta \'/install\'.';
|
||||
$_LANG['Warning: a manual backup is HIGHLY recommended before continuing!'] = '¡Atención : se recomienda hacer una copia de seguridad manual antes de continuar!';
|
||||
$_LANG['Welcome'] = 'Bienvenido';
|
||||
$_LANG['Welcome to the PrestaShop %s Installer'] = 'Bienvenido a la instalación de PrestaShop %s';
|
||||
$_LANG['When your backup is complete, please confirm that it is fully functional.'] = 'Una vez que los archivos de aplicación y su base de datos se hayan guardado, le pediremos que los certifique. Por lo tanto, usted asume plenamente su responsabilidad por cualquier pérdida de datos debido a la actualización de la aplicación PrestaShop.';
|
||||
$_LANG['Write permissions on folders (and subfolders):'] = 'Permiso de escritura en las carpetas (y sus subcarpetas) :';
|
||||
$_LANG['Write permissions on files and folders:'] = 'Permiso de escritura en los archivos y carpetas :';
|
||||
$_LANG['Write permissions on folders:'] = 'Permiso de escritura en los archivos de';
|
||||
$_LANG['You already have the %s version.'] = 'Ya está en posesión de la versión %s';
|
||||
$_LANG['You have just installed and configured PrestaShop as your online shop. We wish you all the best with the success of your online shop.'] = 'Acaba de instalar y de configurar su tienda online y se lo agradecemos.';
|
||||
$_LANG['You have just updated and configured PrestaShop as your online shop. We wish you all the best with the success of your online shop.'] = 'Deba actualizar su tienda online. Se lo agradecemos.';
|
||||
$_LANG['Your installation is finished!'] = '¡La instalación está terminada!';
|
||||
$_LANG['Your update is finished!'] = 'La actualización se ha completado';
|
||||
$_LANG['and/or'] = 'y/o';
|
||||
$_LANG['enter@your.email'] = 'introduzca@su.email';
|
||||
$_LANG['online documentation'] = 'documentación online';
|
||||
$_LANG['Currently installed version detected:'] = 'Versión detectada actualmente :';
|
||||
$_LANG['Recommended dimensions:'] = 'Dimensiones recomendadas:';
|
||||
$_LANG['view the log'] = 'ver el informe';
|
||||
$_LANG['(No previous version detected)'] = '(no hay ninguna versión antigua detectada)';
|
||||
$_LANG['Can\'t write settings file, please create a file named settings.inc.php in config directory.'] = 'El archivo de parámetros no pudo escribirse, cree un archivo llamado settings.inc.php en su repertorio de configuración.';
|
||||
$_LANG['Cannot convert your database\'s data to UTF-8.'] = 'No se pueden convertir los datos de su base de datos en UTF-8.';
|
||||
$_LANG['Your database server does not support the UTF-8 charset.'] = 'La base de datos del servidor no es compatible con UTF-8.';
|
||||
$_LANG['Need help?'] = '¿Necesita ayuda?';
|
||||
$_LANG['Forums'] = 'El foro';
|
||||
$_LANG['Blog'] = 'El blog';
|
||||
$_LANG['Back Office'] = 'Back Office';
|
||||
$_LANG['Manage your store using your Back Office. Manage your orders and customers, add modules, change themes, etc.'] = 'Administre su tienda con su back office. Maneja sus pedidos y clientes, agregue módulos, cambie su tema, etc ...';
|
||||
$_LANG['Manage your store'] = 'Administre su tienda';
|
||||
$_LANG['Front Office'] = 'Front Office';
|
||||
$_LANG['Discover your store as your future customers will see it!'] = '¡Descubra su tienda tal como la verán sus clientes!';
|
||||
$_LANG['Discover your store'] = 'Descubra su tienda';
|
||||
$_LANG['Did you know?'] = '¿Sabía que?';
|
||||
$_LANG['Prestashop and its community offers over 40 different languages for free download at'] = 'La comunidad Prestashop ofrece más de 40 idiomas diferentes para su descarga gratuita en';
|
||||
$_LANG['Default country:'] = 'País por defecto:';
|
||||
$_LANG['Shop timezone:'] = 'Zona horaria de la tienda:';
|
||||
$_LANG['Your configuration is valid, click \"Next\" to continue!'] = 'Su configuración es válida, haga clic en \"Siguiente\" para continuar';
|
||||
$_LANG['Your configuration is invalid. Please fix the issues below:'] = 'Su configuración no es válida,<br />gracias por corregir la configuración:';
|
||||
$_LANG['You have to create a database, help available in readme_en.txt'] = 'Debe crear una base de datos, puede encontrar ayuda en el archivo readme_es.txt';
|
||||
$_LANG['Discover your store'] = 'Descubra su tienda';
|
||||
$_LANG['Warning: If you check this box and your e-mail configuration is incorrect, you might not be able to continue the installation.'] = 'Esta opción se puede bloquear si su configuración de correo electrónico está incorrecta, por favor desactivarla si usted no puede moverse a la siguiente etapa.';
|
||||
$_LANG['Invalid catalog mode'] = 'Campo modo catálogo no válido';
|
||||
$_LANG['Catalog mode only:'] = 'Modo Catálogo:';
|
||||
$_LANG['Yes'] = 'Sí';
|
||||
$_LANG['No'] = 'No';
|
||||
$_LANG['If you activate this feature, all purchasing will be disabled. However, you will be able to enable purchasing later in your Back Office.'] = 'Si activa esta opción, se desactivarán todas las aplicaciones de compra. Puede activar dicha opción posteriormente en el panel de administración.';
|
||||
$_LANG['Your current version is already up-to-date'] = 'la versión instalada que se ha detectado es demasiado reciente, no hay ninguna actualización disponible';
|
||||
$_LANG['If you do not know how to enable it, use our turnkey solution PrestaBox at'] = 'Si no sabe activarla, utilice nuestra solución PrestaBox en';
|
||||
$_LANG['Invalid shop name'] = 'Nombre de la tienda no válido';
|
||||
$_LANG['Your firstname contains some invalid characters'] = 'Su nombre contiene caracteres no válidos';
|
||||
$_LANG['Your lastname contains some invalid characters'] = 'Su apellido contiene caracteres no válidos';
|
||||
$_LANG['Your MySQL server doesn\'t support this engine, please use another one like MyISAM'] = 'El soporte de este motor de base de datos no se puede soportar, elija otro como por ejemplo MyISAM';
|
||||
$_LANG['The file /img/logo.jpg is not writable, please CHMOD 755 this file or CHMOD 777'] = 'El archivo /img/logo.jpg no tiene derechos de escritura, por favor efectúe un CHMOD 755 o 777 en el archivo';
|
||||
$_LANG['The config/defines.inc.php file was not found. Where did you move it?'] = 'El archivo config/defines.inc.php no se ha encontrado. ¿Dónde se encuentra?';
|
||||
$_LANG['PrestaShop tips and advice'] = 'Todos los trucos y consejos sobre PrestaShop';
|
||||
$_LANG['+33 (0)1.40.18.30.04'] = '+33 (0)1.40.18.30.04';
|
||||
$_LANG['Mcrypt is available (recommended)'] = 'Mcrypt está disponible (aconsejable)';
|
||||
$_LANG['If you do not know how to fix these issues, use turnkey solution PrestaBox at'] = 'Si no puede solucionar estos problemas, utilice nuestra solución PrestaBox en';
|
||||
$_LANG['Database Engine:'] = 'Tipo de base de datos:';
|
||||
$_LANG['Installation type'] = 'Tipo de instalación';
|
||||
$_LANG['Lite mode: Basic installation'] = 'Modo básico: instalación simplificada';
|
||||
$_LANG['(FREE)'] = '(GRATIS)';
|
||||
$_LANG['Full mode: includes core modules,'] = 'Modo completo: con';
|
||||
$_LANG['100+ additional modules'] = '100 módulos includidos';
|
||||
$_LANG['and demo products'] = 'y productos de demostración';
|
||||
$_LANG['Shop configuration'] = 'Configuración de la tienda';
|
||||
$_LANG['Main activity:'] = 'Actividad principal';
|
||||
$_LANG['-- Please choose your main activity --'] = '-- Elija una actividad --';
|
||||
$_LANG['Adult'] = 'Adulto y lencería';
|
||||
$_LANG['Animals and Pets'] = 'Animales';
|
||||
$_LANG['Art and Culture'] = 'Cultura y ocio';
|
||||
$_LANG['Babies'] = 'Artículos para bebés';
|
||||
$_LANG['Beauty and Personal Care'] = 'Salud y belleza';
|
||||
$_LANG['Cars'] = 'Automóvil y motos';
|
||||
$_LANG['Computer Hardware and Software'] = 'Informática y programas';
|
||||
$_LANG['Download'] = 'Descargas';
|
||||
$_LANG['Fashion and accessories'] = 'Ropa y complementos';
|
||||
$_LANG['Flowers, Gifts and Crafts'] = 'Flores y regalos';
|
||||
$_LANG['Food and beverage'] = 'Alimentación y gastronomía';
|
||||
$_LANG['HiFi, Photo and Video'] = 'Hifi, foto y vídeo';
|
||||
$_LANG['Home and Garden'] = 'Casa y jardín';
|
||||
$_LANG['Home Appliances'] = 'Electrodomésticos';
|
||||
$_LANG['Jewelry'] = 'Joyería';
|
||||
$_LANG['Mobile and Telecom'] = 'Telefonía y comunicación';
|
||||
$_LANG['Services'] = 'Servicios';
|
||||
$_LANG['Shoes and accessories'] = 'Calzado y complementos';
|
||||
$_LANG['Sports and Entertainment'] = 'Deporte y ocio';
|
||||
$_LANG['Travel'] = 'Viajes y turismo';
|
||||
$_LANG['This information is not required, it will only be used for statistical purposes. This information does not change anything in your store.'] = 'Esta información no es obligatoria, solo se utilizará para estadísticas. Proporcionarla o no, no cambiará nada en su tienda.';
|
||||
$_LANG['E-mail:'] = 'Email :';
|
||||
$_LANG['I certify that I backed up my database and application files. I assume all responsibility for any data loss or damage related to this upgrade.'] = 'Certifico que he efectuado una copia de seguridad de mi base de datos y de mis archivos. Asumo plenamente la responsabilidad en caso en que se pierdan los datos o se produzca un error relacionado con esta actualización.';
|
||||
$_LANG['Upgrade in progress'] = 'Actualización en curso';
|
||||
$_LANG['Current query:'] = 'Búsqueda actual:';
|
||||
$_LANG['Details about this upgrade'] = 'Detalles sobre esta actualización';
|
||||
$_LANG['Thank you, you will be able to continue the upgrade process by clicking on the "Next" button.'] = 'Gracias, puede continuar la actualización, pulsando en "Siguiente".';
|
||||
$_LANG['PrestaShop is upgrading your shop one version after the other, the following upgrade files will be processed:'] = 'PrestaShop actualiza las versiones de su tienda de una en una, los siguientes archivos de actualización van a ser tratados:';
|
||||
$_LANG['Upgrade file'] = 'Archivo de actualizaciones';
|
||||
$_LANG['Modifications to process'] = 'Modificaciones que deben tenerse en cuenta';
|
||||
$_LANG['(major)'] = '(majeure)';
|
||||
$_LANG['TOTAL'] = 'TOTAL';
|
||||
$_LANG['Estimated time to complete the'] = 'Tiempo estimado para realizar la';
|
||||
$_LANG['modifications:'] = 'modificaciones :';
|
||||
$_LANG['minutes'] = 'minutos';
|
||||
$_LANG['minute'] = 'minuto';
|
||||
$_LANG['seconds'] = 'segundos';
|
||||
$_LANG['second'] = 'segundo';
|
||||
$_LANG['Depending on your server and the size of your shop'] = 'En función de la potencia de su servidor y el tamaño de su tienda...';
|
||||
$_LANG['You have not updated your shop in a while,'] = 'No ha actualizado su tienda desde hace algún tiempo,';
|
||||
$_LANG['stable releases have been made ‚Äã‚Äãavailable since.'] = 'hay versiones mayores a disposición desde entonces.';
|
||||
$_LANG['This is not a problem however the update may take several minutes, try to update your shop more frequently.'] = 'No es un problema pero la actualización puede durar algunos minutos. Intente actualizar su tienda más a menudo.';
|
||||
$_LANG['No files to process, this might be an error.'] = 'No hay ningún archivo para tratar, se trata sin duda de un error';
|
||||
$_LANG['Hosting parameters'] = 'Parámetros hosting';
|
||||
$_LANG['PrestaShop tries to automatically set the best settings for your server in order for the update to be successful.'] = 'PrestaShop intenta configurar por usted los parámetros de su servidor para que la actualización se efectúe de manera correcta.';
|
||||
$_LANG['PHP parameter'] = 'Parámetro PHP';
|
||||
$_LANG['Description'] = 'Descripción';
|
||||
$_LANG['Current value'] = 'Valor actual';
|
||||
$_LANG['Maximum allowed time for the upgrade'] = 'Tiempo máximo autorizado para la actualización';
|
||||
$_LANG['Maximum memory allowed for the upgrade'] = 'Memoria máxima autorizada para la actualización';
|
||||
$_LANG['All your settings seem to be OK, go for it!'] = 'Todos los parámetros son correctos, ¡adelante!';
|
||||
$_LANG['Beware, your settings look correct but are not optimal, if you encounter problems (upgrade too long, memory error...), please ask your hosting provider to increase the values of these parameters: "max_execution_time" and "memory_limit".'] = 'Atención, los parámetros parecen correctos pero no son óptimos, si encuentra una dificultad (actualización bloqueada antes de su finalización, error de memoria...), pida a su hosting que aumente los valores de dichos parámetros (max_execution_time & memory_limit).';
|
||||
$_LANG['We strongly recommend that you inform your hosting provider to modify the settings before process to the update.'] = 'Le aconsejamos que avise a su hosting antes de comenzar la actualización para que modifique los parámetros PHP.';
|
||||
$_LANG['Let\'s go!'] = 'El proceso ha comenzado';
|
||||
$_LANG['Click on the "Next" button to start the upgrade, this can take several minutes,'] = 'Pulse en "Siguiente" para comenzar la actualización, esto puede llevar unos minutos,';
|
||||
$_LANG['please be patient and do not close this window.'] = 'no cierre la ventana y espere.';
|
||||
$_LANG['Your update is complete!'] = 'La actualización ha concluido con éxito';
|
||||
$_LANG['Your shop version is now'] = 'La versión de su tienda ya está';
|
||||
$_LANG['New features in PrestaShop v'] = 'Nuevas aplicaciones en dans PrestaShop v';
|
||||
$_LANG['Module compatibility'] = 'Compatibilidad Módulos';
|
||||
$_LANG['It\'s dangerous to keep non-native modules activated during the update. If you really want to take this risk, uncheck the following box.'] = 'Se desaconseja dejar los módulos no nativos activos durante la actualización. Si realmente desea correr ese riesgo, desactive la siguiente casilla.';
|
||||
$_LANG['You will be able to manually reactivate them in your Back Office once the update process has succeeded.'] = 'Después podrá reactivarlos manualmente en el back-office, una vez la actualización haya terminado.';
|
||||
$_LANG['Ok, please deactivate the following modules, I will reactivate them later:'] = 'De acuerdo, desactive automáticamente los siguientes módulos, los activaré yo mismo más tarde:';
|
||||
$_LANG['Theme compatibility'] = 'Compatibilidad del tema';
|
||||
$_LANG['Before updating, you need to check that your theme is compatible with version'] = 'Antes de la actualización, debe comprobar que su tema es compatible con la versión';
|
||||
$_LANG['of PrestaShop.'] = 'de PrestaShop';
|
||||
$_LANG['Link to the validator'] = 'Link hacia el validador';
|
||||
$_LANG['Online Theme Validator'] = 'Validador del tema online';
|
||||
$_LANG['If your theme is invalid, you may experience some problems in your Front Office layout, but do not panic! To resolve this, you can make it compatible by fixing the validator errors or by using a theme compatible with '] = 'Si su tema no es válido, podría tener problemas en la página de su sitio Web, pero no se preocupe, ¡puede hacerlo compatible corrigiendo los errores señalados por el validador o utilizando un tema compatible con la versión!' ;
|
||||
$_LANG['version'] = 'versión';
|
||||
$_LANG['To do this, use our'] = 'En este objetivo, utilice nuestro';
|
||||
$_LANG['Additional Benefits'] = 'Otros beneficios';
|
||||
$_LANG['Exclusive offers dedicated to PrestaShop merchants'] = 'Ofertas exclusivas dedicadas a los comerciantes PrestaShop';
|
||||
$_LANG['PHP magic quotes option is off (recommended)'] = 'La opción PHP "magic quotes" está desactivada (aconsejable)';
|
||||
$_LANG['Other activity...'] = 'Otra actividad...';
|
||||
$_LANG['Modules'] = 'Módulos';
|
||||
$_LANG['Benefits'] = 'Beneficios';
|
||||
$_LANG['Create a MySQL database using phpMyAdmin (or by asking your hosting provider)'] = 'Crear un base de datos MySQL usando phpMyAdmin (o preguntele a su proveedor de alojamiento web)';
|
||||
$_LANG['- or -'] = ' - o -';
|
||||
$_LANG['I want to <b>install</b> a new online shop with PrestaShop'] = 'Yo quiero <b>installar</b> una nueva tienda online con PrestaShop';
|
||||
$_LANG['I want to <b>update</b> my existing PrestaShop to a newer version'] = 'Quiero actualizar mi actual PrestaShop, a una nueva versión más reciente';
|
||||
$_LANG['Your current version is too old, updates are possible only from version'] = 'Su version actual esta antigua, actualizaciones solo estan disponibles desde la version';
|
||||
$_LANG['and higher'] = 'y en adelante';
|
||||
$_LANG['PHP settings (for assistance, ask your hosting provider):'] = 'PHP parámetros (para assistencia, preguntale a su proveedor de alojamiento web)';
|
||||
$_LANG['Database Configuration'] = 'Configuración de base de datos';
|
||||
$_LANG['Database login:'] = 'Inicio de la base de datos';
|
||||
$_LANG['Database password:'] = 'Contraseña de la base de datos';
|
||||
$_LANG['Please create a MySQL database and then verify your settings below. If you need assistance, please ask your hosting provider for this information.'] = 'Por favor crear un base de datos MySQL y despues verifique sus parámetros debajo, para assistencia por favor preguntale a su proveedor de alojamiento web.';
|
||||
$_LANG['No more information'] = 'No mas informacion';
|
||||
@@ -1,299 +0,0 @@
|
||||
<?php
|
||||
|
||||
$_LANG['Installer'] = 'Installation';
|
||||
$_LANG['Updater'] = 'Mise à jour';
|
||||
$_LANG['.'] = '.';
|
||||
$_LANG['A Prestashop database already exists, please drop it or change the prefix.'] = 'Une base de données PrestaShop existe déjà avec ce préfixe, vous devez la supprimer manuellement ou changer son préfixe.';
|
||||
$_LANG['A test e-mail has been sent to'] = 'Un email a été envoyé à';
|
||||
$_LANG['An error occurred while resizing the picture.'] = 'Une erreur est survenue lors du redimensionnement de l\'image.';
|
||||
$_LANG['An error occurred while sending email, please verify your parameters.'] = 'Une erreur est survenue lors de l\'envoi de l\'email, merci de vérifier vos paramètres.';
|
||||
$_LANG['Available shop languages'] = 'Langues proposées';
|
||||
$_LANG['Back'] = 'Précédent';
|
||||
$_LANG['Back up your database and all application files (update only)'] = 'Sauvegarder votre base de données et vos fichiers (en cas de mise à jour de PrestaShop uniquement)';
|
||||
$_LANG['Please backup the database and application files.'] = 'Avant de continuer, vous devez sauvegarder vos données. Merci donc de copier tous les fichiers du site dans un dossier de sauvegarde, mais également de sauvegarder votre base de données. Si vous avez modifié manuellement le fichier caché ".htaccess" à la racine de votre boutique, prenez soin de le sauvegarder également.';
|
||||
$_LANG['By default, the PHP \'mail()\' function is used (recommended)'] = 'Par défaut, la fonction PHP \'mail()\' est utilisée';
|
||||
$_LANG['Can\'t create settings file, if /config/settings.inc.php exists, please give the public write permissions to this file, otherwise please create a file named settings.inc.php in config directory.'] = 'Erreur à la création du fichier de configuration, si le fichier /config/settings.inc.php existe, veuillez lui donner les droits publics d\'écriture; sinon veuillez créer un fichier settings.inc.php dans le répertoire de configuration (/config/)';
|
||||
$_LANG['Can\'t find the sql upgrade files. Please verify that the /install/sql/upgrade folder is not empty)'] = 'Impossible de trouver un des fichiers de mise à jour SQL. Merci de vérifier que le dossier /install/sql/upgrade n\'est pas vide.';
|
||||
$_LANG['Choose your prefered language for the installation:'] = 'Dans quelle langue souhaitez-vous effectuer l\'installation ?';
|
||||
$_LANG['Community Forum'] = 'notre forum communautaire';
|
||||
$_LANG['Configure SMTP manually (advanced users only)'] = 'Configurer l\'envoi SMTP (experts uniquement)';
|
||||
$_LANG['Configure your database by filling out the following fields:'] = 'Configurez votre base de données en remplissant les champs ci-dessous :';
|
||||
$_LANG['Congratulations, your online shop is now ready!'] = 'Félicitations, votre boutique est installée !';
|
||||
$_LANG['Contact us!'] = 'Contactez-nous';
|
||||
$_LANG['Creation of new files and folders allowed'] = 'Création de nouveaux dossiers et fichiers autorisée';
|
||||
$_LANG['Your database connection settings are not valid. Please check your server, name, login and prefix.'] = 'Vos informations de connexion à la base de données ne sont pas valides. Veuillez vérifier le serveur, nom, login et préfixe que vous avez indiqué.';
|
||||
$_LANG['Database server is available but database was not found'] = 'Le serveur de bases de données est disponible mais la base de données n\'a pas été trouvée';
|
||||
$_LANG['Database server was not found. Please verify the login, password and server fields.'] = 'Le serveur de bases de données n\'a pas été trouvé, merci de vérifier vos identifiants ou le nom du serveur.';
|
||||
$_LANG['Database configuration'] = 'Configuration de la base de données';
|
||||
$_LANG['Database connection is available!'] = 'La base de données a été trouvée !';
|
||||
$_LANG['Database is created!'] = 'Base de données installée !';
|
||||
$_LANG['Database name:'] = 'Nom de la base de données :';
|
||||
$_LANG['Disclaimer'] = 'Avertissement';
|
||||
$_LANG['Online documentation'] = 'documentation Wiki';
|
||||
$_LANG['E-mail:'] = 'Email :';
|
||||
$_LANG['E-mail address:'] = 'Adresse e-mail :';
|
||||
$_LANG['E-mail configuration'] = 'Paramètres d\'envoi des emails';
|
||||
$_LANG['Encryption:'] = 'Cryptage :';
|
||||
$_LANG['Error!'] = 'Erreur !';
|
||||
$_LANG['Error while creating the /config/settings.inc.php file.'] = 'Erreur lors de la création du fichier /config/settings.inc.php.';
|
||||
$_LANG['Error while inserting content into the database'] = 'Erreur lors de l\'insertion dans la base de données';
|
||||
$_LANG['Error while inserting data in the database:'] = 'Erreur lors de l\'insertion dans la base :';
|
||||
$_LANG['Error while loading sql upgrade file.'] = 'Erreur lors de l\'ouverture du fichier SQL';
|
||||
$_LANG['Error:'] = 'Erreur :';
|
||||
$_LANG['Error(s) while updating...'] = 'Erreur lors de la mise à jour...';
|
||||
$_LANG['Failed to write file to disk'] = 'Impossible d\'écrire le fichier sur le disque';
|
||||
$_LANG['Fields are different!'] = 'Les champs sont différents !';
|
||||
$_LANG['File upload allowed'] = 'Envoi de fichier autorisé';
|
||||
$_LANG['File upload stopped by extension'] = 'Envoi de fichier interrompu à cause de l\'extension incorrecte';
|
||||
$_LANG['First name:'] = 'Prénom :';
|
||||
$_LANG['For more information, please consult our'] = 'Pour plus d\'infos, veuillez consulter notre';
|
||||
$_LANG['GD Library installed'] = 'Librairie GD installée';
|
||||
$_LANG['GZIP compression is on (recommended)'] = 'La compression GZIP est activée (recommandé)';
|
||||
$_LANG['Here is your shop information. You can modify it once you are logged in.'] = 'Voici vos informations de connexion, vous pouvez les modifier ultérieurement dans votre Back Office.';
|
||||
$_LANG['However, you must know how to do the following:'] = 'Toutefois, vous devrez effectuer les actions suivantes :';
|
||||
$_LANG['I agree to the above terms and conditions.'] = 'J\'approuve les termes et conditions du contrat ci-dessus.';
|
||||
$_LANG['If you have any questions, please visit our '] = 'Si vous avez la moindre question, merci de jeter un oeil sur notre ';
|
||||
$_LANG['Cannot access the a MySQL data file.'] = 'Impossible d\'accéder au contenu d\'un des fichiers *.sql.';
|
||||
$_LANG['Cannot read the content of a MySQL data file.'] = 'Impossible de lire le contenu d\'un des fichiers *.sql.';
|
||||
$_LANG['Cannot send the email!'] = 'Impossible d\'envoyer l\'email !';
|
||||
$_LANG['Cannot upload the file!'] = 'Impossible d\'envoyer le fichier !';
|
||||
$_LANG['Cannot write the image /img/logo.jpg. If this image already exists, please delete it.'] = 'Impossible d\'écrire l\'image /img/logo.jpg. Si celle-ci existe déjà, merci de la supprimer manuellement.';
|
||||
$_LANG['Installation: Full installation of PrestaShop'] = 'Installation complète de PrestaShop';
|
||||
$_LANG['Installation is complete!'] = 'Installation terminée !';
|
||||
$_LANG['What do you want to do?'] = 'Méthode d\'installation';
|
||||
$_LANG['Last name:'] = 'Nom :';
|
||||
$_LANG['License Agreement'] = 'Contrat de licences';
|
||||
$_LANG['PrestaShop core is released under the OSL 3.0 while PrestaShop modules and themes are released under the AFL 3.0.'] = 'Le coeur de PrestaShop est publié sous licence OSL 3.0 tandis que les modules et thèmes sont publiés sous licence AFL 3.0.';
|
||||
$_LANG['Login:'] = 'Identifiant :';
|
||||
$_LANG['Shop settings and merchant account information'] = 'Informations à propos du vendeur';
|
||||
$_LANG['Missing a temporary folder'] = 'Il manque le dossier temporaire de réception de vos envois de fichiers. Merci de consulter votre administrateur système.';
|
||||
$_LANG['MySQL support is on'] = 'Le support de MySQL est activé';
|
||||
$_LANG['Next'] = 'Suivant';
|
||||
$_LANG['No error code available.'] = 'Erreur inconnue.';
|
||||
$_LANG['No file was uploaded.'] = 'Aucun fichier n\'a été envoyé';
|
||||
$_LANG['No upgrade is possible.'] = 'Pas de mise à jour disponible';
|
||||
$_LANG['None'] = 'Aucun';
|
||||
$_LANG['PrestaShop Forums'] = 'Forums PrestaShop';
|
||||
$_LANG['One or more errors have occurred, you can find more information below or in the log/installation.log file.'] = 'Une ou plusieurs erreurs sont apparues, vous trouverez plus d\'informations ci-dessous ou dans le fichier log/installation.log';
|
||||
$_LANG['Open external URLs allowed'] = 'Ouverture des URL externes autorisée';
|
||||
$_LANG['Optional languages'] = 'Langues non-proposées';
|
||||
$_LANG['Optional set-up'] = 'Paramètres optionnels';
|
||||
$_LANG['PHP \'mail()\' function is available'] = 'La fonction PHP \'mail()\' est disponible';
|
||||
$_LANG['PHP \'mail()\' function is unavailable'] = 'La fonction PHP \'mail()\' n\'est pas disponible';
|
||||
$_LANG['PHP 5.0 or later installed'] = 'PHP 5.0 ou supérieur installé';
|
||||
$_LANG['PHP register global option is off (recommended)'] = 'L\'option PHP "register global" est désactivée (recommandé)';
|
||||
$_LANG['Password:'] = 'Mot de passe :';
|
||||
$_LANG['Please allow 10-15 minutes to complete the installation process.'] = 'Le processus d\'installation devrait vous prendre quelques minutes seulement !';
|
||||
$_LANG['Please set a SMTP login'] = 'Entrez un identifiant SMTP';
|
||||
$_LANG['Please set a SMTP password'] = 'Entrez le password SMTP';
|
||||
$_LANG['Please set a SMTP server name'] = 'Entrez un nom de serveur SMTP';
|
||||
$_LANG['Please set a database login'] = 'Entrez le login SQL';
|
||||
$_LANG['Please set a database name'] = 'Entrez le nom de la base de données';
|
||||
$_LANG['Please set a database server name'] = 'Entrez le nom du serveur de la base de données';
|
||||
$_LANG['Port:'] = 'Port :';
|
||||
$_LANG['PrestaShop %s Installer'] = 'Installation de PrestaShop %s';
|
||||
$_LANG['PrestaShop is ready!'] = 'PrestaShop est prêt!';
|
||||
$_LANG['Re-type to confirm:'] = 'Confirmez le mot de passe :';
|
||||
$_LANG['Ready, set, go!'] = 'PrestaShop est installé !';
|
||||
$_LANG['Receive this information by e-mail'] = 'Recevoir mes informations par e-mail';
|
||||
$_LANG['Check my settings again'] = 'Revérifier';
|
||||
$_LANG['Required field'] = 'Champs requis';
|
||||
$_LANG['Required set-up. Please verify the following checklist items:'] = 'Merci de vous assurer que chacun des paramètres ci-dessous est valide (coche verte affichée).';
|
||||
$_LANG['SMTP connection is available!'] = 'Connexion SMTP disponible !';
|
||||
$_LANG['SMTP connection is unavailable'] = 'Connexion SMTP non disponible.';
|
||||
$_LANG['SMTP server:'] = 'Serveur SMTP :';
|
||||
$_LANG['SQL errors have occurred.'] = 'erreurs SQL sont apparues.';
|
||||
$_LANG['Select the different languages available for your shop'] = 'Choisissez les différentes langues que votre boutique proposera aux clients';
|
||||
$_LANG['Send me a test email!'] = 'M\'envoyer un email de test !';
|
||||
$_LANG['Server:'] = 'Serveur :';
|
||||
$_LANG['Set permissions on folders & subfolders using an FTP client'] = 'Mettre les permissions sur les dossiers & sous-dossiers via un client FTP';
|
||||
$_LANG['Shop Configuration'] = 'Configuration boutique';
|
||||
$_LANG['Shop logo:'] = 'Logo de la boutique :';
|
||||
$_LANG['Shop name:'] = 'Nom de la boutique :';
|
||||
$_LANG['Shop password:'] = 'Mot de passe de la boutique :';
|
||||
$_LANG['Shop\'s default language'] = 'Langue par défaut';
|
||||
$_LANG['Shop\'s languages'] = 'Langues de la boutique';
|
||||
$_LANG['System Compatibility'] = 'Compatibilité du système';
|
||||
$_LANG['System Configuration'] = 'Configuration système';
|
||||
$_LANG['Tables prefix:'] = 'Préfixe des tables :';
|
||||
$_LANG['Test message - Prestashop'] = 'Installation de Prestashop - test du serveur d\'email';
|
||||
$_LANG['The PrestaShop Installer will do most of the work for you in just a few clicks.'] = 'L\'installeur de PrestaShop va faire tout le travail en quelques clics.';
|
||||
$_LANG['The config/settings.inc.php file was not found. Did you delete or rename this file?'] = 'Le fichier config/settings.inc.php n\'a pas été trouvé. L\'avez-vous supprimé ou renommé ?';
|
||||
$_LANG['The config/defines.inc.php file was not found. Where did you move it?'] = 'Le fichier config/defines.inc.php n\'a pas été trouvé. Ou est-il passé ?';
|
||||
$_LANG['The password is incorrect (alphanumeric string at least 8 characters).'] = 'Mot de passe incorrect (chaîne alpha-numérique d\'au moins 8 caractères)';
|
||||
$_LANG['The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form'] = 'Le fichier envoyé dépasse la taille maximum autorisée.';
|
||||
$_LANG['The uploaded file exceeds the upload_max_filesize directive in php.ini'] = 'Le fichier envoyé dépasse la taille maximum autorisée.';
|
||||
$_LANG['The uploaded file was only partially uploaded'] = 'Le fichier a été envoyé partiellement.';
|
||||
$_LANG['There is no older version. Did you delete or rename the config/settings.inc.php file?'] = 'Pas de version antérieur détectée. Avez-vous supprimé ou renommé le fichier settings.inc.php du dossier config ?';
|
||||
$_LANG['This PrestaShop database already exists. Please revalidate your authentication information to the database.'] = 'Cette base de données PrestaShop existe déjà, merci de revalider vos informations d\'authentification à la base de données.';
|
||||
$_LANG['This application needs you to activate Javascript to correctly work.'] = 'JavaScript est requis pour lancer cette application.';
|
||||
$_LANG['This e-mail address is invalid!'] = 'Adresse incorrecte !';
|
||||
$_LANG['This installer is too old.'] = 'Cet installeur est trop vieux.';
|
||||
$_LANG['This is a test message, your server is now available to send email'] = 'Ceci est un message de test, votre serveur d\'email fonctionne correctement.';
|
||||
$_LANG['This is not a valid file name.'] = 'Ce n\'est pas un nom valide.';
|
||||
$_LANG['This is not a valid image file.'] = 'Ce n\'est pas une image valide.';
|
||||
$_LANG['Too long'] = 'Trop long !';
|
||||
$_LANG['Unfortunately,'] = 'Malheureusement,';
|
||||
$_LANG['Update is complete!'] = 'Mise à jour terminée !';
|
||||
$_LANG['Upgrade: get the latest stable version!'] = 'Mise à jour : installez la dernière version de PrestaShop';
|
||||
$_LANG['Verify my database settings'] = 'Tester la connexion';
|
||||
$_LANG['Verify system compatibility'] = 'Compatibilité système';
|
||||
$_LANG['WARNING: For security purposes, you must delete the "install" folder.'] = 'ATTENTION : pour plus de sécurité, merci de supprimer le dossier \'/install\'.';
|
||||
$_LANG['Warning: a manual backup is HIGHLY recommended before continuing!'] = 'Attention : une sauvegarde manuelle est INDISPENSABLE avant de procéder à la mise à jour de l\'application PrestaShop, cela afin de prévenir toute perte de données accidentelle';
|
||||
$_LANG['Welcome'] = 'Bienvenue';
|
||||
$_LANG['Welcome to the PrestaShop %s Installer'] = 'Bienvenue dans l\'installation de PrestaShop %s';
|
||||
$_LANG['When your backup is complete, please confirm that it is fully functional.'] = 'Une fois que les fichiers de l\'application et votre base de données seront sauvegardés, nous vous demanderons de le certifier. De ce fait, vous assumerez l\'entière responsabilité d\'une éventuelle perte de données liée à la mise à jour de l\'application PrestaShop.';
|
||||
$_LANG['Write permissions on folders (and subfolders):'] = 'Droits en écriture sur les dossiers (et leurs sous-dossiers) :';
|
||||
$_LANG['Write permissions on files and folders:'] = 'Droits en écriture sur les fichiers et dossiers:';
|
||||
$_LANG['Write permissions on folders:'] = 'Droits en écriture sur les dossiers';
|
||||
$_LANG['You already have the %s version.'] = 'Vous êtes déjà en possession de la version %s';
|
||||
$_LANG['You have just installed and configured PrestaShop as your online shop. We wish you all the best with the success of your online shop.'] = 'Vous venez d\'installer et de configurer votre boutique en ligne, nous vous en remercions.';
|
||||
$_LANG['You have just updated and configured PrestaShop as your online shop. We wish you all the best with the success of your online shop.'] = 'Vous venez de mettre à jour votre boutique en ligne. Nous vous en remercions.';
|
||||
$_LANG['Your installation is finished!'] = 'L\'installation est terminée !';
|
||||
$_LANG['Your update is finished!'] = 'La mise à jour est terminée';
|
||||
$_LANG['and/or'] = 'et/ou';
|
||||
$_LANG['enter@your.email'] = 'entrez@votre.email';
|
||||
$_LANG['online documentation'] = 'documentation en ligne';
|
||||
$_LANG['Currently installed version detected:'] = 'Version actuellement installée détectée :';
|
||||
$_LANG['Recommended dimensions:'] = 'Dimensions recommandées :';
|
||||
$_LANG['view the log'] = 'voir le rapport';
|
||||
$_LANG['(No previous version detected)'] = '(aucune ancienne version détectée)';
|
||||
$_LANG['Can\'t write settings file, please create a file named settings.inc.php in config directory.'] = 'Le fichier de paramètres n\'a pu être écrit, veuillez créer un fichier nommé settings.inc.php dans votre répertoire de configuration.';
|
||||
$_LANG['Cannot convert your database\'s data to UTF-8.'] = 'Impossible de convertir les données de votre base de données en UTF-8.';
|
||||
$_LANG['Your database server does not support the UTF-8 charset.'] = 'Votre serveur de base de données ne supporte pas le jeu de caractère UTF-8.';
|
||||
$_LANG['Need help?'] = 'Besoin d\'aide ?';
|
||||
$_LANG['PrestaShop tips and advice'] = 'Toutes les astuces et conseils autour de PrestaShop';
|
||||
$_LANG['Forums'] = 'Le forum';
|
||||
$_LANG['Blog'] = 'Le blog';
|
||||
$_LANG['Back Office'] = 'Back Office';
|
||||
$_LANG['Manage your store using your Back Office. Manage your orders and customers, add modules, change themes, etc.'] = 'Administrez votre boutique avec votre back office. Gérer vos commandes et vos clients, ajouter des modules, modifier votre thème, etc...';
|
||||
$_LANG['Manage your store'] = 'Gérez votre boutique';
|
||||
$_LANG['Front Office'] = 'Front Office';
|
||||
$_LANG['Discover your store as your future customers will see it!'] = 'Découvrez votre boutique telle que vos futurs clients la verront !';
|
||||
$_LANG['Discover your store'] = 'Découvrir ma boutique';
|
||||
$_LANG['Did you know?'] = 'Le saviez-vous ?';
|
||||
$_LANG['Prestashop and its community offers over 40 different languages for free download at'] = 'Prestashop et sa communauté proposent plus de 40 langues différentes en téléchargement gratuit sur';
|
||||
$_LANG['Default country:'] = 'Pays par défaut :';
|
||||
$_LANG['Shop timezone:'] = 'Fuseau horaire de la boutique :';
|
||||
$_LANG['Your configuration is valid, click \"Next\" to continue!'] = 'Votre configuration est valide, cliquez sur suivant pour continuer !';
|
||||
$_LANG['Your configuration is invalid. Please fix the issues below:'] = 'Votre configuration n\'est pas valide, merci de corriger ces problèmes :';
|
||||
$_LANG['Warning: If you check this box and your e-mail configuration is incorrect, you might not be able to continue the installation.'] = 'Cette option peut être bloquante si votre configuration e-mail est erronée, merci de la désactiver si vous ne pouvez pas passer à l\'étape suivante.';
|
||||
$_LANG['Mcrypt is available (recommended)'] = 'Mcrypt est disponible (recommandé)';
|
||||
$_LANG['Your MySQL server doesn\'t support this engine, please use another one like MyISAM'] = 'Le support de ce moteur de base de donnée n\'est pas supporté, veuillez en choisir un autre tel que MyISAM';
|
||||
$_LANG['Adult'] = 'Adulte et lingerie';
|
||||
$_LANG['Animals and Pets'] = 'Animaux';
|
||||
$_LANG['Art and Culture'] = 'Culture et divertissements';
|
||||
$_LANG['Babies'] = 'Articles pour bébé';
|
||||
$_LANG['Beauty and Personal Care'] = 'Santé et beauté';
|
||||
$_LANG['Cars'] = 'Auto et moto';
|
||||
$_LANG['Computer Hardware and Software'] = 'Informatique et logiciels';
|
||||
$_LANG['Download'] = 'Téléchargement';
|
||||
$_LANG['Fashion and accessories'] = 'Vêtements et accessoires';
|
||||
$_LANG['Flowers, Gifts and Crafts'] = 'Fleurs et cadeaux';
|
||||
$_LANG['Food and beverage'] = 'Alimentation et gastronomie';
|
||||
$_LANG['HiFi, Photo and Video'] = 'Hifi, photo et vidéos';
|
||||
$_LANG['Home and Garden'] = 'Maison et jardin';
|
||||
$_LANG['Home Appliances'] = 'Électroménager';
|
||||
$_LANG['Jewelry'] = 'Bijouterie';
|
||||
$_LANG['Mobile and Telecom'] = 'Téléphonie et communication';
|
||||
$_LANG['Services'] = 'Services';
|
||||
$_LANG['Shoes and accessories'] = 'Chaussures et accessoires';
|
||||
$_LANG['Sports and Entertainment'] = 'Sports et loisirs';
|
||||
$_LANG['Travel'] = 'Voyage et tourisme';
|
||||
$_LANG['Main activity:'] = 'Activité principale';
|
||||
$_LANG['-- Please choose your main activity --'] = '-- Choisissez une activité --';
|
||||
$_LANG['Invalid catalog mode'] = 'Champ Mode catalogue invalide';
|
||||
$_LANG['Catalog mode only:'] = 'Mode Catalogue uniquement :';
|
||||
$_LANG['Yes'] = 'Oui';
|
||||
$_LANG['No'] = 'Non';
|
||||
$_LANG['If you activate this feature, all selling features will be disabled. However, this option can be changed later in your Back Office.'] = 'Si vous activez cette option, toutes les fonctionnalités de vente vont être désactivées. Vous pouvez activer cette option plus tard dans votre back-office';
|
||||
$_LANG['Your current version is already up-to-date'] = 'la version déjà installée qui a été détectée est trop récente, aucune mise à jour disponible';
|
||||
$_LANG['This information is not required, it will only be used for statistical purposes. This information does not change anything in your store.'] = 'Cette information n\'est pas obligatoire, elle sera utilisée à des fins statistiques. Cette information ne changera rien dans votre boutique.';
|
||||
$_LANG['Invalid shop name'] = 'Nom de boutique invalide';
|
||||
$_LANG['Your firstname contains some invalid characters'] = 'Votre prénom contient des caractères invalides';
|
||||
$_LANG['Your lastname contains some invalid characters'] = 'Votre nom contient des caractères invalides';
|
||||
$_LANG['PrestaShop %s Installer'] = '';
|
||||
$_LANG['+33 (0)1.40.18.30.04'] = '+33 (0)1.40.18.30.04';
|
||||
$_LANG['(FREE)'] = '(GRATUIT)';
|
||||
$_LANG['Shop configuration'] = 'Configuration de la boutique';
|
||||
$_LANG['Database Engine:'] = 'Type de base de données :';
|
||||
$_LANG['I certify that I backed up my database and application files. I assume all responsibility for any data loss or damage related to this upgrade.'] = 'Je certifie avoir effectué une sauvegarde de ma base de données et de mes fichiers. J\'assume pleinement l\'ensemble des responsabilités liées à toute perte de données ou dommage lié à cette mise à jour.';
|
||||
$_LANG['The file /img/logo.jpg is not writable, please CHMOD 755 this file or CHMOD 777'] = 'Le fichier /img/logo.jpg n\'a pas les droits d\'écriture, merci d\'effectuer un CHMOD 755 ou 777 sur ce fichier';
|
||||
$_LANG['If you do not know how to enable it, use our turnkey solution PrestaBox at'] = 'Si vous ne savez pas comment l\'activer, utilisez notre solution PrestaBox sur';
|
||||
$_LANG['If you do not know how to fix these issues, use turnkey solution PrestaBox at'] = 'Si vous ne parvenez pas à régler ces problèmes, utilisez notre solution PrestaBox sur';
|
||||
$_LANG['Lite mode: Basic installation'] = 'Mode basique : installation simplifiée';
|
||||
$_LANG['Full mode: includes core modules,'] = 'Mode complet : inclut';
|
||||
$_LANG['100+ additional modules'] = '100 modules';
|
||||
$_LANG['and demo products'] = 'et des produits de démonstration';
|
||||
$_LANG['Installation type'] = 'Type d\'installation';
|
||||
$_LANG['Upgrade in progress'] = 'Mise à jour en cours';
|
||||
$_LANG['Current query:'] = 'Requête actuelle :';
|
||||
$_LANG['Details about this upgrade'] = 'Détails à propos de cette mise à jour';
|
||||
$_LANG['Thank you, you will be able to continue the upgrade process by clicking on the "Next" button.'] = 'Merci, vous pouvez continuer la mise à jour en cliquant sur le bouton "Suivant".';
|
||||
$_LANG['PrestaShop is upgrading your shop one version after the other, the following upgrade files will be processed:'] = 'PrestaShop met à jour votre boutique une version après l\'autre, les fichiers de mise à jour suivants vont être traités :';
|
||||
$_LANG['Upgrade file'] = 'Fichier de mise à jour';
|
||||
$_LANG['Modifications to process'] = 'Modifications à prendre en compte';
|
||||
$_LANG['(major)'] = '(majeure)';
|
||||
$_LANG['TOTAL'] = 'TOTAL';
|
||||
$_LANG['Estimated time to complete the'] = 'Temps estimé pour réaliser les';
|
||||
$_LANG['modifications:'] = 'modifications :';
|
||||
$_LANG['minutes'] = 'minutes';
|
||||
$_LANG['minute'] = 'minute';
|
||||
$_LANG['seconds'] = 'secondes';
|
||||
$_LANG['second'] = 'seconde';
|
||||
$_LANG['Depending on your server and the size of your shop'] = 'Selon la puissance de votre serveur et la taille de votre boutique...';
|
||||
$_LANG['You have not updated your shop in a while,'] = 'Vous n\'avez pas mis à jour votre boutique depuis un moment,';
|
||||
$_LANG['stable releases have been made available since.'] = 'versions majeures ont été mis à disposition depuis.';
|
||||
$_LANG['This is not a problem however the update may take several minutes, try to update your shop more frequently.'] = 'Ce n\'est pas un problème cependant la mise à jour risque de durer quelques minutes. A l\'avenir, essayez de mettre à jour votre boutique plus souvent.';
|
||||
$_LANG['No files to process, this might be an error.'] = 'Aucun fichier à traiter, il s\'agit probablement d\'une erreur';
|
||||
$_LANG['Hosting parameters'] = 'Paramètres hébergement';
|
||||
$_LANG['PrestaShop tries to automatically set the best settings for your server in order for the update to be successful.'] = 'PrestaShop essaye automatiquement de configurer pour vous les paramètres de votre serveur afin que la mise à jour se déroule correctement.';
|
||||
$_LANG['PHP parameter'] = 'Paramètre PHP';
|
||||
$_LANG['Description'] = 'Description';
|
||||
$_LANG['Current value'] = 'Valeur actuelle';
|
||||
$_LANG['Maximum allowed time for the upgrade'] = 'Temps maximum autorisé pour la mise à jour';
|
||||
$_LANG['Maximum memory allowed for the upgrade'] = 'Mémoire maximum autorisée pour la mise à jour';
|
||||
$_LANG['All your settings seem to be OK, go for it!'] = 'Tous vos paramètres semblent OK, cliquez sur suivant !';
|
||||
$_LANG['Let\'s go!'] = 'C\'est parti !';
|
||||
$_LANG['Click on the "Next" button to start the upgrade, this can take several minutes,'] = 'Cliquez sur le bouton "Suivant" pour démarrer la mise à jour, cela peut prendre plusieurs minutes,';
|
||||
$_LANG['please be patient and do not close this window.'] = 'ne fermez pas la fenêtre et soyez patient.';
|
||||
$_LANG['Your update is complete!'] = 'Votre mise à jour est terminée !';
|
||||
$_LANG['Your shop version is now'] = 'La version de votre boutique est maintenant';
|
||||
$_LANG['New features in PrestaShop v'] = 'Nouvelles fonctionnalités dans PrestaShop v';
|
||||
$_LANG['Beware, your settings look correct but are not optimal, if you encounter problems (upgrade too long, memory error...), please ask your hosting provider to increase the values of these parameters: "max_execution_time" and "memory_limit".'] = 'Attention, votre paramètres semblent corrects mais ne sont pas optimaux, si jamais vous rencontrez des soucis (mise à jour qui se bloque avant la fin, erreur de mémoire...), merci de demander à votre hébergeur d\'augmenter les valeurs de ces paramètres (max_execution_time & memory_limit).';
|
||||
$_LANG['We strongly recommend that you inform your hosting provider to modify the settings before process to the update.'] = 'Nous vous recommandons fortement de prévenir votre hébergeur avant de procéder à la mise à jour afin qu\'il modifie ces paramètres PHP.';
|
||||
$_LANG['Module compatibility'] = 'Compatibilité Modules';
|
||||
$_LANG['It\'s dangerous to keep non-native modules activated during the update. If you really want to take this risk, uncheck the following box.'] = 'Il est déconseillé de laisser les modules non natifs activés durant la mise à jour. Si vous voulez réellement prendre ce risque, décochez la case ci-dessous.';
|
||||
$_LANG['You will be able to manually reactivate them in your Back Office once the update process has succeeded.'] = 'Vous pourrez ensuite les réactiver manuellement dans le back-office, une fois le processus de mise à jour terminé.';
|
||||
$_LANG['Ok, please deactivate the following modules, I will reactivate them later:'] = 'D\'accord, désactiver automatiquement les modules suivants, je les réactiverai moi-même plus tard :';
|
||||
$_LANG['Theme compatibility'] = 'Compatibilité du thème';
|
||||
$_LANG['Before updating, you need to check that your theme is compatible with version'] = 'Avant la mise à jour, vous avez besoin de vérifier que votre thème reste compatible avec la version';
|
||||
$_LANG['of PrestaShop.'] = 'de PrestaShop';
|
||||
$_LANG['Link to the validator'] = 'Lien vers le validateur';
|
||||
$_LANG['Online Theme Validator'] = 'Validateur de Theme en ligne';
|
||||
$_LANG['If your theme is invalid, you may experience some problems in your Front Office layout, but do not panic! To resolve this, you can make it compatible by fixing the validator errors or by using a theme compatible with '] = 'Si votre thème n\'est pas valide, vous pourrez rencontrer quelques problèmes d\'affichage de votre site, mais inutile de paniquer ! Vous pouvez le rendre compatible en corrigeant les erreurs signalées par le validateur ou en utilisant un thème compatible avec la version' ;
|
||||
$_LANG['version'] = 'version';
|
||||
$_LANG['To do this, use our'] = 'Dans ce but, utilisez notre';
|
||||
$_LANG['Warning, we detected that the version specified in your config/settings.inc.php does not match your SQL database structure.<br />File config/settings.inc.php indicates: %1$s<br />Our automatic detection tool has detected version: %2$s<br /><br />You should edit your config/settings.inc.php file to replace %1$s by %2$s.<br />Failure to fix this issue before upgrading may result in severe complications.<br />Do not forget to relaunch the installer after this modification by pressing F5 on your web browser.'] = "Attention, nous avons détecté que la version spécifiée dans votre fichier config/settings.inc.php ne correspond pas à celle de la structure de votre base de donnée.<br />Le fichier config/settings.inc.php indique : %1\$s<br />Notre script de détection de version indique : %2\$s<br /><br />Vous devriez éditer votre fichier config/settings.inc.php pour remplacer %1\$s par %2\$s.<br />Ne pas résoudre ce problème risque d'entrainer de sévères complications durant la mise à jour.<br />N'oubliez pas de relancer l'installeur après ces modifications en appuyant sur F5 sur votre navigateur internet.";
|
||||
$_LANG['Warning, we detected that the version specified in your config/settings.inc.php does not match your SQL database structure.<br />File config/settings.inc.php indicates: %1$s<br />Our automatic detection tool has detected a version between %2$s and %3$s<br /><br />You should edit your config/settings.inc.php file to replace %1$s by your real shop version.<br />Failure to fix this issue before upgrading may result in severe complications.<br />Do not forget to relaunch the installer after this modification by pressing F5 on your web browser.'] = "Attention, nous avons détecté que la version spécifiée dans votre fichier config/settings.inc.php ne correspond pas à celle de la structure de votre base de donnée.<br />Le fichier config/settings.inc.php indique : %1\$s<br />Notre script de détection de version indique une version entre %2\$s et %3\$s<br /><br />Vous devriez éditer votre fichier config/settings.inc.php pour remplacer %1\$s par la vraie version de votre magasin.<br />Ne pas résoudre ce problème risque d'entrainer de sévères complications durant la mise à jour.<br />N'oubliez pas de relancer l'installeur après ces modifications en appuyant sur F5 sur votre navigateur internet.";
|
||||
$_LANG['Warning, the installer was unable to detect what is your current PrestaShop version from a database structure analysis. This means some fields or tables are missing, and upgrade is under your own risk.'] = "Attention, l'installateur n'a pas été capable de détecter votre version de PrestaShop à partir de l'analyse de votre base de donnée. Cela signifie que certains champs ou tables sont manquants. La mise à jour est à vos risques et périls.";
|
||||
$_LANG['However the installer has detected that the version stored in your configuration table is %1$s'] = "Cependant l'installeur a détecté que la version sauvée dans votre table de configuration est %1\$s";
|
||||
$_LANG['Additional Benefits'] = 'Avantages exclusifs PrestaShop';
|
||||
$_LANG['Exclusive offers dedicated to PrestaShop merchants'] = 'Offres réservées aux marchands PrestaShop';
|
||||
$_LANG['PHP magic quotes option is off (recommended)'] = 'L\'option PHP "magic quotes" est désactivée (recommandé)';
|
||||
$_LANG['Dom extension loaded'] = 'L\'extension Dom est activée';
|
||||
$_LANG['Other activity...'] = 'Autre activité..';
|
||||
$_LANG['Modules'] = 'Modules';
|
||||
$_LANG['Benefits'] = 'Avantages';
|
||||
$_LANG['Create a MySQL database using phpMyAdmin (or by asking your hosting provider)'] = 'Créer une base de données MySQL en utilisant phpMyAdmin (ou en demandant à votre hébergeur)';
|
||||
$_LANG['- or -'] = '- ou -';
|
||||
$_LANG['I want to <b>install</b> a new online shop with PrestaShop'] = 'Je souhaite <b>installer</b> une nouvelle boutique avec PrestaShop';
|
||||
$_LANG['I want to <b>update</b> my existing PrestaShop to a newer version'] = 'Je veux <b>mettre à jour</b> ma boutique PrestaShop vers une nouvelle version';
|
||||
$_LANG['Your current version is too old, updates are possible only from version'] = 'Votre version actuelle est trop ancienne, les mises à jour sont autorisées à partir de la version';
|
||||
$_LANG['and higher'] = 'et versions supérieures';
|
||||
$_LANG['PHP settings (for assistance, ask your hosting provider):'] = 'Paramètres PHP (Demandez de l\'aide à votre hébergeur si nécessaire)';
|
||||
$_LANG['Database Configuration'] = 'Configuration base de données';
|
||||
$_LANG['Database login:'] = 'Identifiant base de données';
|
||||
$_LANG['Database password:'] = 'Mot de passe base de données';
|
||||
$_LANG['Please create a MySQL database and then verify your settings below. If you need assistance, please ask your hosting provider for this information.'] = 'Merci de créer une base de données MySQL puis de saisir et vérifier les paramètres ci-dessous. Si vous avez besoin d\'aide pour ces paramètres, demandez à votre hébergeur.';
|
||||
$_LANG['No more information'] = 'Pas d\'autres informations';
|
||||
@@ -1,36 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
|
||||
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
|
||||
|
||||
header("Cache-Control: no-store, no-cache, must-revalidate");
|
||||
header("Cache-Control: post-check=0, pre-check=0", false);
|
||||
header("Pragma: no-cache");
|
||||
|
||||
header("Location: ../");
|
||||
exit;
|
||||
@@ -1,284 +0,0 @@
|
||||
<?php
|
||||
|
||||
$_LANG['Installer'] = 'Installazione';
|
||||
$_LANG['Updater'] = 'Aggiornamento';
|
||||
$_LANG['.'] = '.';
|
||||
$_LANG['A Prestashop database already exists, please drop it or change the prefix.'] = 'Esiste già un database Prestashop con questo prefisso; eliminalo oppure cambia prefisso.';
|
||||
$_LANG['A test e-mail has been sent to'] = 'E\' stata inviata una e-mail!';
|
||||
$_LANG['An error occurred while resizing the picture.'] = 'Si è verificato un errore durante il ridimensionamento dell\'immagine';
|
||||
$_LANG['An error occurred while sending email, please verify your parameters.'] = 'Si è verificato un errore durante l\'invio della e-mail, verifica i tuoi parametri.';
|
||||
$_LANG['Available shop languages'] = 'Lingue proposte';
|
||||
$_LANG['Back'] = 'Precedente';
|
||||
$_LANG['Back up your database and all application files (update only)'] = 'Fai il back up del tuo database e di tutti i tuoi file applicazione (solo in caso di aggiornamento di PrestaShop)';
|
||||
$_LANG['Please backup the database and application files.'] = 'Prima di proseguire, fai il back up dei tuoi dati. Copia tutti i file del sito in una cartella di back up, ma salva anche il tuo database. Se hai modificato manualmente il file nascosto ".htaccess" nel tuo negozio, assicurati di averlo salvato.';
|
||||
$_LANG['By default, the PHP \'mail()\' function is used (recommended)'] = 'La funzione PHP \'mail()\' viene usata di default.';
|
||||
$_LANG['Can\'t create settings file, if /config/settings.inc.php exists, please give the public write permissions to this file, otherwise please create a file named settings.inc.php in config directory.'] = 'Impossibile creare file di impostazione, se /config/settings.inc.php esiste, dai un\'autorizzazione scritta a questo file, altrimenti crea un file chiamato settings.inc.php nella directory config (/config/)';
|
||||
$_LANG['Can\'t find the sql upgrade files. Please verify that the /install/sql/upgrade folder is not empty)'] = 'Impossibile trovare i file di upgrade SQL. Verifica che la cartella /install/sql/upgrade non sia vuota.';
|
||||
$_LANG['Choose your prefered language for the installation:'] = 'In quale lingua vuoi effettuare l\'installazione?';
|
||||
$_LANG['Community Forum'] = 'il nostro forum comune';
|
||||
$_LANG['Configure SMTP manually (advanced users only)'] = 'Configura l\'invio SMTP (solo per utenti esperti)';
|
||||
$_LANG['Configure your database by filling out the following fields:'] = 'Configura il tuo database riempiendo i campi qui sotto:';
|
||||
$_LANG['Congratulations, your online shop is now ready!'] = 'Congratulazioni, il tuo negozio è installato!';
|
||||
$_LANG['Contact us!'] = 'Contattaci!';
|
||||
$_LANG['Creation of new files and folders allowed'] = 'Autorizzato a creare nuovi file e cartelle';
|
||||
$_LANG['Database server is available but database was not found'] = 'Il server del database è disponibile ma il database non è stato trovato.';
|
||||
$_LANG['Database server was not found. Please verify the login, password and server fields.'] = 'Il server del database non è stato trovato, verifica i tuoi dati o il nome del server.';
|
||||
$_LANG['Database configuration'] = 'Configurazione del database.';
|
||||
$_LANG['Database connection is available!'] = 'Il database è stato trovato!';
|
||||
$_LANG['Database is created!'] = 'Database installato!';
|
||||
$_LANG['Database name:'] = 'Nome database:';
|
||||
$_LANG['Disclaimer'] = 'Attenzione';
|
||||
$_LANG['Online documentation'] = 'documentazione Wiki';
|
||||
$_LANG['E-mail:'] = 'E-mail :';
|
||||
$_LANG['E-mail address:'] = 'Indirizzo e-mail:';
|
||||
$_LANG['E-mail configuration'] = 'Parametri invio mail';
|
||||
$_LANG['Encryption:'] = 'Criptaggio:';
|
||||
$_LANG['Error!'] = 'Errore!';
|
||||
$_LANG['Error while creating the /config/settings.inc.php file.'] = 'Errore al momento della creazione del file /config/settings.inc.php.';
|
||||
$_LANG['Error while inserting content into the database'] = 'Errore al momento dell\'inserimento nel database';
|
||||
$_LANG['Error while inserting data in the database:'] = 'Errore al momento dell\'inserimento nel database:';
|
||||
$_LANG['Error while loading sql upgrade file.'] = 'Errore al momento dell\'apertura del file SQL';
|
||||
$_LANG['Error:'] = 'Errore:';
|
||||
$_LANG['Error(s) while updating...'] = 'Errore durante l\'aggiornamento...';
|
||||
$_LANG['Failed to write file to disk'] = 'Impossibile scrivere il file sul disco';
|
||||
$_LANG['Fields are different!'] = 'I campi non corrispondono!';
|
||||
$_LANG['File upload allowed'] = 'Invio file autorizzato';
|
||||
$_LANG['File upload stopped by extension'] = 'Invio file interrotto a causa di estensione errata';
|
||||
$_LANG['First name:'] = 'Nome:';
|
||||
$_LANG['For more information, please consult our'] = 'Per maggiori informazioni consultare il nostro';
|
||||
$_LANG['GD Library installed'] = 'Libreria GD installata';
|
||||
$_LANG['GZIP compression is on (recommended)'] = 'La compressione GZIP è attiva (consigliato)';
|
||||
$_LANG['Here is your shop information. You can modify it once you are logged in.'] = 'Qui sotto i dati del tuo negozio. Puoi modificarli dopo aver effettuato il login a Back Office.';
|
||||
$_LANG['However, you must know how to do the following:'] = 'Comunque, puoi effettuare i seguenti compiti:';
|
||||
$_LANG['I agree to the above terms and conditions.'] = 'Accetto i termini e le condizioni del contratto seguente.';
|
||||
$_LANG['If you have any questions, please visit our '] = 'Per qualsiasi domanda, dai un\'occhiata a';
|
||||
$_LANG['Cannot access the a MySQL data file.'] = 'Impossibile accedere al contenuto di uno dei file *.sql.';
|
||||
$_LANG['Cannot read the content of a MySQL data file.'] = 'Impossibile leggere il contenuto di uno dei file *.sql.';
|
||||
$_LANG['Cannot send the email!'] = 'Impossibile inviare l\'e-mail!';
|
||||
$_LANG['Cannot upload the file!'] = 'Impossibile inviare il file!';
|
||||
$_LANG['Cannot write the image /img/logo.jpg. If this image already exists, please delete it.'] = 'Impossibile scrivere l\'immagine /img/logo.jpg. Se esiste già, cancellala manualmente.';
|
||||
$_LANG['Installation: Full installation of PrestaShop'] = 'Installazione completa di PrestaShop';
|
||||
$_LANG['Installation is complete!'] = 'Installazione terminata!';
|
||||
$_LANG['What do you want to do?'] = 'Metodo di installazione';
|
||||
$_LANG['Last name:'] = 'Cognome:';
|
||||
$_LANG['License Agreement'] = 'Contratto di Licenza';
|
||||
$_LANG['Login:'] = 'ID';
|
||||
$_LANG['Shop settings and merchant account information'] = 'Informazioni sul venditore';
|
||||
$_LANG['Missing a temporary folder'] = 'Manca la cartella temporanea di ricezione dell\'invio di file. Consulta il tuo amministratore.';
|
||||
$_LANG['MySQL support is on'] = 'Il supporto di MySQL è attivato';
|
||||
$_LANG['Next'] = 'Successivo';
|
||||
$_LANG['No error code available.'] = 'Errore sconosciuto';
|
||||
$_LANG['No file was uploaded.'] = 'Non è stato inviato alcun file';
|
||||
$_LANG['No upgrade is possible.'] = 'Nessun aggiornamento disponibile';
|
||||
$_LANG['None'] = 'Nessuno';
|
||||
$_LANG['PrestaShop Forums'] = 'Forum ufficiale';
|
||||
$_LANG['One or more errors have occurred, you can find more information below or in the log/installation.log file.'] = 'E\' apparso uno o più errori';
|
||||
$_LANG['Open external URLs allowed'] = 'Autorizzato ad aprire URL esterni';
|
||||
$_LANG['Optional languages'] = 'Lingue non proposte';
|
||||
$_LANG['Optional set-up'] = 'Parametri opzionali';
|
||||
$_LANG['PHP \'mail()\' function is available'] = 'La funzione PHP \'mail()\' è disponibile';
|
||||
$_LANG['PHP \'mail()\' function is unavailable'] = 'La funzione PHP \'mail()\' non è disponibile';
|
||||
$_LANG['PHP 5.0 or later installed'] = 'PHP 5.0 o superiore installato';
|
||||
$_LANG['PHP register global option is off (recommended)'] = 'Opzione globale registro PHP è disattivata (consigliato)';
|
||||
$_LANG['Password:'] = 'Password';
|
||||
$_LANG['Please allow 10-15 minutes to complete the installation process.'] = 'Il processo di installazione dovrebbe durare solo pochi minuti!';
|
||||
$_LANG['Please set a SMTP login'] = 'Inserire un identificativo SMTP';
|
||||
$_LANG['Please set a SMTP password'] = 'Inserire una password SMTP';
|
||||
$_LANG['Please set a SMTP server name'] = 'Inserire un nome di server SMTP';
|
||||
$_LANG['Please set a database login'] = 'Inserire il login SQL';
|
||||
$_LANG['Please set a database name'] = 'Inserire il nome del database.';
|
||||
$_LANG['Please set a database server name'] = 'Inserire il nome del server del database.';
|
||||
$_LANG['Port:'] = 'Porta:';
|
||||
$_LANG['PrestaShop %s Installer'] = 'Installazione di PrestaShop %s';
|
||||
$_LANG['PrestaShop is ready!'] = 'PrestaShop è pronto!';
|
||||
$_LANG['Re-type to confirm:'] = 'Conferma la password:';
|
||||
$_LANG['Ready, set, go!'] = 'PrestaShop è installato!';
|
||||
$_LANG['Receive this information by e-mail'] = 'Riceverò le mie informazioni tramite e-mail';
|
||||
$_LANG['Check my settings again'] = 'Verifica di nuovo';
|
||||
$_LANG['Required field'] = 'Campi richiesti';
|
||||
$_LANG['Required set-up. Please verify the following checklist:'] = 'Assicurati che ciascuno dei parametri seguenti siano convalidati.';
|
||||
$_LANG['SMTP connection is available!'] = 'Connessione SMTP disponibile!';
|
||||
$_LANG['SMTP connection is unavailable'] = 'Connessione SMTP non disponibile!';
|
||||
$_LANG['SMTP server:'] = 'Server SMTP :';
|
||||
$_LANG['SQL errors have occurred.'] = 'sono apparsi errori SQL.';
|
||||
$_LANG['Select the different languages available for your shop'] = 'Scegli le lingue che il tuo negozio proporrà ai clienti';
|
||||
$_LANG['Send me a test email!'] = 'Inviami una e-mail di prova!';
|
||||
$_LANG['Server:'] = 'Server :';
|
||||
$_LANG['Set permissions on folders & subfolders using an FTP client'] = 'Mettere i permessi nelle cartelle e sottocartelle tramite un cliente FTP';
|
||||
$_LANG['Shop Configuration'] = 'Configurazione negozio';
|
||||
$_LANG['Shop logo:'] = 'Logo del negozio:';
|
||||
$_LANG['Shop name:'] = 'Nome del negozio:';
|
||||
$_LANG['Shop password:'] = 'Password del negozio';
|
||||
$_LANG['Shop\'s default language'] = 'Lingua di default';
|
||||
$_LANG['Shop\'s languages'] = 'Lingue del negozio';
|
||||
$_LANG['System Compatibility'] = 'Compatibilità del sistema';
|
||||
$_LANG['System Configuration'] = 'Configurazione sistema';
|
||||
$_LANG['Tables prefix:'] = 'Prefisso tabelle';
|
||||
$_LANG['Test message - Prestashop'] = 'Installazione di Prestashop - prova del server di e-mail';
|
||||
$_LANG['The PrestaShop Installer will do most of the work for you in just a few clicks.'] = 'L\'installatore di PrestaShop eseguirà tutto in pochi click.';
|
||||
$_LANG['The config/settings.inc.php file was not found. Did you delete or rename this file?'] = 'Il file config/settings.inc.php non è stato trovato. Il file potrebbe essere stato cancellato o rinominato';
|
||||
$_LANG['The config/defines.inc.php file was not found. Where did you move it?'] = 'Il file config/defines.inc.php non è stato trovato. Cosa è successo?';
|
||||
$_LANG['The password is incorrect (alphanumeric string at least 8 characters).'] = 'La password non è corretta (stringa alfanumerica di almeno 8 caratteri)';
|
||||
$_LANG['The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form'] = 'Il file inviato supera la dimensione massima autorizzata.';
|
||||
$_LANG['The uploaded file exceeds the upload_max_filesize directive in php.ini'] = 'Il file inviato supera la dimensione massima autorizzata.';
|
||||
$_LANG['The uploaded file was only partially uploaded'] = 'Il file è stato parzialmente inviato.';
|
||||
$_LANG['There is no older version. Did you delete or rename the config/settings.inc.php file?'] = 'Nessuna versione precedente. Hai cancellato o rinominato il file settings.inc.php della cartella config ?';
|
||||
$_LANG['This PrestaShop database already exists. Please revalidate your authentication information to the database.'] = 'Questo database PrestaShop esiste già. Inserisci di nuovo i tuoi dati di login nel database.';
|
||||
$_LANG['This application needs you to activate Javascript to correctly work.'] = 'E\' richiesto JavaScript per lanciare questa applicazione.';
|
||||
$_LANG['This e-mail address is invalid!'] = 'Indirizzo errato!';
|
||||
$_LANG['This installer is too old.'] = 'Questo installatore è troppo vecchio.';
|
||||
$_LANG['This is a test message, your server is now available to send email'] = 'Questo è un messaggio di testo. Il tuo server è adesso impostato per inviare e-mail.';
|
||||
$_LANG['This is not a valid file name.'] = 'Non è un nome valido';
|
||||
$_LANG['This is not a valid image file.'] = 'Non è un\'immagine valida';
|
||||
$_LANG['Too long'] = 'Troppo lungo!';
|
||||
$_LANG['Unfortunately,'] = 'Purtroppo,';
|
||||
$_LANG['Update is complete!'] = 'Aggiornamento terminato!';
|
||||
$_LANG['Upgrade: get the latest stable version!'] = 'Aggiornamento installa l\'ultima versione di PrestaShop';
|
||||
$_LANG['Verify my database settings'] = 'Prova la connessione SQL';
|
||||
$_LANG['Verify system compatibility'] = 'Compatibilità sistema';
|
||||
$_LANG['WARNING: For security purposes, you must delete the "install" folder.'] = 'ATTENZIONE: per motivi di sicurezza, adesso devi cancellare la cartella \'install\'.';
|
||||
$_LANG['Warning: a manual backup is HIGHLY recommended before continuing!'] = 'Attenzione: E\' FONDAMENTALE un backup manuale prima di continuare l\'aggiornamento dell\'applicazione Prestashop, al fine di evitare la perdita accidentale di dati.';
|
||||
$_LANG['Welcome'] = 'Benvenuto';
|
||||
$_LANG['Welcome to the PrestaShop %s Installer'] = 'Benvenuto nell\'installazione di PrestaShop %s';
|
||||
$_LANG['When your backup is complete, please confirm that it is fully functional.'] = 'Una volta salvati i tuoi file applicazione e il database, ti chiederemo di certificarlo. Così facendo, ti assumerai tutte le responsabilità per qualsiasi perdita di dati dovuti ad un aggiornamento del software PrestaShop.';
|
||||
$_LANG['Write permissions on folders (and subfolders):'] = 'Scrivi i permessi sulle cartelle (e le loro sottocartelle):';
|
||||
$_LANG['Write permissions on files and folders:'] = 'Permessi di scrittura su file e cartelle:';
|
||||
$_LANG['Write permissions on folders:'] = 'Permessi di scrittura sulle cartelle';
|
||||
$_LANG['You already have the %s version.'] = 'Sei già in possesso della versione %s';
|
||||
$_LANG['You have just installed and configured PrestaShop as your online shop. We wish you all the best with the success of your online shop.'] = 'Hai appena installato e configurato il tuo negozio online, grazie.';
|
||||
$_LANG['You have just updated and configured PrestaShop as your online shop. We wish you all the best with the success of your online shop.'] = 'Hai appena aggiornato il tuo negozio online. Grazie.';
|
||||
$_LANG['Your installation is finished!'] = 'Installazione terminata!';
|
||||
$_LANG['Your update is finished!'] = 'Aggiornamento terminato';
|
||||
$_LANG['and/or'] = 'e/o';
|
||||
$_LANG['enter@your.email'] = 'inserisci@tua.email';
|
||||
$_LANG['online documentation'] = 'documentazione online';
|
||||
$_LANG['Currently installed version detected:'] = 'Versione attuale individuata:';
|
||||
$_LANG['Recommended dimensions:'] = 'Dimensioni suggerite:';
|
||||
$_LANG['view the log'] = 'visualizza rapporto';
|
||||
$_LANG['(No previous version detected)'] = '(nessuna versione vecchia individuata)';
|
||||
$_LANG['Can\'t write settings file, please create a file named settings.inc.php in config directory.'] = 'Il file dei parametri non è stato scritto, crea un file denominato settings.inc.php nella tua directory di configurazione.';
|
||||
$_LANG['Cannot convert your database\'s data to UTF-8.'] = 'Impossibile convertire i dati del tuo database in UTF-8.';
|
||||
$_LANG['Your database server does not support the UTF-8 charset.'] = 'Il tuo server di database non supporta il charset UTF-8.';
|
||||
$_LANG['Need help?'] = 'Hai bisogno di aiuto?';
|
||||
$_LANG['PrestaShop tips and advice'] = 'Tutte le astuzie e i consigli su PrestaShop';
|
||||
$_LANG['Forums'] = 'Il forum';
|
||||
$_LANG['Blog'] = 'Il blog';
|
||||
$_LANG['Back Office'] = 'Back Office';
|
||||
$_LANG['Manage your store using your Back Office. Manage your orders and customers, add modules, change themes, etc.'] = 'Amministra il tuo negozio con il tuo back office. Gestisci ordini e clienti, aggiungi moduli, modifica il tuo tema, etc....';
|
||||
$_LANG['Manage your store'] = 'Gestisci il tuo negozio';
|
||||
$_LANG['Front Office'] = 'Front Office';
|
||||
$_LANG['Discover your store as your future customers will see it!'] = 'Scopri il tuo negozio come lo vedranno i tuoi futuri clienti!';
|
||||
$_LANG['Discover your store'] = 'Scopri il mio negozio';
|
||||
$_LANG['Did you know?'] = 'Lo sapevi?';
|
||||
$_LANG['Prestashop and its community offers over 40 different languages for free download at'] = 'Prestashop e la sua comunità propongono più di 40 lingue diverse in download gratuito su';
|
||||
$_LANG['Default country:'] = 'Nazione di default:';
|
||||
$_LANG['Shop timezone:'] = 'Fuso orario del negozio:';
|
||||
$_LANG['Your configuration is valid, click \"Next\" to continue!'] = 'La tua configurazione è valida,<br />clicca su successivo per continuare!';
|
||||
$_LANG['Your configuration is invalid. Please fix the issues below:'] = 'La tua configurazione non è valida,<br />correggi questi problemi:';
|
||||
$_LANG['Warning: If you check this box and your e-mail configuration is incorrect, you might not be able to continue the installation.'] = 'Se la tua configurazione e-mail è errata, questa opzione può essere bloccata; disattivala se non puoi passare alla fase successiva.';
|
||||
$_LANG['Mcrypt is available (recommended)'] = 'Mcrypt è disponibile (consigliato)';
|
||||
$_LANG['Your MySQL server doesn\'t support this engine, please use another one like MyISAM'] = 'Il supporto di questo motore di database non è supportato, scegline un altro come MyISAM';
|
||||
$_LANG['Adult'] = 'Adulti e indumenti intimi';
|
||||
$_LANG['Animals and Pets'] = 'Animali';
|
||||
$_LANG['Art and Culture'] = 'Cultura e svaghi';
|
||||
$_LANG['Babies'] = 'Articoli per bambini';
|
||||
$_LANG['Beauty and Personal Care'] = 'Salute e bellezza';
|
||||
$_LANG['Cars'] = 'Auto e moto';
|
||||
$_LANG['Computer Hardware and Software'] = 'Informatica e software';
|
||||
$_LANG['Download'] = 'Download';
|
||||
$_LANG['Fashion and accessories'] = 'Abiti e accessori';
|
||||
$_LANG['Flowers, Gifts and Crafts'] = 'Fiori e regali';
|
||||
$_LANG['Food and beverage'] = 'Alimentazione e gastronomia';
|
||||
$_LANG['HiFi, Photo and Video'] = 'Hifi, foto e video';
|
||||
$_LANG['Home and Garden'] = 'Casa e giardinaggio';
|
||||
$_LANG['Home Appliances'] = 'Elettrodomestici';
|
||||
$_LANG['Jewelry'] = 'Gioielleria';
|
||||
$_LANG['Mobile and Telecom'] = 'Telefonia e comunicazioni';
|
||||
$_LANG['Services'] = 'Servizi';
|
||||
$_LANG['Shoes and accessories'] = 'Scarpe e accessori';
|
||||
$_LANG['Sports and Entertainment'] = 'Sport e divertimenti';
|
||||
$_LANG['Travel'] = 'Viaggi e turismo';
|
||||
$_LANG['Main activity:'] = 'Attività principale';
|
||||
$_LANG['-- Please choose your main activity --'] = '-- Scegli un\'attività --';
|
||||
$_LANG['Invalid catalog mode'] = 'Campo modalità catalogo non valido';
|
||||
$_LANG['Catalog mode only:'] = 'Modalità catalogo:';
|
||||
$_LANG['Yes'] = 'Sì';
|
||||
$_LANG['No'] = 'No';
|
||||
$_LANG['If you activate this feature, all purchasing will be disabled. However, you will be able to enable purchasing later in your Back Office.'] = 'Se attivi questa opzione, tutte le funzioni di acquisto saranno disattivate. Potrai attivare questa opzione più tardi nel tuo back-office';
|
||||
$_LANG['Your current version is already up-to-date'] = 'la versione già installata individuata è troppo recente, nessun aggiornamento disponibile';
|
||||
$_LANG['This information is not required, it will only be used for statistical purposes. This information does not change anything in your store.'] = 'Queste informazioni non sono obbligatorie, saranno utilizzate a fini statistici. Queste informazioni non cambieranno nulla nel tuo negozio.';
|
||||
$_LANG['If you do not know how to enable it, use our turnkey solution PrestaBox at'] = 'Se non sai come abilitarlo, usa la nostra soluzione innovativa PrestaBox su';
|
||||
$_LANG['Invalid shop name'] = 'nome negozio non valido';
|
||||
$_LANG['Your firstname contains some invalid characters'] = 'Il tuo nome contiene dei caratteri non validi';
|
||||
$_LANG['Your lastname contains some invalid characters'] = 'Il tuo cognome contiene dei caratteri non validi';
|
||||
$_LANG['The file /img/logo.jpg is not writable, please CHMOD 755 this file or CHMOD 777'] = 'Il file /img/logo.jpg non ?scrivibile, ti preghiamo di effettuare CHMOD 755 oppure CHMOD 777';
|
||||
$_LANG['If you do not know how to fix these issues, use turnkey solution PrestaBox at'] = 'Se non sai come correggere questi problemi, usa la soluzione innovativa PrestaBox su';
|
||||
$_LANG['Database Engine:'] = 'Motore database';
|
||||
$_LANG['Installation type'] = 'Tipo di installazione';
|
||||
$_LANG['Lite mode: Basic installation'] = 'Modalità semplice: installazione base';
|
||||
$_LANG['(FREE)'] = '(GRATUITO)';
|
||||
$_LANG['Full mode: includes core modules,'] = 'Modalità completa: include';
|
||||
$_LANG['100+ additional modules'] = 'Più di 100 moduli aggiuntivi';
|
||||
$_LANG['and demo products'] = 'e prodotti demo';
|
||||
$_LANG['Shop configuration'] = 'Configurazione negozio';
|
||||
$_LANG['I certify that I backed up my database and application files. I assume all responsibility for any data loss or damage related to this upgrade.'] = 'Dichiaro di aver effettuato il backup del mio database e dei file di applicazione. Mi assumo tutte le responsabilità per qualsiasi perdita dei dati o danni relativi a questo aggiornamento';
|
||||
$_LANG['Upgrade in progress'] = 'Aggiornamento in corso';
|
||||
$_LANG['Current query:'] = 'Domanda attuale';
|
||||
$_LANG['Details about this upgrade'] = 'Dettagli su questo aggiornamento';
|
||||
$_LANG['Thank you, you will be able to continue the upgrade process by clicking on the "Next" button.'] = 'Grazie, potrai continuare il processo di aggiornamento cliccando sul tasto “Successivo”.';
|
||||
$_LANG['PrestaShop is upgrading your shop one version after the other, the following upgrade files will be processed:'] = 'Prestashop sta aggiornando il tuo negozio una versione dopo l\'altra; saranno elaborati i seguenti file di aggiornamento:';
|
||||
$_LANG['Upgrade file'] = 'Aggiorna file';
|
||||
$_LANG['Modifications to process'] = 'Modifiche da elaborare';
|
||||
$_LANG['(major)'] = '(maggiore)';
|
||||
$_LANG['TOTAL'] = 'TOTALE';
|
||||
$_LANG['Estimated time to complete the'] = 'Tempo previsto per completare';
|
||||
$_LANG['modifications:'] = 'modifiche:';
|
||||
$_LANG['minutes'] = 'minuti';
|
||||
$_LANG['minute'] = 'minuto';
|
||||
$_LANG['seconds'] = 'secondi';
|
||||
$_LANG['second'] = 'secondo';
|
||||
$_LANG['Depending on your server and the size of your shop'] = 'In base al tuo server e alle dimensioni del tuo negozio';
|
||||
$_LANG['You have not updated your shop in a while,'] = 'E\' da un po\' di tempo che non aggiorni il tuo negozio';
|
||||
$_LANG['stable releases have been made available since.'] = 'Sono state messe a disposizione importanti novità';
|
||||
$_LANG['This is not a problem however the update may take several minutes, try to update your shop more frequently.'] = 'Questo non è un problema, comunque l’aggiornamento può impiegare diversi minuti: cerca di aggiornare il tuo negozio più spesso';
|
||||
$_LANG['No files to process, this might be an error.'] = 'Nessun file da elaborare, potrebbe esserci un errore';
|
||||
$_LANG['Hosting parameters'] = 'Parametri host';
|
||||
$_LANG['PrestaShop tries to automatically set the best settings for your server in order for the update to be successful.'] = 'PrestaShop cerca di impostare automaticamente le migliori configurazioni per il tuo server in modo che l’aggiornamento riesca con successo.';
|
||||
$_LANG['PHP parameter'] = 'Parametro PHP';
|
||||
$_LANG['Description'] = 'Descrizione';
|
||||
$_LANG['Current value'] = 'Valuta attuale';
|
||||
$_LANG['Maximum allowed time for the upgrade'] = 'Tempo massimo concesso per l\'aggiornamento';
|
||||
$_LANG['Maximum memory allowed for the upgrade'] = 'Memoria massima concessa per l\'aggiornamento';
|
||||
$_LANG['All your settings seem to be OK, go for it!'] = 'Tutte le impostazioni sembrano OK, procedi pure!';
|
||||
$_LANG['Beware, your settings look correct but are not optimal, if you encounter problems (upgrade too long, memory error...), please ask your hosting provider to increase the values of these parameters: "max_execution_time" and "memory_limit".'] = 'Attenzione, le tue impostazioni sembrano corrette ma non ottimali; se incontrassi dei problemi (aggiornamento troppo lungo, errore di memoria...), chiedi al tuo host di aumentare i valori di questi parametri (tempo massimo di esecuzione e limite di memoria).';
|
||||
$_LANG['We strongly recommend that you inform your hosting provider to modify the settings before process to the update.'] = 'Ti suggeriamo di informare il tuo host in modo da modificare le impostazioni prima di iniziare l’aggiornamento.';
|
||||
$_LANG['Let\'s go!'] = 'Via!';
|
||||
$_LANG['Click on the "Next" button to start the upgrade, this can take several minutes,'] = 'Clicca sul tasto “Successivo” per iniziare l’aggiornamento; potrebbero volerci alcuni minuti,';
|
||||
$_LANG['please be patient and do not close this window.'] = 'non chiudere la finestra e attendi';
|
||||
$_LANG['Your update is complete!'] = 'L\'aggiornamento è completo!';
|
||||
$_LANG['Your shop version is now'] = 'La tua versione adesso è';
|
||||
$_LANG['New features in PrestaShop v'] = 'Nuove caratteristiche in PrestaShop v';
|
||||
$_LANG['To do this, use our'] = 'A questo scopo, utilizzare il nostro';
|
||||
$_LANG['Additional Benefits'] = 'Ulteriori vantaggi';
|
||||
$_LANG['Exclusive offers dedicated to PrestaShop merchants'] = 'Offerte esclusivo dedicato ai venditori PrestaShop';
|
||||
$_LANG['PHP magic quotes option is off (recommended)'] = 'Opzione magic quotes PHP è disattivata (consigliato)';
|
||||
$_LANG['Other activity...'] = 'Altre attività ...';
|
||||
$_LANG['Modules'] = 'Moduli';
|
||||
$_LANG['Benefits'] = 'Vantaggi';
|
||||
$_LANG['Create a MySQL database using phpMyAdmin (or by asking your hosting provider)'] = '';
|
||||
$_LANG['- or -'] = '- o -';
|
||||
$_LANG['I want to <b>install</b> a new online shop with PrestaShop'] = 'Voglio <b>installare</b> un nuovo shop con PrestaShop';
|
||||
$_LANG['I want to <b>update</b> my existing PrestaShop to a newer version'] = 'Voglio <b>aggiornare</b> il mio PrestaShop esistente alla nuova versione';
|
||||
$_LANG['Your current version is too old, updates are possible only from version'] = '';
|
||||
$_LANG['and higher'] = '';
|
||||
$_LANG['PHP settings (for assistance, ask your hosting provider):'] = '';
|
||||
$_LANG['Database Configuration'] = '';
|
||||
$_LANG['Database login:'] = '';
|
||||
$_LANG['Database password:'] = '';
|
||||
$_LANG['Please create a MySQL database and then verify your settings below. If you need assistance, please ask your hosting provider for this information.'] = '';
|
||||
$_LANG['Ok, please deactivate the following modules, I will reactivate them later:'] = '';
|
||||
$_LANG['You will be able to manually reactivate them in your Back Office once the update process has succeeded.'] = '';
|
||||
$_LANG['No more information'] = '';
|
||||
$_LANG['If your theme is not valid, you may experience some problems in your front-office aspect, but don\'t panic ! To solve this, you can make it compatible by correcting the validators errors or by using a theme compatible with '] = '';
|
||||
$_LANG['-- Select your country --'] = '-- scegliere il paese --';
|
||||
$_LANG['-- Select your timezone --'] = '-- Scegli il fuso orario --';
|
||||
@@ -1,52 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<languages>
|
||||
<lang id="0" label="English" trad_file="/../langs/us.php">
|
||||
<flags>
|
||||
<url>../img/l/1.jpg</url>
|
||||
</flags>
|
||||
<isos>
|
||||
<iso>en-us</iso>
|
||||
</isos>
|
||||
<idLangPS>en</idLangPS>
|
||||
</lang>
|
||||
<lang id="1" label="Français (French)" trad_file="/../langs/fr.php" >
|
||||
<flags>
|
||||
<url>../img/l/2.jpg</url>
|
||||
</flags>
|
||||
<isos>
|
||||
<iso>fr-fr</iso>
|
||||
<iso>fr</iso>
|
||||
</isos>
|
||||
<idLangPS>fr</idLangPS>
|
||||
</lang>
|
||||
<lang id="2" label="Español (Spanish)" trad_file="/../langs/es.php" >
|
||||
<flags>
|
||||
<url>../img/l/3.jpg</url>
|
||||
</flags>
|
||||
<isos>
|
||||
<iso>es-es</iso>
|
||||
<iso>es</iso>
|
||||
</isos>
|
||||
<idLangPS>es</idLangPS>
|
||||
</lang>
|
||||
<lang id="3" label="Deutsch (German)" trad_file="/../langs/de.php" >
|
||||
<flags>
|
||||
<url>../img/l/4.jpg</url>
|
||||
</flags>
|
||||
<isos>
|
||||
<iso>de-de</iso>
|
||||
<iso>de</iso>
|
||||
</isos>
|
||||
<idLangPS>de</idLangPS>
|
||||
</lang>
|
||||
<lang id="4" label="Italiano (Italian)" trad_file="/../langs/it.php" >
|
||||
<flags>
|
||||
<url>../img/l/5.jpg</url>
|
||||
</flags>
|
||||
<isos>
|
||||
<iso>it-it</iso>
|
||||
<iso>it</iso>
|
||||
</isos>
|
||||
<idLangPS>it</idLangPS>
|
||||
</lang>
|
||||
</languages>
|
||||
@@ -1,76 +0,0 @@
|
||||
<?php
|
||||
|
||||
$_LANG['Installer'] = 'Installer';
|
||||
$_LANG['Updater'] = 'Updater';
|
||||
$_LANG['A mail has been sended!'] = 'A mail has been sent';
|
||||
$_LANG['An error occurred while sending mail, please verify your parameters.'] = 'An error occurred while sending mail. Please verify your parameters.';
|
||||
$_LANG['And now, discover your new store and Back Office'] = 'Take me to my new Front Office (online store) or Back Office (admin tool)';
|
||||
$_LANG['Can\'t find the sql upgrade files. Please verify that the /install/sql/upgrade folder is not empty)'] = 'Can\'t find the SQL upgrade files. Please verify that the /install/sql/upgrade folder is not empty.';
|
||||
$_LANG['Can\'t create settings file, if /config/settings.inc.php exists, please give the public write permissions to this file, else please create a file named settings.inc.php in config directory.'] = 'Can\'t create settings file, if /config/settings.inc.php exists, please give the public write permissions to this file, else please create a file named settings.inc.php in config directory.';
|
||||
$_LANG['Congratulation, your online shop is now ready!'] = 'Congratulations, your online store is now ready to open!';
|
||||
$_LANG['Create new files and folders allowed'] = 'Allowed to create new files and folders';
|
||||
$_LANG['Database Server is not found. Please verify the login, password and server fields.'] = 'Database server was not found. Please verify the login, password, and database server name fields.';
|
||||
$_LANG['Database connection is available!'] = 'Database is connected.';
|
||||
$_LANG['Database is created!'] = 'Database has been created.';
|
||||
$_LANG['Enter the url to enter into the Back Office'] = 'Add the directory name of the Back Office to your shop\'s URL';
|
||||
$_LANG['Error while loading sql upgrade file.'] = 'Error while loading SQL upgrade file';
|
||||
$_LANG['Fields are different!'] = 'Fields don\'t match';
|
||||
$_LANG['File upload allowed'] = 'Allowed to upload files';
|
||||
$_LANG['GD Library installed'] = 'GD Library is installed';
|
||||
$_LANG['GZIP compression is on (recommended)'] = 'GZIP compression is on (recommended)';
|
||||
$_LANG['Here are your shop information. You can modify them once logged in.'] = 'Below are your shop details. You can modify these after logging in to the Back Office.';
|
||||
$_LANG['Impossible the access the a MySQL content file.'] = 'Unable to access the MySQL content file.';
|
||||
$_LANG['Impossible to read the content of a MySQL content file.'] = 'Unable to read the content an MySQL content file.';
|
||||
$_LANG['Impossible to send the mail!'] = 'Unable to send the e-mail.';
|
||||
$_LANG['Impossible to upload the file!'] = 'Unable to upload file.';
|
||||
$_LANG['Your Back Office'] = 'Your Back Office';
|
||||
$_LANG['Your shop'] = 'Your Front Office';
|
||||
$_LANG['No upgrade is possible.'] = 'No update available';
|
||||
$_LANG['One or more errors have occurred...'] = 'One or more errors have occurred';
|
||||
$_LANG['Open external URLs allowed'] = 'Allowed to open external URLs';
|
||||
$_LANG['PHP register global option is off (recommended)'] = 'PHP register global option is off (recommended)';
|
||||
$_LANG['Password:'] = 'Password:';
|
||||
$_LANG['Please set a SMTP login'] = 'Please enter the SMTP login';
|
||||
$_LANG['Please set a SMTP password'] = 'Please enter the SMTP password';
|
||||
$_LANG['Please set a SMTP server name'] = 'Please enter the SMTP server name';
|
||||
$_LANG['Please set a database login'] = 'Please enter the database login';
|
||||
$_LANG['Please set a database name'] = 'Please enter the database name';
|
||||
$_LANG['Please set a database server name'] = 'Please enter the database server name';
|
||||
$_LANG['PrestaShop '.INSTALL_VERSION.' Installer'] = 'PrestaShop™ v'.INSTALL_VERSION.' Installer';
|
||||
$_LANG['PrestaShop is ready!'] = 'Congratulations!';
|
||||
$_LANG['Required set-up. Please make sure the following checklist items are true.'] = 'The following settings are required. Please make sure the following checklist items are true.';
|
||||
$_LANG['SMTP connection is available!'] = 'SMTP connection successful';
|
||||
$_LANG['SMTP connection is unavailable'] = 'SMTP connection not successful';
|
||||
$_LANG['Select the different languages available for your shop'] = 'Add languages available to shop visitors';
|
||||
$_LANG['Send me a test email!'] = 'Send me a test e-mail';
|
||||
$_LANG['Server:'] = 'Database server name:';
|
||||
$_LANG['Shop\'s default language'] = 'Your shop\'s default language';
|
||||
$_LANG['Shop\'s languages'] = 'Shop languages';
|
||||
$_LANG['Surname'] = 'Last Name';
|
||||
$_LANG['Tables prefix:'] = 'PrestaShop database tables prefix:';
|
||||
$_LANG['Test message - Prestashop'] = 'Test message from PrestaShop';
|
||||
$_LANG['The config/settings.inc.php file was not found. Did you delete or rename this file?'] = 'The config/settings.inc.php file was not found. The file may have been deleted or renamed.';
|
||||
$_LANG['The password is incorrect (alphanumeric string at least 8 characters).'] = 'Password is incorrect (alphanumeric string at least 8 characters).';
|
||||
$_LANG['This PrestaShop database already exists. Please revalidate your authentication informations to the database.'] = 'This PrestaShop database already exists. Please re-enter your database login information.';
|
||||
$_LANG['This email adress is wrong!'] = 'Invalid e-mail address';
|
||||
$_LANG['This installer is too old.'] = 'This installer is for an older version of PrestaShop';
|
||||
$_LANG['This is a test message, your server is now available to send mail'] = 'This is a test message. Your server is now set up to send e-mail.';
|
||||
$_LANG['This is not a valid file name.'] = 'Invalid file name';
|
||||
$_LANG['This is not a valid image file.'] = 'Invalid image file';
|
||||
$_LANG['Upgrade: get the latest stable version!'] = 'Update: Get the latest stable version';
|
||||
$_LANG['Verify system compatibility'] = 'System Compatibility';
|
||||
$_LANG['Warning: a manual backup is HIGHLY recommended before continuing!'] = 'WARNING! A manual backup is HIGHLY recommended before continuing.';
|
||||
$_LANG['Welcome'] = 'Welcome!';
|
||||
$_LANG['Welcome to the PrestaShop '.INSTALL_VERSION.' Installer.'] = 'Welcome to the PrestaShop™ v'.INSTALL_VERSION.' Installer wizard.';
|
||||
$_LANG['When your files and database are saving in an other support, please certify that your shop is really backed up.'] = 'Once your application files and database have been saved, we ask you to certify it. By doing so, you assume all responsability for any data loss due to an update of PrestaShop software.';
|
||||
$_LANG['Write permissions on folders (and subfolders):'] = 'Write permissions on folders and subfolders/recursively:';
|
||||
$_LANG['Write permissions on folders:'] = 'Write permissions on folders (do not apply recursively/to subfolders):';
|
||||
$_LANG['You already have the '.INSTALL_VERSION.' version.'] = 'Version v'.INSTALL_VERSION.' is already installed.';
|
||||
$_LANG['Your installation is finished!'] = 'Installation is complete!';
|
||||
$_LANG['Your update is finished!'] = 'Update is finished!';
|
||||
$_LANG['view the log'] = 'View the log';
|
||||
$_LANG['the already installed version detected is too old, no more update available'] = 'The existing installation of PrestaShop is outdated. No updates are available';
|
||||
$_LANG['Reunion'] = 'Réunion';
|
||||
$_LANG['Saint Barthelemy'] = 'Saint Barthélemy';
|
||||
$_LANG['Sao Tome and Principe'] = 'São Tomé and Príncipe';
|
||||
$_LANG['Aland Islands'] = 'Åland Islands';
|
||||
@@ -1,118 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 7520 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
@set_time_limit(0);
|
||||
@ini_set('max_execution_time', '0');
|
||||
|
||||
define('INSTALL_PATH', dirname(__FILE__));
|
||||
require(dirname(__FILE__).'/../config/autoload.php');
|
||||
|
||||
if (file_exists(INSTALL_PATH.'/../config/settings.inc.php'))
|
||||
{
|
||||
// We don't include this file to avoid a conflict with a new install
|
||||
$content = file_get_contents(INSTALL_PATH.'/../config/settings.inc.php');
|
||||
if (preg_match('#define\(\'_PS_VERSION_\',\s*\'([0-9\.]+)\'\);#', $content, $m))
|
||||
{
|
||||
$oldversion = $m[1];
|
||||
if (version_compare($oldversion, '1.5.0.0', '<') == 1)
|
||||
{
|
||||
include(INSTALL_PATH.'/classes/Module.php');
|
||||
include(INSTALL_PATH.'/classes/Language.php');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// setting the memory limit to 128M only if current is lower
|
||||
$memory_limit = ini_get('memory_limit');
|
||||
if ( substr($memory_limit,-1) != 'G'
|
||||
AND ((substr($memory_limit,-1) == 'M' AND substr($memory_limit,0,-1) < 128)
|
||||
OR is_numeric($memory_limit) AND (intval($memory_limit) < 131072))
|
||||
){
|
||||
@ini_set('memory_limit','128M');
|
||||
}
|
||||
require_once(dirname(__FILE__).'/../config/autoload.php');
|
||||
|
||||
/* Redefine REQUEST_URI if empty (on some webservers...) */
|
||||
if (!isset($_SERVER['REQUEST_URI']) || $_SERVER['REQUEST_URI'] == '')
|
||||
$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];
|
||||
if ($tmp = strpos($_SERVER['REQUEST_URI'], '?'))
|
||||
$_SERVER['REQUEST_URI'] = substr($_SERVER['REQUEST_URI'], 0, $tmp);
|
||||
$_SERVER['REQUEST_URI'] = str_replace('//', '/', $_SERVER['REQUEST_URI']);
|
||||
|
||||
define('INSTALL_VERSION', '1.5.0.4');
|
||||
define('PS_INSTALLATION_IN_PROGRESS', true);
|
||||
require_once(INSTALL_PATH.'/classes/ToolsInstall.php');
|
||||
define('SETTINGS_FILE', INSTALL_PATH.'/../config/settings.inc.php');
|
||||
define('DEFINES_FILE', INSTALL_PATH.'/../config/defines.inc.php');
|
||||
define('INSTALLER__PS_BASE_URI', substr($_SERVER['REQUEST_URI'], 0, -1 * (strlen($_SERVER['REQUEST_URI']) - strrpos($_SERVER['REQUEST_URI'], '/')) - strlen(substr(dirname($_SERVER['REQUEST_URI']), strrpos(dirname($_SERVER['REQUEST_URI']), '/')+1))));
|
||||
define('INSTALLER__PS_BASE_URI_ABSOLUTE', 'http://'.ToolsInstall::getHttpHost(false, true).INSTALLER__PS_BASE_URI);
|
||||
|
||||
// XML Header
|
||||
header('Content-Type: text/xml');
|
||||
|
||||
// Switching method
|
||||
if (isset($_GET['method']))
|
||||
{
|
||||
if (in_array($_GET['method'], array('doUpgrade', 'createDB', 'checkShopInfos')))
|
||||
{
|
||||
global $logger;
|
||||
$logger = new FileLogger();
|
||||
$logger->setFilename(dirname(__FILE__).'/../log/'.@date('Ymd').'_installation.log');
|
||||
}
|
||||
switch ($_GET['method'])
|
||||
{
|
||||
case 'checkConfig' :
|
||||
define('_PS_ROOT_DIR_', realpath(INSTALL_PATH.'/../'));
|
||||
require_once('xml/checkConfig.php');
|
||||
break;
|
||||
|
||||
case 'checkDB' :
|
||||
require_once('xml/checkDB.php');
|
||||
break;
|
||||
|
||||
case 'createDB' :
|
||||
require_once('xml/createDB.php');
|
||||
break;
|
||||
|
||||
case 'checkMail' :
|
||||
require_once('xml/checkMail.php');
|
||||
break;
|
||||
|
||||
case 'checkShopInfos' :
|
||||
require_once('xml/checkShopInfos.php');
|
||||
break;
|
||||
|
||||
case 'doUpgrade' :
|
||||
require_once('xml/doUpgrade.php');
|
||||
break;
|
||||
|
||||
case 'getVersionFromDb' :
|
||||
require_once('xml/getVersionFromDb.php');
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
function moduleReinstaller($moduleName, $force = false)
|
||||
{
|
||||
$module = Module::getInstanceByName($moduleName);
|
||||
if (!is_object($module))
|
||||
die(Tools::displayError());
|
||||
if ($module->id AND ($module->uninstall() OR $force))
|
||||
return $module->install();
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
function add_accounting_tab()
|
||||
{
|
||||
$id_parent = add_new_tab(
|
||||
'AdminAccounting',
|
||||
'en:Accounting|fr:Comptabilité|es:Accounting|de:Accounting|it:Accounting',
|
||||
0,
|
||||
true);
|
||||
|
||||
add_new_tab(
|
||||
'AdminAccountingManagement',
|
||||
'en:Account Number Management|fr:Gestion des numéros de comptes|es:Account Number Management|de:Account Number Management|it:Account Number Management',
|
||||
$id_parent);
|
||||
|
||||
add_new_tab(
|
||||
'AdminAccountingExport',
|
||||
'en:Export|fr:Export|es:Export|de:Export|it:Export',
|
||||
$id_parent);
|
||||
}
|
||||
@@ -1,51 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
function add_attribute_position()
|
||||
{
|
||||
$groups = Db::getInstance()->executeS('
|
||||
SELECT DISTINCT `id_attribute_group`
|
||||
FROM `'._DB_PREFIX_.'attribute`');
|
||||
if (count($groups) && is_array($groups))
|
||||
foreach ($groups as $group)
|
||||
{
|
||||
$attributes = Db::getInstance()->executeS('
|
||||
SELECT *
|
||||
FROM `'._DB_PREFIX_.'attribute`
|
||||
WHERE `id_attribute_group` = '. (int)($group['id_attribute_group']));
|
||||
$i = 0;
|
||||
if (count($attributes) && is_array($attributes))
|
||||
foreach ($attributes as $attribute)
|
||||
{
|
||||
Db::getInstance()->execute('
|
||||
UPDATE `'._DB_PREFIX_.'attribute`
|
||||
SET `position` = '.$i++.'
|
||||
WHERE `id_attribute` = '.(int)$attribute['id_attribute'].'
|
||||
AND `id_attribute_group` = '.(int)$attribute['id_attribute_group']);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
function add_carrier_position()
|
||||
{
|
||||
$carriers = Db::getInstance()->executeS('
|
||||
SELECT `id_carrier`
|
||||
FROM `'._DB_PREFIX_.'carrier`
|
||||
WHERE `deleted` = 0');
|
||||
if (count($carriers) && is_array($carriers))
|
||||
{
|
||||
$i = 0;
|
||||
foreach ($carriers as $carrier)
|
||||
{
|
||||
Db::getInstance()->execute('
|
||||
UPDATE `'._DB_PREFIX_.'carrier`
|
||||
SET `position` = '.$i++.'
|
||||
WHERE `id_carrier` = '.(int)$carrier['id_carrier']);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 10056 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
function add_default_restrictions_modules_groups()
|
||||
{
|
||||
$groups = Db::getInstance()->executeS('
|
||||
SELECT `id_group`
|
||||
FROM `'._DB_PREFIX_.'group`');
|
||||
$modules = Db::getInstance()->executeS('
|
||||
SELECT m.*
|
||||
FROM `'._DB_PREFIX_.'module` m');
|
||||
$shops = Db::getInstance()->executeS('
|
||||
SELECT `id_shop`
|
||||
FROM `'._DB_PREFIX_.'shop`');
|
||||
foreach ($groups as $group)
|
||||
{
|
||||
if (!is_array($modules))
|
||||
return false;
|
||||
else
|
||||
{
|
||||
$sql = 'INSERT INTO `'._DB_PREFIX_.'module_group` (`id_module`, `id_shop`, `id_group`) VALUES ';
|
||||
foreach ($modules as $mod)
|
||||
foreach ($shops as $s)
|
||||
$sql .= '("'.(int)$mod['id_module'].'", "'.(int)$s.'", "'.(int)$group['id_group'].'"),';
|
||||
// removing last comma to avoid SQL error
|
||||
$sql = substr($sql, 0, strlen($sql) - 1);
|
||||
Db::getInstance()->execute($sql);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
function add_feature_position()
|
||||
{
|
||||
$features = Db::getInstance()->executeS('
|
||||
SELECT `id_feature`
|
||||
FROM `'._DB_PREFIX_.'feature`');
|
||||
$i = 0;
|
||||
if (sizeof($features) && is_array($features))
|
||||
foreach ($features as $feature)
|
||||
{
|
||||
Db::getInstance()->execute('
|
||||
UPDATE `'._DB_PREFIX_.'feature`
|
||||
SET `position` = '.$i++.'
|
||||
WHERE `id_feature` = '.(int)$feature['id_feature']);
|
||||
}
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
function add_group_attribute_position()
|
||||
{
|
||||
$groups = Db::getInstance()->executeS('
|
||||
SELECT *
|
||||
FROM `'._DB_PREFIX_.'attribute_group`');
|
||||
$i = 0;
|
||||
if (sizeof($groups) && is_array($groups))
|
||||
foreach ($groups as $group)
|
||||
{
|
||||
Db::getInstance()->execute('
|
||||
UPDATE `'._DB_PREFIX_.'attribute_group`
|
||||
SET `position` = '.$i++.'
|
||||
WHERE `id_attribute_group` = '.(int)$group['id_attribute_group']);
|
||||
}
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
function add_missing_rewrite_value()
|
||||
{
|
||||
$pages = Db::getInstance()->executeS('
|
||||
SELECT *
|
||||
FROM `'._DB_PREFIX_.'meta` m
|
||||
LEFT JOIN `'._DB_PREFIX_.'meta_lang` ml ON (m.`id_meta` = ml.`id_meta`)
|
||||
WHERE ml.`url_rewrite` = \'\'
|
||||
AND m.`page` != "index"
|
||||
');
|
||||
if (sizeof($pages) && is_array($pages))
|
||||
foreach ($pages as $page)
|
||||
{
|
||||
Db::getInstance()->execute('
|
||||
UPDATE `'._DB_PREFIX_.'meta_lang`
|
||||
SET `url_rewrite` = "'.pSQL(Tools::str2url($page['title'])).'"
|
||||
WHERE `id_meta` = '.(int)$page['id_meta'].'
|
||||
AND `id_lang` = '.(int)$page['id_lang']);
|
||||
}
|
||||
}
|
||||
@@ -1,58 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
function add_module_to_hook($module_name, $hook_name)
|
||||
{
|
||||
$result = false;
|
||||
|
||||
$id_module = Db::getInstance()->getValue('
|
||||
SELECT `id_module` FROM `'._DB_PREFIX_.'module`
|
||||
WHERE `name` = \''.pSQL($module_name).'\''
|
||||
);
|
||||
|
||||
if ((int)$id_module > 0)
|
||||
{
|
||||
$id_hook = Db::getInstance()->getValue('
|
||||
SELECT `id_hook` FROM `'._DB_PREFIX_.'hook` WHERE `name` = \''.pSQL($hook_name).'\'
|
||||
');
|
||||
|
||||
if ((int)$id_hook > 0)
|
||||
{
|
||||
$result = Db::getInstance()->execute('
|
||||
INSERT IGNORE INTO `'._DB_PREFIX_.'hook_module` (`id_module`, `id_hook`, `position`)
|
||||
VALUES (
|
||||
'.(int)$id_module.',
|
||||
'.(int)$id_hook.',
|
||||
(SELECT IFNULL(
|
||||
(SELECT max_position from (SELECT MAX(position)+1 as max_position FROM `'._DB_PREFIX_.'hook_module` WHERE `id_hook` = '.(int)$id_hook.') AS max_position), 1))
|
||||
)');
|
||||
}
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
@@ -1,50 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
function add_new_groups($french, $standard)
|
||||
{
|
||||
Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'group` (`id_group`, `date_add`, `date_upd`) VALUES (NULL, NOW(), NOW())');
|
||||
$last_id = Db::getInstance()->Insert_ID();
|
||||
|
||||
$languages = Db::getInstance()->executeS('SELECT id_lang, iso_code FROM `'._DB_PREFIX_.'lang`');
|
||||
|
||||
$sql = '';
|
||||
foreach ($languages as $lang)
|
||||
if (strtolower($lang['iso_code']) == 'fr')
|
||||
$sql .= '('.(int)$last_id.', '.(int)$lang['id_lang'].', "'.pSQL($french).'"),';
|
||||
else
|
||||
$sql .= '('.(int)$last_id.', '.(int)$lang['id_lang'].', "'.pSQL($standard).'"),';
|
||||
$sql = substr($sql, 0, strlen($sql) - 1);
|
||||
Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'group_lang` (`id_group`, `id_lang`, `name`) VALUES '.$sql);
|
||||
// we add the different id_group in the configuration
|
||||
if (strtolower($standard) == 'unidentified')
|
||||
Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'configuration` (`id_configuration`, `name`, `value`, `date_add`, `date_upd`) VALUES (NULL, "PS_UNIDENTIFIED_GROUP", "'.(int)$last_id.'", NOW(), NOW())');
|
||||
else if (strtolower($standard) == 'guest')
|
||||
Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'configuration` (`id_configuration`, `name`, `value`, `date_add`, `date_upd`) VALUES (NULL, "PS_GUEST_GROUP", "'.(int)$last_id.'", NOW(), NOW())');
|
||||
else if (strtolower($standard) == 'test')
|
||||
Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'configuration` (`id_configuration`, `name`, `value`, `date_add`, `date_upd`) VALUES (NULL, "PS_TEST", "'.(int)$last_id.'", NOW(), NOW())');
|
||||
}
|
||||
@@ -1,66 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 7450 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
function add_new_tab($className, $name, $id_parent, $returnId = false)
|
||||
{
|
||||
$array = array();
|
||||
foreach (explode('|', $name) AS $item)
|
||||
{
|
||||
$temp = explode(':', $item);
|
||||
$array[$temp[0]] = $temp[1];
|
||||
}
|
||||
|
||||
if (!(int)Db::getInstance()->getValue('SELECT count(id_tab) FROM `'._DB_PREFIX_.'tab` WHERE `class_name` = \''.pSQL($className).'\' '))
|
||||
Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'tab` (`id_parent`, `class_name`, `module`, `position`) VALUES ('.(int)$id_parent.', \''.pSQL($className).'\', \'\',
|
||||
(SELECT IFNULL(MAX(t.position),0)+ 1 FROM `'._DB_PREFIX_.'tab` t WHERE t.id_parent = '.(int)$id_parent.'))');
|
||||
|
||||
$languages = Db::getInstance()->executeS('SELECT id_lang, iso_code FROM `'._DB_PREFIX_.'lang`');
|
||||
foreach ($languages AS $lang)
|
||||
{
|
||||
Db::getInstance()->execute('
|
||||
INSERT IGNORE INTO `'._DB_PREFIX_.'tab_lang` (`id_lang`, `id_tab`, `name`)
|
||||
VALUES ('.(int)$lang['id_lang'].', (
|
||||
SELECT `id_tab`
|
||||
FROM `'._DB_PREFIX_.'tab`
|
||||
WHERE `class_name` = \''.pSQL($className).'\' LIMIT 0,1
|
||||
), \''.pSQL(isset($array[$lang['iso_code']]) ? $array[$lang['iso_code']] : $array['en']).'\')
|
||||
');
|
||||
}
|
||||
|
||||
Db::getInstance()->execute('INSERT IGNORE INTO `'._DB_PREFIX_.'access` (`id_profile`, `id_tab`, `view`, `add`, `edit`, `delete`)
|
||||
(SELECT `id_profile`, (
|
||||
SELECT `id_tab`
|
||||
FROM `'._DB_PREFIX_.'tab`
|
||||
WHERE `class_name` = \''.pSQL($className).'\' LIMIT 0,1
|
||||
), 1, 1, 1, 1 FROM `'._DB_PREFIX_.'profile` )');
|
||||
|
||||
if($returnId) {
|
||||
return (int)Db::getInstance()->getValue('SELECT `id_tab`
|
||||
FROM `'._DB_PREFIX_.'tab`
|
||||
WHERE `class_name` = \''.pSQL($className).'\'');
|
||||
}
|
||||
}
|
||||
@@ -1,63 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
function add_order_state($conf_name, $name, $invoice, $send_email, $color, $unremovable, $logable, $delivery, $template = null)
|
||||
{
|
||||
$name_lang = array();
|
||||
$template_lang = array();
|
||||
foreach (explode('|', $name) AS $item)
|
||||
{
|
||||
$temp = explode(':', $item);
|
||||
$name_lang[$temp[0]] = $temp[1];
|
||||
}
|
||||
|
||||
if ($template)
|
||||
foreach (explode('|', $template) AS $item)
|
||||
{
|
||||
$temp = explode(':', $item);
|
||||
$template_lang[$temp[0]] = $temp[1];
|
||||
}
|
||||
|
||||
Db::getInstance()->execute('
|
||||
INSERT INTO `'._DB_PREFIX_.'order_state` (`invoice`, `send_email`, `color`, `unremovable`, `logable`, `delivery`)
|
||||
VALUES ('.(int)$invoice.', '.(int)$send_email.', \''.pSQL($color).'\', '.(int)$unremovable.', '.(int)$logable.', '.(int)$delivery.')');
|
||||
|
||||
$id_order_state = Db::getInstance()->getValue('
|
||||
SELECT MAX(`id_order_state`)
|
||||
FROM `'._DB_PREFIX_.'order_state`
|
||||
');
|
||||
|
||||
foreach (Language::getLanguages() AS $lang)
|
||||
{
|
||||
Db::getInstance()->execute('
|
||||
INSERT IGNORE INTO `'._DB_PREFIX_.'order_state_lang` (`id_lang`, `id_order_state`, `name`, `template`)
|
||||
VALUES ('.(int)$lang['id_lang'].', '.(int)$id_order_state.', \''.pSQL(isset($name_lang[$lang['iso_code']]) ? $name_lang[$lang['iso_code']] : $name_lang['en']).'\', \''.pSQL(isset($template_lang[$lang['iso_code']]) ? $template_lang[$lang['iso_code']] : (isset($template_lang['en']) ? $template_lang['en'] : '')).'\')
|
||||
');
|
||||
}
|
||||
|
||||
Configuration::updateValue($conf_name, $id_order_state);
|
||||
}
|
||||
@@ -1,80 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 7387 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
require_once(_PS_INSTALLER_PHP_UPGRADE_DIR_.'add_new_tab.php');
|
||||
|
||||
function add_stock_tab()
|
||||
{
|
||||
// Patch for the 1.0.1 sql update
|
||||
Db::getInstance()->query('
|
||||
DELETE
|
||||
FROM `'._DB_PREFIX_.'tab`
|
||||
WHERE id_parent = 1
|
||||
AND class_name = "AdminStocks"');
|
||||
|
||||
// Create new tabs
|
||||
$id_parent = add_new_tab(
|
||||
'AdminStock',
|
||||
'en:Stock|fr:Stock|es:Stock|de:Stock|it:Stock',
|
||||
0,
|
||||
true);
|
||||
|
||||
add_new_tab(
|
||||
'AdminWarehouses',
|
||||
'en:Warehouses|fr:Entrepôts|es:Warehouses|de:Warehouses|it:Warehouses',
|
||||
$id_parent);
|
||||
|
||||
add_new_tab(
|
||||
'AdminStockManagement',
|
||||
'en:Stock Management|fr:Gestion du stock|es:Stock Management|de:Stock Management|it:Stock Management',
|
||||
$id_parent);
|
||||
|
||||
add_new_tab(
|
||||
'AdminStockMvt',
|
||||
'en:Stock Movement|fr:Mouvements de Stock|es:Stock Movement|de:Stock Movement|it:Stock Movement',
|
||||
$id_parent);
|
||||
|
||||
add_new_tab(
|
||||
'AdminStockInstantState',
|
||||
'en:Stock instant state|fr:Etat instantané du stock|es:Stock instant state|de:Stock instant state|it:Stock instant state',
|
||||
$id_parent);
|
||||
|
||||
add_new_tab(
|
||||
'AdminStockCover',
|
||||
'en:Stock cover|fr:Couverture du stock|es:Stock cover|de:Stock cover|it:Stock cover',
|
||||
$id_parent);
|
||||
|
||||
add_new_tab(
|
||||
'AdminSupplyOrders',
|
||||
'en:Supply orders|fr:Commandes fournisseurs|es:Supply orders|de:Supply orders|it:Supply orders',
|
||||
$id_parent);
|
||||
|
||||
add_new_tab(
|
||||
'AdminStockConfiguration',
|
||||
'en:Configuration|fr:Configuration|es:Configuration|de:Configuration|it:Configuration',
|
||||
$id_parent);
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
function alter_blocklink()
|
||||
{
|
||||
// No one will know if the table does not exist :] Thanks Damien for your solution ;)
|
||||
DB::getInstance()->Execute('ALTER TABLE `'._DB_PREFIX_.'blocklink_lang` CHANGE `id_link` `id_blocklink` INT( 10 ) UNSIGNED NOT NULL');
|
||||
|
||||
DB::getInstance()->Execute('ALTER TABLE `'._DB_PREFIX_.'blocklink` CHANGE `id_link` `id_blocklink` INT( 10 ) UNSIGNED NOT NULL');
|
||||
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
function alter_cms_block()
|
||||
{
|
||||
// No one will know if the table does not exist :] Thanks Damien for your solution ;)
|
||||
DB::getInstance()->Execute('ALTER TABLE `'._DB_PREFIX_.'cms_block_lang` CHANGE `id_block_cms` `id_cms_block` INT( 10 ) UNSIGNED NOT NULL');
|
||||
|
||||
DB::getInstance()->Execute('ALTER TABLE `'._DB_PREFIX_.'cms_block` CHANGE `id_block_cms` `id_cms_block` INT( 10 ) UNSIGNED NOT NULL');
|
||||
|
||||
DB::getInstance()->Execute('ALTER TABLE `'._DB_PREFIX_.'cms_block_page` CHANGE `id_block_cms` `id_cms_block` INT( 10 ) UNSIGNED NOT NULL');
|
||||
|
||||
DB::getInstance()->Execute('ALTER TABLE `'._DB_PREFIX_.'cms_block_page` CHANGE `id_block_cms_page` `id_cms_block_page` INT( 10 ) UNSIGNED NOT NULL AUTO_INCREMENT');
|
||||
|
||||
}
|
||||
|
||||
@@ -1,39 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision$
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
function alter_productcomments_guest_index()
|
||||
{
|
||||
Configuration::loadConfiguration();
|
||||
$productcomments = Module::getInstanceByName('productcomments');
|
||||
if (!$productcomments->id)
|
||||
return;
|
||||
|
||||
DB::getInstance()->Execute('
|
||||
ALTER TABLE `'._DB_PREFIX_.'product_comment`
|
||||
DROP INDEX `id_guest`, ADD INDEX `id_guest` (`id_guest`);');
|
||||
}
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
function blocknewsletter()
|
||||
{
|
||||
// No one will know if the table does not exist :]
|
||||
DB::getInstance()->Execute('ALTER TABLE '._DB_PREFIX_.'newsletter ADD `http_referer` VARCHAR(255) NULL');
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
/**
|
||||
* Check if all needed columns in webservice_account table exists.
|
||||
* These columns are used for the WebserviceRequest overriding.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
function check_webservice_account_table()
|
||||
{
|
||||
$sql = 'SHOW COLUMNS FROM '._DB_PREFIX_.'webservice_account';
|
||||
$return = DB::getInstance()->executeS($sql);
|
||||
if (count($return) < 7)
|
||||
{
|
||||
$sql = 'ALTER TABLE `'._DB_PREFIX_.'webservice_account` ADD `is_module` TINYINT( 2 ) NOT NULL DEFAULT \'0\' AFTER `class_name` ,
|
||||
ADD `module_name` VARCHAR( 50 ) NULL DEFAULT NULL AFTER `is_module`';
|
||||
DB::getInstance()->executeS($sql);
|
||||
}
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
function cms_block()
|
||||
{
|
||||
if (!Db::getInstance()->execute('SELECT `display_store` FROM `'._DB_PREFIX_.'cms_block` LIMIT 1'))
|
||||
return Db::getInstance()->execute('ALTER TABLE `'._DB_PREFIX_.'cms_block` ADD `display_store` TINYINT NOT NULL DEFAULT \'1\'');
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
function configuration_double_cleaner()
|
||||
{
|
||||
$result = Db::getInstance()->executeS('
|
||||
SELECT name, MIN(id_configuration) AS minid
|
||||
FROM '._DB_PREFIX_.'configuration
|
||||
GROUP BY name
|
||||
HAVING count(name) > 1');
|
||||
foreach ($result as $row)
|
||||
{
|
||||
DB::getInstance()->Execute('
|
||||
DELETE FROM '._DB_PREFIX_.'configuration
|
||||
WHERE name = \''.addslashes($row['name']).'\'
|
||||
AND id_configuration != '.(int)($row['minid']));
|
||||
}
|
||||
DB::getInstance()->Execute('
|
||||
DELETE FROM '._DB_PREFIX_.'configuration_lang
|
||||
WHERE id_configuration NOT IN (
|
||||
SELECT id_configuration
|
||||
FROM '._DB_PREFIX_.'configuration)');
|
||||
}
|
||||
|
||||
@@ -1,278 +0,0 @@
|
||||
<?php
|
||||
/*
|
||||
* 2007-2011 PrestaShop
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Open Software License (OSL 3.0)
|
||||
* that is bundled with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://opensource.org/licenses/osl-3.0.php
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@prestashop.com so we can send you a copy immediately.
|
||||
*
|
||||
* DISCLAIMER
|
||||
*
|
||||
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
|
||||
* versions in the future. If you wish to customize PrestaShop for your
|
||||
* needs please refer to http://www.prestashop.com for more information.
|
||||
*
|
||||
* @author PrestaShop SA <contact@prestashop.com>
|
||||
* @copyright 2007-2011 PrestaShop SA
|
||||
* @version Release: $Revision: 6844 $
|
||||
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
||||
* International Registered Trademark & Property of PrestaShop SA
|
||||
*/
|
||||
|
||||
$timezones = array(
|
||||
'AD' => 'Europe/Andorra',
|
||||
'AE' => 'Asia/Dubai',
|
||||
'AF' => 'Asia/Kabul',
|
||||
'AG' => 'America/Antigua',
|
||||
'AI' => 'America/Anguilla',
|
||||
'AL' => 'Europe/Tirane',
|
||||
'AM' => 'Asia/Yerevan',
|
||||
'AN' => 'America/Curacao',
|
||||
'AO' => 'Africa/Luanda',
|
||||
'AQ' => 'Antarctica/McMurdo',
|
||||
'AR' => 'America/Argentina/Buenos_Aires',
|
||||
'AS' => 'Pacific/Pago_Pago',
|
||||
'AT' => 'Europe/Vienna',
|
||||
'AU' => 'Australia/Lord_Howe',
|
||||
'AW' => 'America/Aruba',
|
||||
'AX' => 'Europe/Mariehamn',
|
||||
'AZ' => 'Asia/Baku',
|
||||
'BA' => 'Europe/Sarajevo',
|
||||
'BB' => 'America/Barbados',
|
||||
'BD' => 'Asia/Dhaka',
|
||||
'BE' => 'Europe/Brussels',
|
||||
'BF' => 'Africa/Ouagadougou',
|
||||
'BG' => 'Europe/Sofia',
|
||||
'BH' => 'Asia/Bahrain',
|
||||
'BI' => 'Africa/Bujumbura',
|
||||
'BJ' => 'Africa/Porto-Novo',
|
||||
'BL' => 'America/St_Barthelemy',
|
||||
'BM' => 'Atlantic/Bermuda',
|
||||
'BN' => 'Asia/Brunei',
|
||||
'BO' => 'America/La_Paz',
|
||||
'BR' => 'America/Noronha',
|
||||
'BS' => 'America/Nassau',
|
||||
'BT' => 'Asia/Thimphu',
|
||||
'BV' => '',
|
||||
'BW' => 'Africa/Gaborone',
|
||||
'BY' => 'Europe/Minsk',
|
||||
'BZ' => 'America/Belize',
|
||||
'CA' => 'America/Toronto',
|
||||
'CC' => 'Indian/Cocos',
|
||||
'CD' => 'Africa/Kinshasa',
|
||||
'CF' => 'Africa/Bangui',
|
||||
'CG' => 'Africa/Brazzaville',
|
||||
'CH' => 'Europe/Zurich',
|
||||
'CI' => 'Africa/Abidjan',
|
||||
'CK' => 'Pacific/Rarotonga',
|
||||
'CL' => 'America/Santiago',
|
||||
'CM' => 'Africa/Douala',
|
||||
'CN' => 'Asia/Shanghai',
|
||||
'CO' => 'America/Bogota',
|
||||
'CR' => 'America/Costa_Rica',
|
||||
'CU' => 'America/Havana',
|
||||
'CV' => 'Atlantic/Cape_Verde',
|
||||
'CX' => 'Indian/Christmas',
|
||||
'CY' => 'Asia/Nicosia',
|
||||
'CZ' => 'Europe/Prague',
|
||||
'DE' => 'Europe/Berlin',
|
||||
'DJ' => 'Africa/Djibouti',
|
||||
'DK' => 'Europe/Copenhagen',
|
||||
'DM' => 'America/Dominica',
|
||||
'DO' => 'America/Santo_Domingo',
|
||||
'DZ' => 'Africa/Algiers',
|
||||
'EC' => 'America/Guayaquil',
|
||||
'EE' => 'Europe/Tallinn',
|
||||
'EG' => 'Africa/Cairo',
|
||||
'EH' => 'Africa/El_Aaiun',
|
||||
'ER' => 'Africa/Asmara',
|
||||
'ES' => 'Europe/Madrid',
|
||||
'ET' => 'Africa/Addis_Ababa',
|
||||
'FI' => 'Europe/Helsinki',
|
||||
'FJ' => 'Pacific/Fiji',
|
||||
'FK' => 'Atlantic/Stanley',
|
||||
'FM' => 'Pacific/Chuuk',
|
||||
'FO' => 'Atlantic/Faroe',
|
||||
'FR' => 'Europe/Paris',
|
||||
'GA' => 'Africa/Libreville',
|
||||
'GB' => 'Europe/London',
|
||||
'GD' => 'America/Grenada',
|
||||
'GE' => 'Asia/Tbilisi',
|
||||
'GF' => 'America/Cayenne',
|
||||
'GG' => 'Europe/Guernsey',
|
||||
'GH' => 'Africa/Accra',
|
||||
'GI' => 'Europe/Gibraltar',
|
||||
'GL' => 'America/Godthab',
|
||||
'GM' => 'Africa/Banjul',
|
||||
'GN' => 'Africa/Conakry',
|
||||
'GP' => 'America/Guadeloupe',
|
||||
'GQ' => 'Africa/Malabo',
|
||||
'GR' => 'Europe/Athens',
|
||||
'GS' => 'Atlantic/South_Georgia',
|
||||
'GT' => 'America/Guatemala',
|
||||
'GU' => 'Pacific/Guam',
|
||||
'GW' => 'Africa/Bissau',
|
||||
'GY' => 'America/Guyana',
|
||||
'HK' => 'Asia/Hong_Kong',
|
||||
'HM' => '',
|
||||
'HN' => 'America/Tegucigalpa',
|
||||
'HR' => 'Europe/Zagreb',
|
||||
'HT' => 'America/Port-au-Prince',
|
||||
'HU' => 'Europe/Budapest',
|
||||
'ID' => 'Asia/Jakarta',
|
||||
'IE' => 'Europe/Dublin',
|
||||
'IL' => 'Asia/Jerusalem',
|
||||
'IM' => 'Europe/Isle_of_Man',
|
||||
'IN' => 'Asia/Kolkata',
|
||||
'IO' => 'Indian/Chagos',
|
||||
'IQ' => 'Asia/Baghdad',
|
||||
'IR' => 'Asia/Tehran',
|
||||
'IS' => 'Atlantic/Reykjavik',
|
||||
'IT' => 'Europe/Rome',
|
||||
'JE' => 'Europe/Jersey',
|
||||
'JM' => 'America/Jamaica',
|
||||
'JO' => 'Asia/Amman',
|
||||
'JP' => 'Asia/Tokyo',
|
||||
'KE' => 'Africa/Nairobi',
|
||||
'KG' => 'Asia/Bishkek',
|
||||
'KH' => 'Asia/Phnom_Penh',
|
||||
'KI' => 'Pacific/Tarawa',
|
||||
'KM' => 'Indian/Comoro',
|
||||
'KN' => 'America/St_Kitts',
|
||||
'KP' => 'Asia/Pyongyang',
|
||||
'KR' => 'Asia/Seoul',
|
||||
'KW' => 'Asia/Kuwait',
|
||||
'KY' => 'America/Cayman',
|
||||
'KZ' => 'Asia/Almaty',
|
||||
'LA' => 'Asia/Vientiane',
|
||||
'LB' => 'Asia/Beirut',
|
||||
'LC' => 'America/St_Lucia',
|
||||
'LI' => 'Europe/Vaduz',
|
||||
'LK' => 'Asia/Colombo',
|
||||
'LR' => 'Africa/Monrovia',
|
||||
'LS' => 'Africa/Maseru',
|
||||
'LT' => 'Europe/Vilnius',
|
||||
'LU' => 'Europe/Luxembourg',
|
||||
'LV' => 'Europe/Riga',
|
||||
'LY' => 'Africa/Tripoli',
|
||||
'MA' => 'Africa/Casablanca',
|
||||
'MC' => 'Europe/Monaco',
|
||||
'MD' => 'Europe/Chisinau',
|
||||
'ME' => 'Europe/Podgorica',
|
||||
'MF' => 'America/Marigot',
|
||||
'MG' => 'Indian/Antananarivo',
|
||||
'MH' => 'Pacific/Majuro',
|
||||
'MK' => 'Europe/Skopje',
|
||||
'ML' => 'Africa/Bamako',
|
||||
'MM' => 'Asia/Rangoon',
|
||||
'MN' => 'Asia/Ulaanbaatar',
|
||||
'MO' => 'Asia/Macau',
|
||||
'MP' => 'Pacific/Saipan',
|
||||
'MQ' => 'America/Martinique',
|
||||
'MR' => 'Africa/Nouakchott',
|
||||
'MS' => 'America/Montserrat',
|
||||
'MT' => 'Europe/Malta',
|
||||
'MU' => 'Indian/Mauritius',
|
||||
'MV' => 'Indian/Maldives',
|
||||
'MW' => 'Africa/Blantyre',
|
||||
'MX' => 'America/Mexico_City',
|
||||
'MY' => 'Asia/Kuala_Lumpur',
|
||||
'MZ' => 'Africa/Maputo',
|
||||
'NA' => 'Africa/Windhoek',
|
||||
'NC' => 'Pacific/Noumea',
|
||||
'NE' => 'Africa/Niamey',
|
||||
'NF' => 'Pacific/Norfolk',
|
||||
'NG' => 'Africa/Lagos',
|
||||
'NI' => 'America/Managua',
|
||||
'NL' => 'Europe/Amsterdam',
|
||||
'NO' => 'Europe/Oslo',
|
||||
'NP' => 'Asia/Kathmandu',
|
||||
'NR' => 'Pacific/Nauru',
|
||||
'NU' => 'Pacific/Niue',
|
||||
'NZ' => 'Pacific/Auckland',
|
||||
'OM' => 'Asia/Muscat',
|
||||
'PA' => 'America/Panama',
|
||||
'PE' => 'America/Lima',
|
||||
'PF' => 'Pacific/Tahiti',
|
||||
'PG' => 'Pacific/Port_Moresby',
|
||||
'PH' => 'Asia/Manila',
|
||||
'PK' => 'Asia/Karachi',
|
||||
'PL' => 'Europe/Warsaw',
|
||||
'PM' => 'America/Miquelon',
|
||||
'PN' => 'Pacific/Pitcairn',
|
||||
'PR' => 'America/Puerto_Rico',
|
||||
'PS' => 'Asia/Gaza',
|
||||
'PT' => 'Europe/Lisbon',
|
||||
'PW' => 'Pacific/Palau',
|
||||
'PY' => 'America/Asuncion',
|
||||
'QA' => 'Asia/Qatar',
|
||||
'RE' => 'Indian/Reunion',
|
||||
'RO' => 'Europe/Bucharest',
|
||||
'RS' => 'Europe/Belgrade',
|
||||
'RU' => 'Europe/Moscow',
|
||||
'RW' => 'Africa/Kigali',
|
||||
'SA' => 'Asia/Riyadh',
|
||||
'SB' => 'Pacific/Guadalcanal',
|
||||
'SC' => 'Indian/Mahe',
|
||||
'SD' => 'Africa/Khartoum',
|
||||
'SE' => 'Europe/Stockholm',
|
||||
'SG' => 'Asia/Singapore',
|
||||
'SI' => 'Europe/Ljubljana',
|
||||
'SJ' => 'Arctic/Longyearbyen',
|
||||
'SK' => 'Europe/Bratislava',
|
||||
'SL' => 'Africa/Freetown',
|
||||
'SM' => 'Europe/San_Marino',
|
||||
'SN' => 'Africa/Dakar',
|
||||
'SO' => 'Africa/Mogadishu',
|
||||
'SR' => 'America/Paramaribo',
|
||||
'ST' => 'Africa/Sao_Tome',
|
||||
'SV' => 'America/El_Salvador',
|
||||
'SY' => 'Asia/Damascus',
|
||||
'SZ' => 'Africa/Mbabane',
|
||||
'TC' => 'America/Grand_Turk',
|
||||
'TD' => 'Africa/Ndjamena',
|
||||
'TF' => 'Indian/Kerguelen',
|
||||
'TG' => 'Africa/Lome',
|
||||
'TH' => 'Asia/Bangkok',
|
||||
'TJ' => 'Asia/Dushanbe',
|
||||
'TK' => 'Pacific/Fakaofo',
|
||||
'TL' => 'Asia/Dili',
|
||||
'TM' => 'Asia/Ashgabat',
|
||||
'TN' => 'Africa/Tunis',
|
||||
'TO' => 'Pacific/Tongatapu',
|
||||
'TR' => 'Europe/Istanbul',
|
||||
'TT' => 'America/Port_of_Spain',
|
||||
'TV' => 'Pacific/Funafuti',
|
||||
'TW' => 'Asia/Taipei',
|
||||
'TZ' => 'Africa/Dar_es_Salaam',
|
||||
'UA' => 'Europe/Kiev',
|
||||
'UG' => 'Africa/Kampala',
|
||||
'US' => 'US/Eastern',
|
||||
'UY' => 'America/Montevideo',
|
||||
'UZ' => 'Asia/Samarkand',
|
||||
'VA' => 'Europe/Vatican',
|
||||
'VC' => 'America/St_Vincent',
|
||||
'VE' => 'America/Caracas',
|
||||
'VG' => 'America/Tortola',
|
||||
'VI' => 'America/St_Thomas',
|
||||
'VN' => 'Asia/Ho_Chi_Minh',
|
||||
'VU' => 'Pacific/Efate',
|
||||
'WF' => 'Pacific/Wallis',
|
||||
'WS' => 'Pacific/Apia',
|
||||
'YE' => 'Asia/Aden',
|
||||
'YT' => 'Indian/Mayotte',
|
||||
'ZA' => 'Africa/Johannesburg',
|
||||
'ZM' => 'Africa/Lusaka',
|
||||
'ZW' => 'Africa/Harare',
|
||||
);
|
||||
|
||||
|
||||
if (isset($timezones[$_GET['country']]) && $timezones[$_GET['country']])
|
||||
die($timezones[$_GET['country']]);
|
||||
die('');
|
||||
@@ -1,53 +0,0 @@
|
||||
<?php
|
||||
|
||||
require_once(_PS_INSTALLER_PHP_UPGRADE_DIR_.'add_new_tab.php');
|
||||
|
||||
function create_multistore()
|
||||
{
|
||||
$res = true;
|
||||
|
||||
$themes = scandir(dirname(__FILE__).'/../../themes');
|
||||
foreach ($themes AS $theme)
|
||||
if (is_dir(dirname(__FILE__).'/../../themes/'.$theme) && $theme[0] != '.' && $theme != 'prestashop')
|
||||
$res &= Db::getInstance()->execute('INSERT INTO '._DB_PREFIX_.'theme (`id_theme`, `name`) VALUES(\'\', \''.pSQL($theme).'\')');
|
||||
$res &= Db::getInstance()->execute('UPDATE '._DB_PREFIX_.'shop
|
||||
SET
|
||||
name = (SELECT value
|
||||
FROM '._DB_PREFIX_.'configuration
|
||||
WHERE name = "PS_SHOP_NAME"
|
||||
),
|
||||
id_theme = (SELECT id_theme FROM '._DB_PREFIX_.'theme WHERE name=\''.pSQL(_THEME_NAME_).'\')
|
||||
WHERE id_shop = 1');
|
||||
$shop_domain = Db::getInstance()->getValue('SELECT `value`
|
||||
FROM `'._DB_PREFIX_.'_configuration`
|
||||
WHERE `name`=\'PS_SHOP_DOMAIN\'');
|
||||
$shop_domain_ssl = Db::getInstance()->getValue('SELECT `value`
|
||||
FROM `'._DB_PREFIX_.'_configuration`
|
||||
WHERE `name`=\'PS_SHOP_DOMAIN_SSL\'');
|
||||
if(empty($shop_domain))
|
||||
{
|
||||
$shop_domain = Tools::getHttpHost();
|
||||
$shop_domain_ssl = Tools::getHttpHost();
|
||||
}
|
||||
|
||||
$_PS_DIRECTORY_ = trim(str_replace(' ', '%20', INSTALLER__PS_BASE_URI), '/');
|
||||
$_PS_DIRECTORY_ = ($_PS_DIRECTORY_) ? '/'.$_PS_DIRECTORY_.'/' : '/';
|
||||
$res &= Db::getInstance()->execute('INSERT INTO `'._DB_PREFIX_.'shop_url` (`id_shop`, `domain`, `domain_ssl`, `physical_uri`, `virtual_uri`, `main`, `active`)
|
||||
VALUES(1, \''.pSQL($shop_domain).'\', \''.pSQL($shop_domain_ssl).'\', \''.pSQL($_PS_DIRECTORY_).'\', \'\', 1, 1)');
|
||||
|
||||
// Stock conversion
|
||||
$sql = 'INSERT INTO `'._DB_PREFIX_.'.stock` (`id_product`, `id_product_attribute`, `id_group_shop`, `id_shop`, `quantity`)
|
||||
VALUES (SELECT `p.id_product`, 0, 1, 1, `p.quantity` FROM `'._DB_PREFIX_.'.product` p);';
|
||||
$res &= Db::getInstance()->execute($sql);
|
||||
|
||||
$sql = 'INSERT INTO `'._DB_PREFIX_.'.stock` (`id_product`, `id_product_attribute`, `id_group_shop`, `id_shop`, `quantity`)
|
||||
VALUES (SELECT `id_product`, `id_product_attribute`, 1, 1, `quantity` FROM `'._DB_PREFIX_.'product_attribute` p);';
|
||||
$res &= Db::getInstance()->execute($sql);
|
||||
|
||||
// Add admin tabs
|
||||
$shopTabId = add_new_tab('AdminShop', 'it:Shops|es:Shops|fr:Boutiques|de:Shops|en:Shops', 0, true);
|
||||
add_new_tab('AdminGroupShop', 'it:Group Shops|es:Group Shops|fr:Groupes de boutique|de:Group Shops|en:Group Shops', $shopTabId);
|
||||
add_new_tab('AdminShopUrl', 'it:Shop Urls|es:Shop Urls|fr:URLs de boutique|de:Shop Urls|en:Shop Urls', $shopTabId);
|
||||
|
||||
return $res;
|
||||
}
|
||||