diff --git a/README.md b/README.md index 6d8387b..c95ada9 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,10 @@ For more information, go to https://www.luigifab.fr/apijs and https://www.luigif This repository is a releases mirror. To install the module, please use the composer key available in the documentation. -- Current version: 6.7.0 (07/07/2021) -- Compatibility: OpenMage 19.x / 20.x, PHP 7.2 / 7.3 / 7.4 / 8.0, Python 3.3 / 3.4 / 3.5 / 3.6 / 3.7 / 3.8 / 3.9 +- Current version: 6.8.0 (08/08/2021) +- Compatibility: OpenMage 19.x / 20.x, PHP 7.2 / 7.3 / 7.4 / 8.0, Python 3.3 - 3.10 - Client compatibility: Firefox 36+, Chrome 32+, Opera 19+, Edge 16+, Safari 9+ -- Translations: English (en), French (fr-FR/fr-CA), German (de), Italian (it), Portuguese (pt-PT/pt-BR), Spanish (es) -- Other translations: Czech (cs), Dutch (nl), Japanese (ja), Polish (pl), Slovak (sk) -- Other translations: Chinese (zh), Russian (ru), Turkish (tr), Ukrainian (uk) +- Translations: English (en), French (fr-FR/fr-CA), German (de), Italian (it), Portuguese (pt-PT/pt-BR), Spanish (es) / Chinese (zh), Czech (cs), Dutch (nl), Greek (el), Hungarian (hu), Japanese (ja), Polish (pl), Romanian (ro), Russian (ru), Slovak (sk), Turkish (tr), Ukrainian (uk) - License: GNU GPL 2+ If you like, take some of your time to improve the translations, go to https://bit.ly/2HyCCEc. diff --git a/composer.json b/composer.json index f05dc57..91c5f39 100644 --- a/composer.json +++ b/composer.json @@ -44,6 +44,7 @@ ["src/app/locale/de_AT/Luigifab_Apijs.csv", "app/locale/de_AT/Luigifab_Apijs.csv"], ["src/app/locale/de_CH/Luigifab_Apijs.csv", "app/locale/de_CH/Luigifab_Apijs.csv"], ["src/app/locale/de_DE/Luigifab_Apijs.csv", "app/locale/de_DE/Luigifab_Apijs.csv"], + ["src/app/locale/el_GR/Luigifab_Apijs.csv", "app/locale/el_GR/Luigifab_Apijs.csv"], ["src/app/locale/es_AR/Luigifab_Apijs.csv", "app/locale/es_AR/Luigifab_Apijs.csv"], ["src/app/locale/es_CL/Luigifab_Apijs.csv", "app/locale/es_CL/Luigifab_Apijs.csv"], ["src/app/locale/es_CO/Luigifab_Apijs.csv", "app/locale/es_CO/Luigifab_Apijs.csv"], @@ -56,6 +57,7 @@ ["src/app/locale/fr_CA/Luigifab_Apijs.csv", "app/locale/fr_CA/Luigifab_Apijs.csv"], ["src/app/locale/fr_CH/Luigifab_Apijs.csv", "app/locale/fr_CH/Luigifab_Apijs.csv"], ["src/app/locale/fr_FR/Luigifab_Apijs.csv", "app/locale/fr_FR/Luigifab_Apijs.csv"], + ["src/app/locale/hu_HU/Luigifab_Apijs.csv", "app/locale/hu_HU/Luigifab_Apijs.csv"], ["src/app/locale/it_CH/Luigifab_Apijs.csv", "app/locale/it_CH/Luigifab_Apijs.csv"], ["src/app/locale/it_IT/Luigifab_Apijs.csv", "app/locale/it_IT/Luigifab_Apijs.csv"], ["src/app/locale/ja_JP/Luigifab_Apijs.csv", "app/locale/ja_JP/Luigifab_Apijs.csv"], @@ -63,6 +65,7 @@ ["src/app/locale/pl_PL/Luigifab_Apijs.csv", "app/locale/pl_PL/Luigifab_Apijs.csv"], ["src/app/locale/pt_BR/Luigifab_Apijs.csv", "app/locale/pt_BR/Luigifab_Apijs.csv"], ["src/app/locale/pt_PT/Luigifab_Apijs.csv", "app/locale/pt_PT/Luigifab_Apijs.csv"], + ["src/app/locale/ro_RO/Luigifab_Apijs.csv", "app/locale/ro_RO/Luigifab_Apijs.csv"], ["src/app/locale/ru_RU/Luigifab_Apijs.csv", "app/locale/ru_RU/Luigifab_Apijs.csv"], ["src/app/locale/sk_SK/Luigifab_Apijs.csv", "app/locale/sk_SK/Luigifab_Apijs.csv"], ["src/app/locale/tr_TR/Luigifab_Apijs.csv", "app/locale/tr_TR/Luigifab_Apijs.csv"], diff --git a/src/app/code/community/Luigifab/Apijs/Helper/Rewrite/Image.php b/src/app/code/community/Luigifab/Apijs/Helper/Rewrite/Image.php index 1e9202c..b1b7ba5 100644 --- a/src/app/code/community/Luigifab/Apijs/Helper/Rewrite/Image.php +++ b/src/app/code/community/Luigifab/Apijs/Helper/Rewrite/Image.php @@ -1,7 +1,7 @@ * Copyright 2019-2021 | Fabrice Creuzot @@ -31,7 +31,7 @@ public function init($product, $attribute, $path = null, $fixed = true) { //if (!isset($this->_debugRenew)) $this->_debugRenew = 0; //$this->_debugCount += 1; //$this->_debugStart = microtime(true); - //Mage::log('Open file '.$path.'...'); + //Mage::log('Open file '.$path.'...', Zend_Log::DEBUG); if (empty($this->_helper)) { $this->_helper = Mage::helper('apijs'); @@ -187,11 +187,11 @@ public function setBaseFile() { Mage::getDesign()->setArea($area); } - //Mage::log(' setBaseFile '.number_format(microtime(true) - $go, 4)); + //Mage::log(' setBaseFile '.number_format(microtime(true) - $go, 4), Zend_Log::DEBUG); return $this; } - public function cleanUrl($url) { + public function cleanUrl(string $url) { return $this->_cleanUrl ? mb_substr($url, strpos($url, '/', 9)) : $url; } @@ -226,11 +226,11 @@ public function __toString() { mb_substr($filename, mb_stripos($filename, '/'.$dir.'/') + mb_strlen('/'.$dir.'/'))); if (array_key_exists($filename, $this->_cacheUrls)) { - //Mage::log(' CACHE HIT '.$filename); $this->_debugCache++; + //Mage::log(' CACHE HIT '.$filename, Zend_Log::DEBUG); $this->_debugCache++; $url = $this->_cacheUrls[$filename]; } else { - //Mage::log(' generate '.$filename); $this->_debugRenew++; + //Mage::log(' generate '.$filename, Zend_Log::DEBUG); $this->_debugRenew++; if (!is_file($filename)) { if (!empty($this->_scheduleRotate)) @@ -265,11 +265,11 @@ public function __toString() { $filename = str_replace(['../', '//', '/category/', '/catalog/product/'], ['', '/', '/', '/catalog/category/'], $filename); if (array_key_exists($filename, $this->_cacheUrls)) { - //Mage::log(' CACHE HIT '.$filename); $this->_debugCache++; + //Mage::log(' CACHE HIT '.$filename, Zend_Log::DEBUG); $this->_debugCache++; $url = $this->_cacheUrls[$filename]; } else { - //Mage::log(' generate '.$filename); $this->_debugRenew++; + //Mage::log(' generate '.$filename, Zend_Log::DEBUG); $this->_debugRenew++; if (!is_file($filename)) { if (!empty($this->_scheduleRotate)) @@ -303,11 +303,11 @@ public function __toString() { $filename = preg_replace('#/cache/\d+/#', '/cache/', $filename); if (array_key_exists($filename, $this->_cacheUrls)) { - //Mage::log(' CACHE HIT '.$filename); $this->_debugCache++; + //Mage::log(' CACHE HIT '.$filename, Zend_Log::DEBUG); $this->_debugCache++; $url = $this->_cacheUrls[$filename]; } else { - //Mage::log(' generate '.$filename); $this->_debugRenew++; + //Mage::log(' generate '.$filename, Zend_Log::DEBUG); $this->_debugRenew++; if (!is_file($filename)) { if (!empty($this->_scheduleRotate)) @@ -337,8 +337,8 @@ public function __toString() { $url = Mage::getDesign()->getSkinUrl($this->getPlaceholder()); } - //Mage::log(' toString '.number_format(microtime(true) - $go, 4)); - //Mage::log(' closing file after '.number_format(microtime(true) - $this->_debugStart, 4).' / since first init '.number_format(microtime(true) - $this->_debugBegin, 4).' / total '.$this->_debugCount.' = cache '.$this->_debugCache.' + generate '.$this->_debugRenew); + //Mage::log(' toString '.number_format(microtime(true) - $go, 4), Zend_Log::DEBUG); + //Mage::log(' closing file after '.number_format(microtime(true) - $this->_debugStart, 4).' / since first init '.number_format(microtime(true) - $this->_debugBegin, 4).' / total '.$this->_debugCount.' = cache '.$this->_debugCache.' + generate '.$this->_debugRenew, Zend_Log::DEBUG); return $url; } diff --git a/src/app/code/community/Luigifab/Apijs/etc/config.xml b/src/app/code/community/Luigifab/Apijs/etc/config.xml index 06af5bb..eb05d8f 100644 --- a/src/app/code/community/Luigifab/Apijs/etc/config.xml +++ b/src/app/code/community/Luigifab/Apijs/etc/config.xml @@ -1,7 +1,7 @@