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
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
Alexander Makarov
215862a91e
Don't test FormatterDate DATE_ATOM with PHP 5.5 ( #17879 )
2020-02-19 23:22:11 +03:00
Alexander Makarov
93073c9c41
Execute FormatterDate intl test to PHP 5.5+ only ( #17876 )
2020-02-19 20:17:02 +03:00
Alexander Makarov
f5205a83ea
Skip NumberFormatter::asScientific() intl test ( #17837 )
2020-01-29 15:11:12 +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 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
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
e16dcd9674
added test to verify intl number formatter works with text options
...
issue https://github.com/yiisoft/yii2/issues/16900
2018-11-22 09:58:39 +01:00
Alexander Makarov
8a155701c2
Fixed test class name
2018-02-03 18:29:23 +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
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
Alexander Makarov
4270470523
Various test fixes (mostly Windows-specific) ( #15336 )
2017-12-11 22:59:17 +03:00
Elvira Sheina
10e7b1b541
Fixes #14276 : Fixed I18N format with dotted parameters
2017-11-15 00:26:10 +03:00
Alexander Makarov
fb23b0d0ea
Code style fixes
2017-11-01 02:43:02 +03:00
SilverFire - Dmitry Naumenko
336404e0b9
PHP7.2RC5: enabled INTL tests, continue disabling some cases in FileValidator
2017-10-26 12:29:48 +03:00
Dmitry Naumenko
64d8af61a6
Fixes for PHP 7.2 compatibility ( #14959 )
2017-10-19 01:54:40 +03:00
Robert Korulczyk
c78201899b
Fixes #13720 : Improve yii\helpers\FormatConverter::convertDatePhpToIcu() to handle escaped chars correctly
2017-10-08 18:07:26 +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
0c0942d6e2
Enable phpdoc_add_missing_param_annotation rule in php-cs-fixer config. ( #14681 ) [skip ci]
2017-08-21 01:57:23 +03:00
Robert Korulczyk
9b118aafa0
Enable non_printable_character rule in php-cs-fixer config ( #14667 )
...
* Use "\u{00a0}" as nbsp.
* Enable non_printable_character rule.
* Fix test for PHP 5.
2017-08-18 13:59:57 +02:00
Robert Korulczyk
b99e955627
Fix CS ( #14665 )
...
* Run php-cs-fixer.
* Enable phpdoc_types rule.
2017-08-18 12:10:42 +02:00
Tomáš Votruba
7ad94a0107
[cs] remove unused use statements ( #14661 ) [skip ci]
2017-08-18 01:24:43 +03:00
SilverFire - Dmitry Naumenko
87f988fe54
One more try to fix tests on Travis
2017-08-16 11:44:49 +03:00
SilverFire - Dmitry Naumenko
6424acf67f
One more try to fix tests on Travis
2017-08-16 08:33:25 +03: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
bscheshirwork
0c0cc1074d
fix current time in formatter ( #14203 )
...
* fix current time in formatter
* expand testAsDatetime
* Update FormatterDateTest.php
* Update CHANGELOG.md
2017-08-03 10:20:37 +02:00
Robert Korulczyk
12eb936083
Enable heredoc_to_nowdoc rule in php-cs-fixer ( #14419 )
2017-07-10 13:18:52 +03:00
Carsten Brandt
fadeb5d2b4
added formatter as second paramter to format closure
...
to allow reusing the formatter in custom formats.
fixes #4495
addition to #14326
2017-07-03 11:34:20 +02:00
Elvira Sheina
aca7390a47
Added closure support in yii\i18n\Formatter #4495 ( #14326 )
2017-07-03 11:11:35 +02:00
Robert Korulczyk
ba0ab403b5
Added php-cs-fixer coding standards validation to Travis CI ( #14100 )
...
* php-cs-fixer: PSR2 rule.
* php-cs-fixer: PSR2 rule - fix views.
* Travis setup refactoring.
* Add php-cs-fixer to travis cs tests.
* Fix tests on hhvm-3.12
* improve travis config
* composer update
* revert composer update
* improve travis config
* Fix CS.
* Extract config to separate classes.
* Extract config to separate classes.
* Add file header.
* Force short array syntax.
* binary_operator_spaces fixer
* Fix broken tests
* cast_spaces fixer
* concat_space fixer
* dir_constant fixer
* ereg_to_preg fixer
* function_typehint_space fixer
* hash_to_slash_comment fixer
* is_null fixer
* linebreak_after_opening_tag fixer
* lowercase_cast fixer
* magic_constant_casing fixer
* modernize_types_casting fixer
* native_function_casing fixer
* new_with_braces fixer
* no_alias_functions fixer
* no_blank_lines_after_class_opening fixer
* no_blank_lines_after_phpdoc fixer
* no_empty_comment fixer
* no_empty_phpdoc fixer
* no_empty_statement fixer
* no_extra_consecutive_blank_lines fixer
* no_leading_import_slash fixer
* no_leading_namespace_whitespace fixer
* no_mixed_echo_print fixer
* no_multiline_whitespace_around_double_arrow fixer
* no_multiline_whitespace_before_semicolons fixer
* no_php4_constructor fixer
* no_short_bool_cast fixer
* no_singleline_whitespace_before_semicolons fixer
* no_spaces_around_offset fixer
* no_trailing_comma_in_list_call fixer
* no_trailing_comma_in_singleline_array fixer
* no_unneeded_control_parentheses fixer
* no_unused_imports fixer
* no_useless_return fixer
* no_whitespace_before_comma_in_array fixer
* no_whitespace_in_blank_line fixer
* not_operator_with_successor_space fixer
* object_operator_without_whitespace fixer
* ordered_imports fixer
* php_unit_construct fixer
* php_unit_dedicate_assert fixer
* php_unit_fqcn_annotation fixer
* phpdoc_indent fixer
* phpdoc_no_access fixer
* phpdoc_no_empty_return fixer
* phpdoc_no_package fixer
* phpdoc_no_useless_inheritdoc fixer
* Fix broken tests
* phpdoc_return_self_reference fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_single_line_var_spacing fixer
* phpdoc_to_comment fixer
* phpdoc_trim fixer
* phpdoc_var_without_name fixer
* psr4 fixer
* self_accessor fixer
* short_scalar_cast fixer
* single_blank_line_before_namespace fixer
* single_quote fixer
* standardize_not_equals fixer
* ternary_operator_spaces fixer
* trailing_comma_in_multiline_array fixer
* trim_array_spaces fixer
* protected_to_private fixer
* unary_operator_spaces fixer
* whitespace_after_comma_in_array fixer
* `parent::setRules()` -> `$this->setRules()`
* blank_line_after_opening_tag fixer
* Update finder config.
* Revert changes for YiiRequirementChecker.
* Fix array formatting.
* Add missing import.
* Fix CS for new code merged from master.
* Fix some indentation issues.
2017-06-12 12:25:45 +03:00
Carsten Brandt
2b9f0006d5
added example for using unsupported PHP format in yii formatter
...
fixes #14278
2017-06-09 12:07:38 +02:00
Klimov Paul
d8e6a89af9
fixed tests without assettions
2017-04-13 16:17:35 +03:00
Klimov Paul
04a14efd3f
compatibility with PHPUnit 6.x fix
2017-04-13 15:29:10 +03:00
Klimov Paul
dee88787fc
compatibility with PHPUnit 6.x added
2017-04-13 14:49:43 +03:00
Alexander Makarov
cc44339a45
Improved intl tests to tolerate ICU data differences
...
- Added new assertion.
- Adjusted tests not to rely on intl version allowing multiple valid variants for Russian and Ukrainian currencies and transliteration.
2017-03-18 10:53:43 +03:00
Alexander Makarov
18b3fa10c5
Fixed ICU tests take varieties of data into account ( #13751 )
2017-03-14 09:47:56 +03:00