stevekr
f3f5312469
Update BaseHtml and Formatter typehints ( #18185 )
4 years ago
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>
4 years ago
XPOHOC
e20358241c
Fix #17993 : Added `yii\i18n\Formatter::$currencyDecimalSeparator` to allow setting custom symbols for currency decimal in IntlNumberFormatter
4 years ago
TheCodeholic
0ba67fac0c
Fix #17767 : Make `Formatter::formatNumber` method protected
5 years ago
Brandon Kelly
5efe0bda8f
Fix #17585 : Fix `yii\i18n\Formatter` including the `@calendar` locale param in `Yii::t()` calls
5 years ago
Alexander Kartavenko
a9097dbac3
Fix #17435 : Fixed `i18n_init` migration for MSSQL
5 years ago
Alexander Makarov
33405fa4a5
Fixes #17268 : Fixed Formatter didn't take power into account
6 years ago
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
6 years ago
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?
6 years ago
Carsten Brandt
ed64d65886
release version 2.0.16
6 years ago
Pavel Ivanov
22d30f1999
Fixes #15286 : Fixed incorrect formatting of time with timezone information
6 years ago
Bizley
1db55e6b0d
Normalizing string numeric ( #16943 )
6 years ago
SilverFire - Dmitry Naumenko
4d3a140482
Fixed additional regression in number formatting
...
Related to https://github.com/yiisoft/yii2/issues/16934
6 years ago
SilverFire - Dmitry Naumenko
a03376413c
Fixed regression in formatter when passed value is a string representation of float without decimals
6 years ago
Carsten Brandt
8bccbd595d
Update Formatter.php
6 years ago
Carsten Brandt
fe07177ddd
Update Formatter.php
6 years ago
Bizley
bbfa45f133
Removed wrong spellout formatter test ( #16924 )
6 years ago
Bizley
59e99a67c7
Fixes #14950 : Fixed `yii\i18n\Formatter` methods `asInteger`, `asDecimal`, `asPercent`, and `asCurrency` outputs for very big numbers
6 years ago
cuileon
489dd119a5
merge from yiisoft/yii2
6 years ago
Carsten Brandt
40d8639a91
Update Formatter.php
6 years ago
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
7 years ago
Vladimir Reznichenko
f10cb6aeee
SCA with Php Inspections (EA Ultimate)
7 years ago
SilverFire - Dmitry Naumenko
22832b7c49
release version 2.0.14
7 years ago
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()`
7 years ago
Alexander Makarov
e9bec0d246
Reordered property to top [skip ci]
7 years ago
Alexander Makarov
10eac963d3
Fixed typo [skip ci]
7 years ago
Alexander Makarov
63fdd26b7e
Fixes #8527 : Added `yii\i18n\Locale` component having `getCurrencySymbol()` method
...
Co-authored-by: Anton Gubarev <a.p.gubarev@gmail.com>
7 years ago
Klimov Paul
65f6b59b35
`@inheritdoc` notation changed
7 years ago
Oleg Poludnenko
ebd3d61a1b
Fixes #14980 : Fix looping in `yii\i18n\MessageFormatter` tokenize pattern if pattern is invalid
7 years ago
Elvira Sheina
2dc4e8e6b2
Fixed translating a string when NULL parameter is passed [ #15169 ]
7 years ago
Vladimir Khramtsov
b44bbd6a13
Fix code issues ( #15435 )
...
* Fix some scrunitizer warnings
* Remove obsolete require
* Fix codestyle
7 years ago
Elvira Sheina
10e7b1b541
Fixes #14276 : Fixed I18N format with dotted parameters
7 years ago
Alexander Makarov
2d672b6722
release version 2.0.13
7 years ago
Alexander Makarov
376006a2d5
Data filter enhancements and docs
...
- Added docs.
- Moved to "data" namespace.
- Moved messages to "yii" category.
- Added Russian messages translation.
7 years ago
Dmitry Naumenko
64d8af61a6
Fixes for PHP 7.2 compatibility ( #14959 )
7 years ago
Paul Klimov
744b87fabc
Fixes #4479 : Implemented REST filters
7 years ago
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
7 years ago
SilverFire - Dmitry Naumenko
0e2b6c41b8
Simplified API of `Formatter::asWeight()` and `Formatter::asLength()` methods
7 years ago
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".
7 years ago
Robert Korulczyk
1501c659ac
Add empty lines before return statements. ( #14682 ) [skip ci]
7 years ago
Robert Korulczyk
b99e955627
Fix CS ( #14665 )
...
* Run php-cs-fixer.
* Enable phpdoc_types rule.
7 years ago
SilverFire - Dmitry Naumenko
b9f582dbf3
Try to fix tests on Travis
7 years ago
SilverFire - Dmitry Naumenko
7c73b0b79d
Enhanced tests, updated CHNAGELOG
7 years ago
SilverFire - Dmitry Naumenko
b577e302f7
Enhanced PHPDocs, added tests
7 years ago
bscheshirwork
0c0cc1074d
fix current time in formatter ( #14203 )
...
* fix current time in formatter
* expand testAsDatetime
* Update FormatterDateTest.php
* Update CHANGELOG.md
7 years ago
Dmitry Dorogin
21d2d72534
Fixes #14487 : Changed i18n message error to warning
7 years ago
Robert Korulczyk
a50d9d8e3e
Enable `include` rule in php-cs-fixer ( #14418 )
7 years ago
Robert Korulczyk
fe8a0a6a2e
Enable `no_useless_else` rule in php-cs-fixer ( #14420 )
7 years ago
Carsten Brandt
fadeb5d2b4
added formatter as second paramter to format closure
...
to allow reusing the formatter in custom formats.
fixes #4495
addition to #14326
7 years ago
Elvira Sheina
aca7390a47
Added closure support in `yii\i18n\Formatter` #4495 ( #14326 )
7 years ago