{
$winvdir = $this->getFinalPackageDir();
- $trans=$this->book->getDefaultTranslations();
+ $trans = $this->book->getDefaultTranslations();
- $locale = $trans['nsis'];
+ if (!isset($trans['nsis'])) {
+ debug(json_encode($trans));
+ }
+ $locale = $trans['nsis'] ?? 'English';
if ($locale === 'Arabic') {
$locale = 'English';
}
$makensis->execute();
$makensis->debug();
- $out=$this->getPathBase('exe');
+ $out = $this->getPathBase('exe');
- if (!file_exists($out) ){
+ if (!file_exists($out)) {
die('Error while building the installer : ' . $this->getPathBase('exe'));
}