Commit Graph

236 Commits

Author SHA1 Message Date
蛋蛋
d5a428e001 Fix some code smells (#18696) 2021-06-05 13:37:45 +03:00
stevekr
6182284039 Update Formatter types 2021-03-04 17:03:03 +03:00
Alexander Makarov
4e2045c040 release version 2.0.41 2021-03-04 00:51:35 +03:00
Bizley
684310828b Fix #18464: Fix bug with processing fallback messages when translation language is set to null 2021-01-11 15:18:39 +03:00
Bizley
b8f4958092 Fix #18442: Fix calls with array access to strings 2020-12-23 01:08:58 +03:00
Alexander Makarov
ccb14ff667 release version 2.0.39 2020-11-10 13:58:35 +03:00
stevekr
f3f5312469 Update BaseHtml and Formatter typehints (#18185) 2020-07-19 11:14:45 +03:00
Alexander Makarov
d07cbdaab3 Fix #17975: Fix deleting unused messages with console command if message tables were created manually (auerswald, cebe)
Co-authored-by: AA <auerswald@users.noreply.github.com>
Co-authored-by: Carsten Brandt <mail@cebe.cc>
2020-05-02 13:45:38 +03:00
XPOHOC
e20358241c Fix #17993: Added yii\i18n\Formatter::$currencyDecimalSeparator to allow setting custom symbols for currency decimal in IntlNumberFormatter 2020-05-02 11:58:01 +03:00
TheCodeholic
0ba67fac0c Fix #17767: Make Formatter::formatNumber method protected 2020-01-04 19:59:06 +03:00
Brandon Kelly
5efe0bda8f Fix #17585: Fix yii\i18n\Formatter including the @calendar locale param in Yii::t() calls 2019-10-07 18:45:51 +03:00
Alexander Kartavenko
a9097dbac3 Fix #17435: Fixed i18n_init migration for MSSQL 2019-07-15 23:05:26 +03:00
Alexander Makarov
33405fa4a5 Fixes #17268: Fixed Formatter didn't take power into account 2019-04-15 17:48:32 +03:00
Diego Tibi
72b4e6d47c kB instead of KB (#16368)
* kB instead of KB

When kilobyte is referred to 1000 bytes the abbreviation should be written with lower case "k" as kB. Upper case K is usually intended to refer to 1024 multiplier
See this page: https://en.wikipedia.org/wiki/Kilobyte
2019-03-20 21:04:43 +03:00
Pavel Dovlatov
bdb7c64910 Update to https protocol for php.net links (#17168) [skip ci]
* Updated php.net link for some MemCache properties [skip ci]

* Changed protocol to https for links to php.net in comments

* Changed protocol to https for links to php.net in code

* Changed www.php.net (http) to secure.php.net (https) in comments

* Changed www.php.net (http) to secure.php.net (https) in code

* Changed protocol to https for links to php.net in UPGRADE.md

* Changed protocol to https for links to pecl.php.net in comments

* Changed us.php.net to secure.php.net (https) in comments

* Changed protocol to https for links to php.net in docs

* Changed www.php.net (http) to secure.php.net (https) in docs

* Changed protocol to https for links to pecl.php.net in docs

* Changed ru/jp.php.net to secure.php.net (https) in docs

Don't sure about russian guide: is this links meant to be for guide on russian, or not?
2019-02-28 13:09:27 +03:00
Carsten Brandt
ed64d65886 release version 2.0.16 2019-01-31 00:54:16 +01:00
Pavel Ivanov
22d30f1999 Fixes #15286: Fixed incorrect formatting of time with timezone information 2019-01-09 09:59:56 -05:00
Bizley
1db55e6b0d Normalizing string numeric (#16943) 2018-12-10 11:50:50 +03:00
SilverFire - Dmitry Naumenko
4d3a140482 Fixed additional regression in number formatting
Related to https://github.com/yiisoft/yii2/issues/16934
2018-12-06 17:35:30 +02:00
SilverFire - Dmitry Naumenko
a03376413c Fixed regression in formatter when passed value is a string representation of float without decimals 2018-12-03 18:22:11 +02:00
Carsten Brandt
8bccbd595d Update Formatter.php 2018-12-03 11:33:40 +01:00
Carsten Brandt
fe07177ddd Update Formatter.php 2018-12-03 09:56:28 +01:00
Bizley
bbfa45f133 Removed wrong spellout formatter test (#16924) 2018-12-01 23:43:02 +03:00
Bizley
59e99a67c7 Fixes #14950: Fixed yii\i18n\Formatter methods asInteger, asDecimal, asPercent, and asCurrency outputs for very big numbers 2018-11-29 18:16:19 +03:00
Carsten Brandt
40d8639a91 Update Formatter.php 2018-11-02 10:20:28 +01:00
Vladimir Reznichenko
1a74b3d4f8 [minor] SCA with Php Inspections (EA Ultimate) (#15871)
* Php Inspections (EA Ultimate): use type casting where applicable

* Php Inspections (EA Ultimate): use constants where applicable

* Php Inspections (EA Ultimate): CS

* Php Inspections (EA Ultimate): address some of one-time used variables

* Php Inspections (EA Ultimate): address some of performance-related findings

* Php Inspections (EA Ultimate): address some of performance-related findings

* Php Inspections (EA Ultimate): revert a constant usage

* Php Inspections (EA Ultimate): revert sequential assignments

* Php Inspections (EA Ultimate): build is green again

* Php Inspections (EA Ultimate): revert array_merge tweaks

* Php Inspections (EA Ultimate): revert BC-incompatible one-time used variable tweak

* Update description [skip ci]

* Php Inspections (EA Ultimate): CS
2018-03-12 01:37:19 +03:00
Vladimir Reznichenko
f10cb6aeee SCA with Php Inspections (EA Ultimate) 2018-02-27 19:13:22 +01:00
SilverFire - Dmitry Naumenko
22832b7c49 release version 2.0.14 2018-02-19 00:27:09 +02:00
Brandon Kelly
e6f5c46cdc Fixes #15633: Deprecate some things going away/changing in 2.1
- Deprecated `yii\base\BaseObject::className()` in favor of native PHP syntax `::class`, which does not trigger autoloading
- Deprecated XCache and Zend data cache support as caching backends
- Deprecated `yii\BaseYii::powered()` method
- Added `yii\base\InvalidArgumentException` and deprecated `yii\base\InvalidParamException`
- Added `yii\BaseYii::debug()` and deprecated `yii\BaseYii::trace()`
2018-02-11 01:48:29 +03:00
Alexander Makarov
e9bec0d246 Reordered property to top [skip ci] 2018-02-07 11:55:43 +03:00
Alexander Makarov
10eac963d3 Fixed typo [skip ci] 2018-02-03 18:55:27 +03:00
Alexander Makarov
63fdd26b7e Fixes #8527: Added yii\i18n\Locale component having getCurrencySymbol() method
Co-authored-by: Anton Gubarev <a.p.gubarev@gmail.com>
2018-02-03 18:01:54 +03:00
Klimov Paul
65f6b59b35 @inheritdoc notation changed 2018-01-23 13:11:24 +02:00
Oleg Poludnenko
ebd3d61a1b Fixes #14980: Fix looping in yii\i18n\MessageFormatter tokenize pattern if pattern is invalid 2018-01-18 01:38:41 +03:00
Elvira Sheina
2dc4e8e6b2 Fixed translating a string when NULL parameter is passed [#15169] 2018-01-04 10:46:56 +05:00
Vladimir Khramtsov
b44bbd6a13 Fix code issues (#15435)
* Fix some scrunitizer warnings

* Remove obsolete require

* Fix codestyle
2018-01-01 16:21:37 +03:00
Elvira Sheina
10e7b1b541 Fixes #14276: Fixed I18N format with dotted parameters 2017-11-15 00:26:10 +03:00
Alexander Makarov
2d672b6722 release version 2.0.13 2017-11-03 01:09:29 +03:00
Alexander Makarov
376006a2d5 Data filter enhancements and docs
- Added docs.
- Moved to "data" namespace.
- Moved messages to "yii" category.
- Added Russian messages translation.
2017-10-26 11:32:52 +03:00
Dmitry Naumenko
64d8af61a6 Fixes for PHP 7.2 compatibility (#14959) 2017-10-19 01:54:40 +03:00
Paul Klimov
744b87fabc Fixes #4479: Implemented REST filters 2017-10-09 00:01:58 +02:00
Erkan Karataş
aaedd200b0 Formatter asDatetime() documentation $format fix (#14708)
In the description asDatetime() function about the $format parameter it says that the default value is taken from $dateFormat while the correct is $datetimeFormat
2017-08-23 09:44:05 +02:00
SilverFire - Dmitry Naumenko
0e2b6c41b8 Simplified API of Formatter::asWeight() and Formatter::asLength() methods 2017-08-21 13:10:19 +03:00
Robert Korulczyk
5a8c3d537b Enable phpdoc_summary rule in php-cs-fixer config (#14675)
* Enable `phpdoc_summary` rule in php-cs-fixer config.

* Fix case in "PHPDoc".
2017-08-21 11:19:35 +02:00
Robert Korulczyk
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00
Robert Korulczyk
b99e955627 Fix CS (#14665)
* Run php-cs-fixer.

* Enable phpdoc_types rule.
2017-08-18 12:10:42 +02:00
SilverFire - Dmitry Naumenko
b9f582dbf3 Try to fix tests on Travis 2017-08-16 08:04:35 +03:00
SilverFire - Dmitry Naumenko
7c73b0b79d Enhanced tests, updated CHNAGELOG 2017-08-15 23:13:59 +03:00
SilverFire - Dmitry Naumenko
b577e302f7 Enhanced PHPDocs, added tests 2017-08-14 23:48:33 +03:00
SilverFire - Dmitry Naumenko
4028c69ed5 Merge branch 'master' into nineinchnick-9703-si-formatters
Conflicts:
	framework/i18n/Formatter.php
2017-08-14 22:55:45 +03:00