From 8540861248c170135fc9b5d6c03427bf9cdd8cdb Mon Sep 17 00:00:00 2001 From: Faeze Moradi Date: Fri, 6 Nov 2020 13:05:03 +0100 Subject: [PATCH 1/2] put clearAssets at the last step --- modules/packageinstaller/controllers/InstallController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/packageinstaller/controllers/InstallController.php b/modules/packageinstaller/controllers/InstallController.php index 89e259f..4d9a8ed 100644 --- a/modules/packageinstaller/controllers/InstallController.php +++ b/modules/packageinstaller/controllers/InstallController.php @@ -87,6 +87,7 @@ public function actionMigrate() public function actionCleanup() { $this->updatePackage->delete(); + Yii::$app->assetManager->clear(); if (Yii::$app->request->post('theme') == 'true') { $this->switchToDefaultTheme(); @@ -115,7 +116,6 @@ protected function switchToDefaultTheme() protected function flushCaches() { Yii::$app->moduleManager->flushCache(); - Yii::$app->assetManager->clear(); Yii::$app->cache->flush(); } From 6120fa9d00ccaf942f9912941bef23d71936f732 Mon Sep 17 00:00:00 2001 From: HumHub Translations Date: Sun, 29 Nov 2020 20:47:06 +0100 Subject: [PATCH 2/2] Enh: Updated Translations (translate.humhub.org) --- messages/bg/base.php | 91 +++++++++++++++--------------- messages/bg/libs_UpdatePackage.php | 23 +------- messages/hr/base.php | 91 +++++++++++++++--------------- 3 files changed, 93 insertions(+), 112 deletions(-) diff --git a/messages/bg/base.php b/messages/bg/base.php index ed65fa8..2f0ff3d 100644 --- a/messages/bg/base.php +++ b/messages/bg/base.php @@ -1,47 +1,46 @@ Update HumHub' => '', - 'Update to HumHub {version}' => '', - 'Abort' => '', - 'Application folder not writable!' => '', - 'Application folder: {folder}' => '', - 'Backup all your files & database before proceed' => '', - 'Changes to HumHub core files may overwritten during update!' => '', - 'Channel' => '', - 'Cleanup update files' => '', - 'Close' => '', - 'Could not extract update package!' => '', - 'Could not get update info online! (%error%)' => '', - 'Do not use this updater in combination with Git or Composer installations!' => '', - 'Downloading update package' => '', - 'Extracting package files' => '', - 'Installed PHP version not support!' => '', - 'Installing files' => '', - 'Make sure all files are writable by application' => '', - 'Make sure all files are writable! (file)' => '', - 'Make sure custom modules or themes are compatible with version %version%' => '', - 'Migrating database' => '', - 'New updater version available!' => '', - 'No error message available. Please check logfiles!' => '', - 'Please note:' => '', - 'Please update installed marketplace modules before and after the update' => '', - 'Please update installed modules when new version is available!' => '', - 'Preparing system' => '', - 'Stable and beta versions' => '', - 'Stable versions only' => '', - 'Start' => '', - 'Start update' => '', - 'Switch to default theme after update (strongly recommended)' => '', - 'The currently installed PHP version is too old. Please update before proceed.' => '', - 'The update was successfully installed!' => '', - 'The updater requires write access to all files and folders in the application root folder.' => '', - 'There is a new update to %version% available!' => '', - 'There is a new version of the updater module available. Please update before proceed.' => '', - 'There is no new HumHub update available!' => '', - 'Update HumHub' => '', - 'Update package invalid!' => '', - 'Update successful' => '', - 'Updater Configuration' => '', - 'Validating package' => '', -]; +return array ( + 'Update HumHub' => 'Актуализиране на HumHub', + 'Update to HumHub {version}' => 'Актуализиране до HumHub {version}', + 'Abort' => 'Прекъсване', + 'Application folder not writable!' => 'В папката с приложения не може да се записва!', + 'Application folder: {folder}' => 'Папка с приложения: {folder}', + 'Backup all your files & database before proceed' => 'Архивирайте всичките си файлове и база от данни, преди да продължите', + 'Changes to HumHub core files may overwritten during update!' => 'Промените в основните файлове на HumHub могат да бъдат заменени по време на актуализацията!', + 'Channel' => 'Канал', + 'Cleanup update files' => 'Почистване на файлове за актуализация', + 'Close' => 'Затвори', + 'Could not extract update package!' => 'Не може да се извлече пакет за актуализация!', + 'Could not get update info online! (%error%)' => 'Не може да получа информация за актуализация онлайн! (%error%)', + 'Do not use this updater in combination with Git or Composer installations!' => 'Не използвайте този актуализатор в комбинация с инсталации на Git или Composer!', + 'Downloading update package' => 'Изтегля се пакет за актуализация', + 'Extracting package files' => 'Извличане на пакетни файлове', + 'Installed PHP version not support!' => 'Инсталираната версия на PHP не се поддържа!', + 'Installing files' => 'Инсталиране на файлове', + 'Make sure all files are writable by application' => 'Уверете се, че всички файлове могат да се записват от приложението', + 'Make sure all files are writable! (file)' => 'Уверете се, че всички файлове могат да се записват! (file)', + 'Make sure custom modules or themes are compatible with version %version%' => 'Уверете се, че персонализираните модули или теми са съвместими с версия %version%', + 'Migrating database' => 'Мигриране на база от данни', + 'New updater version available!' => 'Налична е нова версия за актуализация!', + 'No error message available. Please check logfiles!' => 'Няма съобщение за грешка. Моля, проверете лог файловете!', + 'Please note:' => 'Моля обърнете внимание:', + 'Please update installed marketplace modules before and after the update' => 'Моля, актуализирайте всички инсталирани модули от пазара преди и след актуализацията', + 'Please update installed modules when new version is available!' => 'Моля, актуализирайте инсталираните модули, когато е налична нова версия!', + 'Preparing system' => 'Подготвя системата', + 'Stable and beta versions' => 'Стабилна и бета версии', + 'Stable versions only' => 'Само стабилни версии', + 'Start' => 'Стартиране', + 'Start update' => 'Стартиране на актуализация', + 'Switch to default theme after update (strongly recommended)' => 'Преминете към тема по подразбиране след актуализация (силно препоръчително)', + 'The currently installed PHP version is too old. Please update before proceed.' => 'Понастоящем инсталираната версия на PHP е твърде стара. Моля, актуализирайте, преди да продължите.', + 'The update was successfully installed!' => 'Актуализацията беше инсталирана успешно!', + 'The updater requires write access to all files and folders in the application root folder.' => 'Актуализаторът изисква достъп за запис до всички файлове и папки в основната папка на приложението.', + 'There is a new update to %version% available!' => 'Налична е нова актуализация на %version%!', + 'There is a new version of the updater module available. Please update before proceed.' => 'Налична е нова версия на модула за актуализация. Моля, актуализирайте, преди да продължите.', + 'There is no new HumHub update available!' => 'Няма налична нова актуализация на HumHub!', + 'Update HumHub' => 'Актуализирайте HumHub', + 'Update package invalid!' => 'Пакетът за актуализация е невалиден!', + 'Update successful' => 'Актуализацията е успешна', + 'Updater Configuration' => 'Конфигурация на актуализатора', + 'Validating package' => 'Валидиране на пакета', +); diff --git a/messages/bg/libs_UpdatePackage.php b/messages/bg/libs_UpdatePackage.php index 443fd93..1a0fd8f 100644 --- a/messages/bg/libs_UpdatePackage.php +++ b/messages/bg/libs_UpdatePackage.php @@ -1,21 +1,4 @@ '', -]; +return array ( + 'Update download failed! (%error%)' => 'Изтеглянето на актуализацията не бе успешно! (%error%)', +); diff --git a/messages/hr/base.php b/messages/hr/base.php index 6bac45e..a866438 100644 --- a/messages/hr/base.php +++ b/messages/hr/base.php @@ -1,47 +1,46 @@ '', - 'Make sure all files are writable! (file)' => '', - 'Stable and beta versions' => '', - 'Stable versions only' => '', - 'Updater Configuration' => '', - 'Update HumHub' => 'Ažuriraj HumHub', - 'Update to HumHub {version}' => 'Ažuriraj na HumHub {version}', - 'Abort' => 'Prekini', - 'Application folder not writable!' => 'U mapu aplikacije nije moguće zapisivanje!', - 'Application folder: {folder}' => 'Mapa aplikacije: {folder}', - 'Backup all your files & database before proceed' => 'Izradite sigurnosnu kopiju svih datoteka i baze podataka prije nego što nastavite', - 'Changes to HumHub core files may overwritten during update!' => 'Promjene u HumHub jezgrama mogu se prebrisati tijekom ažuriranja!', - 'Cleanup update files' => 'Čišćenje ažuriranih datoteka', - 'Close' => 'Zatvori', - 'Could not extract update package!' => 'Ne mogu izvesti paket ažuriranja!', - 'Could not get update info online! (%error%)' => 'Ne mogu se ažurirati informacije o ažuriranju! (%error%)', - 'Do not use this updater in combination with Git or Composer installations!' => 'Nemojte koristiti ovaj updater u kombinaciji s instalacijama Git ili Composer!', - 'Downloading update package' => 'Preuzimanje paketa ažuriranja', - 'Extracting package files' => 'Izvoz paketa datoteka ', - 'Installed PHP version not support!' => 'Instalirana PHP inačica ne podržava!', - 'Installing files' => 'Instaliranje datoteka', - 'Make sure all files are writable by application' => 'Provjerite jesu li u sve datoteke omogućeno zapisivanje od aplikacije', - 'Make sure custom modules or themes are compatible with version %version%' => 'Provjerite jesu li prilagođeni moduli ili tema kompatibilni s verzijom %version%', - 'Migrating database' => 'Migracija baze podataka', - 'New updater version available!' => 'Dostupna je nova verzija updatera!', - 'No error message available. Please check logfiles!' => 'Nijedna poruka o pogrešci nije dostupna. Molimo provjerite log datoteke!', - 'Please note:' => 'Molim zabilježite:', - 'Please update installed marketplace modules before and after the update' => 'Ažurirajte module instaliranog tržišta prije i poslije ažuriranja', - 'Please update installed modules when new version is available!' => 'Ažurirajte instalirane module kada je dostupna nova verzija!', - 'Preparing system' => 'Priprema sustava', - 'Start' => 'Početak', - 'Start update' => 'Počni ažuriranje', - 'Switch to default theme after update (strongly recommended)' => 'Prebacivanje na zadanu temu nakon ažuriranja (preporučljivo)', - 'The currently installed PHP version is too old. Please update before proceed.' => 'Trenutno instalirana verzija PHP prestara je. Ažurirajte prije nastavka.', - 'The update was successfully installed!' => 'Ažuriranje je uspješno instalirano!', - 'The updater requires write access to all files and folders in the application root folder.' => 'Ažuriranje zahtijeva pristup pisanju svih datoteka i mapa u korijenskoj mapi programa.', - 'There is a new update to %version% available!' => 'Dostupno je novo ažuriranje %version%!', - 'There is a new version of the updater module available. Please update before proceed.' => 'Dostupna je nova verzija modula za ažuriranje. Ažurirajte prije nastavka.', - 'There is no new HumHub update available!' => 'Nema novog ažuriranja za HumHub!', - 'Update HumHub' => 'Ažuriraj HumHuB', - 'Update package invalid!' => 'Ažuriranje paketa nije važeće!', - 'Update successful' => 'Ažuriranje uspješno', - 'Validating package' => 'Potvrđujem pakete', -]; +return array ( + 'Update HumHub' => 'Ažuriraj HumHub', + 'Update to HumHub {version}' => 'Ažuriraj na HumHub {version}', + 'Abort' => 'Prekini', + 'Application folder not writable!' => 'U mapu aplikacije nije moguće zapisivanje!', + 'Application folder: {folder}' => 'Mapa aplikacije: {folder}', + 'Backup all your files & database before proceed' => 'Izradite sigurnosnu kopiju svih datoteka i baze podataka prije nego što nastavite', + 'Changes to HumHub core files may overwritten during update!' => 'Promjene u HumHub jezgrama mogu se prebrisati tijekom ažuriranja!', + 'Channel' => 'Kanal', + 'Cleanup update files' => 'Čišćenje ažuriranih datoteka', + 'Close' => 'Zatvori', + 'Could not extract update package!' => 'Ne mogu izvesti paket ažuriranja!', + 'Could not get update info online! (%error%)' => 'Ne mogu se ažurirati informacije o ažuriranju! (%error%)', + 'Do not use this updater in combination with Git or Composer installations!' => 'Nemojte koristiti ovaj updater u kombinaciji s instalacijama Git ili Composer!', + 'Downloading update package' => 'Preuzimanje paketa ažuriranja', + 'Extracting package files' => 'Izvoz paketa datoteka', + 'Installed PHP version not support!' => 'Instalirana PHP inačica ne podržava!', + 'Installing files' => 'Instaliranje datoteka', + 'Make sure all files are writable by application' => 'Provjerite jesu li u sve datoteke omogućeno zapisivanje od aplikacije', + 'Make sure all files are writable! (file)' => 'Provjerite mogu li sve datoteke biti upisane! (file)', + 'Make sure custom modules or themes are compatible with version %version%' => 'Provjerite jesu li prilagođeni moduli ili tema kompatibilni s verzijom %version%', + 'Migrating database' => 'Migracija baze podataka', + 'New updater version available!' => 'Dostupna je nova verzija updatera!', + 'No error message available. Please check logfiles!' => 'Nijedna poruka o pogrešci nije dostupna. Molimo provjerite log datoteke!', + 'Please note:' => 'Molim zabilježite:', + 'Please update installed marketplace modules before and after the update' => 'Ažurirajte module instaliranog tržišta prije i poslije ažuriranja', + 'Please update installed modules when new version is available!' => 'Ažurirajte instalirane module kada je dostupna nova verzija!', + 'Preparing system' => 'Priprema sustava', + 'Stable and beta versions' => 'Stabilna i beta verzija', + 'Stable versions only' => 'Samo stabilne verzije', + 'Start' => 'Početak', + 'Start update' => 'Počni ažuriranje', + 'Switch to default theme after update (strongly recommended)' => 'Prebacivanje na zadanu temu nakon ažuriranja (preporučljivo)', + 'The currently installed PHP version is too old. Please update before proceed.' => 'Trenutno instalirana verzija PHP prestara je. Ažurirajte prije nastavka.', + 'The update was successfully installed!' => 'Ažuriranje je uspješno instalirano!', + 'The updater requires write access to all files and folders in the application root folder.' => 'Ažuriranje zahtijeva pristup pisanju svih datoteka i mapa u korijenskoj mapi programa.', + 'There is a new update to %version% available!' => 'Dostupno je novo ažuriranje %version%!', + 'There is a new version of the updater module available. Please update before proceed.' => 'Dostupna je nova verzija modula za ažuriranje. Ažurirajte prije nastavka.', + 'There is no new HumHub update available!' => 'Nema novog ažuriranja za HumHub!', + 'Update HumHub' => 'Ažuriraj HumHuB', + 'Update package invalid!' => 'Ažuriranje paketa nije važeće!', + 'Update successful' => 'Ažuriranje uspješno', + 'Updater Configuration' => 'Konfiguracija nadogradnje', + 'Validating package' => 'Potvrđujem pakete', +);