Skip to content

Commit

Permalink
Updates to release v1.1.0 fix #162 fix #171
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed Oct 23, 2020
1 parent 9ab1fa3 commit d43bb9d
Show file tree
Hide file tree
Showing 12 changed files with 52 additions and 47 deletions.
12 changes: 12 additions & 0 deletions CHANGE.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2014 - 2019, Kartik Visweswaran
Copyright (c) 2014 - 2020, Kartik Visweswaran
Krajee.com
All rights reserved.

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "1.0.x-dev"
"dev-master": "1.1.x-dev"
}
}
}
4 changes: 2 additions & 2 deletions src/BaseAsset.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2019
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2020
* @package yii2-widgets
* @subpackage yii2-widget-fileinput
* @version 1.0.9
* @version 1.1.0
*/

namespace kartik\file;
Expand Down
28 changes: 0 additions & 28 deletions src/DomPurifyAsset.php

This file was deleted.

9 changes: 3 additions & 6 deletions src/FileInput.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2019
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2020
* @package yii2-widgets
* @subpackage yii2-widget-fileinput
* @version 1.0.9
* @version 1.1.0
*/

namespace kartik\file;
Expand Down Expand Up @@ -47,6 +47,7 @@ class FileInput extends InputWidget

/**
* @var boolean whether to load dom purify plugin to purify HTML content in purfiy
* @deprecated since v1.1.0 (not required since bootstrap-fileinput v5.1.3)
*/
public $purifyHtml = true;

Expand Down Expand Up @@ -165,10 +166,6 @@ public function registerAssetBundle()
if ($this->sortThumbs) {
SortableAsset::register($view);
}
if ($this->purifyHtml) {
DomPurifyAsset::register($view);
$this->pluginOptions['purifyHtml'] = true;
}
FileInputAsset::register($view)->addLanguage($this->language, '', 'js/locales');
}

Expand Down
4 changes: 2 additions & 2 deletions src/FileInputAsset.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2019
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2020
* @package yii2-widgets
* @subpackage yii2-widget-fileinput
* @version 1.0.9
* @version 1.1.0
*/

namespace kartik\file;
Expand Down
4 changes: 2 additions & 2 deletions src/FileInputThemeAsset.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2019
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2020
* @package yii2-widgets
* @subpackage yii2-widget-fileinput
* @version 1.0.9
* @version 1.1.0
*/

namespace kartik\file;
Expand Down
4 changes: 2 additions & 2 deletions src/PiExifAsset.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2019
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2020
* @package yii2-widgets
* @subpackage yii2-widget-fileinput
* @version 1.0.9
* @version 1.1.0
*/

namespace kartik\file;
Expand Down
4 changes: 2 additions & 2 deletions src/SortableAsset.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

/**
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2019
* @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2020
* @package yii2-widgets
* @subpackage yii2-widget-fileinput
* @version 1.0.9
* @version 1.1.0
*/

namespace kartik\file;
Expand Down
2 changes: 1 addition & 1 deletion src/messages/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
'messagePath' => __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
Expand Down
24 changes: 24 additions & 0 deletions src/messages/uz/fileinput.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php
/**
* Message translations.
*
* This file is automatically generated by 'yii message/extract' command.
* It contains the localizable messages extracted from source code.
* You may modify this file by translating the extracted messages.
*
* Each array element represents the translation (value) of a message (key).
* If the value is empty, the message is considered as not translated.
* Messages that no longer need translation will have their translations
* enclosed between a pair of '@@' marks.
*
* Message string can be used with plural forms format. Check i18n section
* of the guide for details.
*
* NOTE: this file must be saved in UTF-8 encoding.
*/
return [
'file preview and multiple file upload' => '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.'
];

0 comments on commit d43bb9d

Please sign in to comment.