trans('Updating Thelia.'); ?>

setTranslator($trans); if ($update->isLatestVersion()) { ?>

trans('It seems that Thelia database is already up to date.'); ?>

backupDb(); ?>

trans( 'Your database has been backed up. The sql file : %file', [ '%file' => $update->getBackupFile() ] ); ?>

trans( 'Sorry, your database can\'t be backed up. Reason : ' . $ex->getMessage() ); ?>

process(); } catch (UpdateException $ex) { $updateError = $ex; } foreach ($update->getMessages() as $message) { alertBootstrapFormatter($message[0], $message[1]); } if (null === $updateError) { ?>

trans( 'Thelia as been successfully updated to version %version', ['%version' => $update->getCurrentVersion()] ); ?>

hasPostInstructions()) { ?>

trans("Post update instructions"); ?>

getPostInstructions('html'); ?>

trans('Go to back office'); ?>

trans( '

Sorry, an unexpected error occured: %err

Error details:

%details

', [ '%err' => $updateError->getMessage(), '%details' => nl2br($updateError->getTraceAsString()) ] ); ?>
restoreDb()) { $continue = false ; ?>

trans( 'Sorry, your database can\'t be restored. Try to do it manually' ); ?>

trans( 'The sql dump has been saved in %file', [ '%file' => $update->getBackupFile() ] ); ?>

trans( 'Your database has been restored.' ); ?>

trans('Update proccess'); ?>

trans('Update proccess trace'); ?>

files()->in(THELIA_CACHE_DIR); foreach ($finder as $file) { try { $fs->remove($file); } catch (\Symfony\Component\Filesystem\Exception\IOException $ex) { $hasDeleteError = true; } } if ($hasDeleteError) { ?>

trans('Cache directory has not been cleared. Please manually delete content of cache directory.'); ?>

trans('Cache directory has been cleared'); ?>

remove(THELIA_WEB_DIR . DS . 'install'); ?>

trans('The update wizard directory will be removed'); ?>

trans('Don\'t forget to delete the web/install directory.'); ?>

' . $message . ''; }