From d43bb9d9638ba117bbaa0045250645dc843fcf7f Mon Sep 17 00:00:00 2001 From: Kartik Visweswaran Date: Sat, 24 Oct 2020 01:24:51 +0530 Subject: [PATCH] Updates to release v1.1.0 fix #162 fix #171 --- CHANGE.md | 12 ++++++++++++ LICENSE.md | 2 +- composer.json | 2 +- src/BaseAsset.php | 4 ++-- src/DomPurifyAsset.php | 28 ---------------------------- src/FileInput.php | 9 +++------ src/FileInputAsset.php | 4 ++-- src/FileInputThemeAsset.php | 4 ++-- src/PiExifAsset.php | 4 ++-- src/SortableAsset.php | 4 ++-- src/messages/config.php | 2 +- src/messages/uz/fileinput.php | 24 ++++++++++++++++++++++++ 12 files changed, 52 insertions(+), 47 deletions(-) delete mode 100644 src/DomPurifyAsset.php create mode 100644 src/messages/uz/fileinput.php diff --git a/CHANGE.md b/CHANGE.md index 6d2baa2..ce496fa 100644 --- a/CHANGE.md +++ b/CHANGE.md @@ -1,6 +1,18 @@ Change Log: `yii2-widget-fileinput` =================================== +## Version 1.1.0 + +**Date:** 24-Oct-2020 + +- (enh #171): Eliminate DOM Purify plugin and assets dependencies. +- (enh #169): Add German Translations. +- (enh #165): Add Latvian Translations. +- (enh #162): Add Uzbek Translations. +- (enh #159): Add Romanian Translations. +- (enh #157): Add Armenian Translations. +- Bump composer dependencies. + ## Version 1.0.9 **Date:** 19-Apr-2019 diff --git a/LICENSE.md b/LICENSE.md index 0447152..ce741c1 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -Copyright (c) 2014 - 2019, Kartik Visweswaran +Copyright (c) 2014 - 2020, Kartik Visweswaran Krajee.com All rights reserved. diff --git a/composer.json b/composer.json index ff7c67e..59c6fa8 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ }, "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.1.x-dev" } } } \ No newline at end of file diff --git a/src/BaseAsset.php b/src/BaseAsset.php index 0fc14c5..7e472d1 100644 --- a/src/BaseAsset.php +++ b/src/BaseAsset.php @@ -1,10 +1,10 @@ - * @since 1.0 - */ -class DomPurifyAsset extends BaseAsset -{ - /** - * @inheritdoc - */ - public function init() - { - $this->setupAssets('js', ['js/plugins/purify']); - parent::init(); - } -} \ No newline at end of file diff --git a/src/FileInput.php b/src/FileInput.php index e5ee7f5..25df9a0 100644 --- a/src/FileInput.php +++ b/src/FileInput.php @@ -1,10 +1,10 @@ sortThumbs) { SortableAsset::register($view); } - if ($this->purifyHtml) { - DomPurifyAsset::register($view); - $this->pluginOptions['purifyHtml'] = true; - } FileInputAsset::register($view)->addLanguage($this->language, '', 'js/locales'); } diff --git a/src/FileInputAsset.php b/src/FileInputAsset.php index e5d2dff..3228932 100644 --- a/src/FileInputAsset.php +++ b/src/FileInputAsset.php @@ -1,10 +1,10 @@ __DIR__, // array, required, list of language codes that the extracted messages // should be translated to. For example, ['zh-CN', 'de']. - 'languages' => ['ar', 'da', 'de', 'el-GR', 'en', 'es', 'fa', 'fr', 'hr', 'hu', 'hy-AM', 'id', 'it', 'lv', 'nl', 'pl', 'pt', 'ru', 'th', 'tr', 'zh'], + 'languages' => ['ar', 'da', 'de', 'el-GR', 'en', 'es', 'fa', 'fr', 'hr', 'hu', 'hy-AM', 'id', 'it', 'lv', 'nl', 'pl', 'pt', 'ru', 'th', 'tr', 'uz', 'zh'], // string, the name of the function for translating messages. // Defaults to 'Yii::t'. This is used as a mark to find the messages to be // translated. You may use a string for single function name or an array for diff --git a/src/messages/uz/fileinput.php b/src/messages/uz/fileinput.php new file mode 100644 index 0000000..0d5caa4 --- /dev/null +++ b/src/messages/uz/fileinput.php @@ -0,0 +1,24 @@ + 'oldindan ko`rish va bir nechta fayllarni yuklash', + 'Note:' => 'Izoh:', + 'multiple file upload' => 'bir nechta faylni yuklash', + 'Your browser does not support {validation}. Try an alternative or more recent browser to access these features.' => 'Sizning brauzeringiz {validation} -ni qo`llab-quvvatlamaydi. Ushbu xususiyatlarga kirish uchun yangi versiyasini yoki boshqa brauzerini sinab ko`ring.' +]; \ No newline at end of file