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 |
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
|
fe8a0a6a2e
|
Enable `no_useless_else` rule in php-cs-fixer (#14420)
|
7 years ago |
Robert Korulczyk
|
450eefaa50
|
Some phpdoc fixes from scrutinizer.
|
8 years ago |
Robert Korulczyk
|
4aa935e69e
|
Fixes #12055: Changed `boolean` to `bool` and `integer` to `int` in phpdoc
|
8 years ago |
Carsten Brandt
|
b0bb8649a3
|
HHVM compatible fix for messageformatter error
fixes #11528
|
8 years ago |
Carsten Brandt
|
91f1ac1d99
|
fixed exception on malformed message in Messageformatter
this exception is thrown since PHP7
fix is compatible with older versions.
close #11644
fixes #11528
|
8 years ago |
Alexander Makarov
|
3b5634bf8b
|
Fixes #11863: Fixed usage of `mb_substr` with PHP < 5.4.8 where length of NULL was treated the same as 0
|
8 years ago |
Carsten Brandt
|
191f2a4943
|
fixed phpdoc type names
|
9 years ago |
Carsten Brandt
|
645e78e832
|
fixed message formatter for input where no parameters are provided
fixes #10884
|
9 years ago |
AnatolyRugalev
|
3b31aa771a
|
#10363: Fixed i18n fallback float and integer formatting
|
9 years ago |
SilverFire - Dima Naumenko
|
a6e1ba2cf6
|
Fixed mb_ functions calls to use UTF-8 or app charset
|
9 years ago |
Carsten Brandt
|
255eec3ddd
|
fixed typo
|
9 years ago |
Alexander Makarov
|
1b3770fd21
|
Use === instead of == where possible
|
9 years ago |
Alexander Makarov
|
5ab4f0f090
|
Better quotes usage in strings
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
|
9 years ago |
jeicd
|
0407407b76
|
fix coding style to follow PSR-2
|
9 years ago |
Alexander Makarov
|
97f2fca72f
|
Fixes #9678: `I18N::format()` wasn't able to handle named placeholder in "selectordinal"
|
9 years ago |
RichWeber
|
92cd13a913
|
pull origin
|
10 years ago |
Alexander Makarov
|
100ba6c3ab
|
Replaced substr_compare with strncmp where possible
|
10 years ago |
Carsten Brandt
|
3a1e0f3a5c
|
property codestyle framework
|
10 years ago |
Alexander Makarov
|
1c414caace
|
Improved checks where substr_compare is used, replaced more substr + comapre cases with substr_compare
|
10 years ago |
Thiago Talma
|
c1445871f4
|
Correction of many errors code inspection.
Adjustments code according to the standards.
Adding missing PHPDoc comment.
|
11 years ago |
Carsten Brandt
|
d1663a5fb7
|
fixed potential problem with MessageFormatter and broken messages
|
11 years ago |
Carsten Brandt
|
bf3c75147d
|
reverted breaking PHPdoc codestyle changes
issue #2852
|
11 years ago |
SonicGD
|
b5f8a4dc22
|
Reformat code te be PSR-2 compatible
|
11 years ago |
AlexGx
|
eaaa5b1bb5
|
fix code style
|
11 years ago |
Alexander Mohorev
|
95ea1c20bb
|
code style. FOREACH
|
11 years ago |
Alexander Mohorev
|
c7e8d8b900
|
@param, @var, @property and @return must declare types as boolean, integer, string, array or null
|
11 years ago |
Alexander Makarov
|
17ca07fd44
|
More consistent usage of MessageFormatter::tokenizePattern
|
11 years ago |
Alexander Makarov
|
349f2c9e32
|
phpdoc fixes, unused variable
|
11 years ago |
Qiang Xue
|
0c38655217
|
psr-4 move
|
11 years ago |
Carsten Brandt
|
a0b0d42b46
|
fixed message formatting for all the ICU versions
- refactored replaceNamedArguments.
- ensure gridview message works on all systems.
fixes #1072
|
11 years ago |
Carsten Brandt
|
6559b06ead
|
made intl messages more compatible with various ICU versions
issue #1072
|
11 years ago |
Alexander Mohorev
|
51211898f8
|
Control statements based on the if and elseif constructs must have a single space before the opening parenthesis of the conditional and a single space after the closing parenthesis.
|
11 years ago |
Carsten Brandt
|
66b27fcaf1
|
fixes #1092
|
11 years ago |
Carsten Brandt
|
7bb4826a0b
|
doc fix
|
11 years ago |
Carsten Brandt
|
d637a76f56
|
add support for named arguments to messageformatter parse
|
11 years ago |
Carsten Brandt
|
61b0d8824b
|
support integer number type in fallback message formatter
|
11 years ago |
Carsten Brandt
|
4d03699907
|
fixed fallback message format parameter order
|
11 years ago |
Carsten Brandt
|
bcd1ad11a4
|
refactored MessageFormatter
|
11 years ago |
Carsten Brandt
|
449eb84247
|
refactored message formatter
|
11 years ago |
Qiang Xue
|
9ca98d6239
|
refactoring I18N.
|
11 years ago |
Carsten Brandt
|
5b9b97276e
|
implemented plural and select for fallback intl message formatter
|
11 years ago |
Carsten Brandt
|
a6b7d75b71
|
added replacement class for intl MessageFormatter
|
11 years ago |
Alexander Makarov
|
1f6a823073
|
Short array syntax
|
11 years ago |
Qiang Xue
|
f6f02102ca
|
typo fix.
|
11 years ago |
Alexander Makarov
|
bf7a084224
|
removed needFix method
|
11 years ago |
Alexander Makarov
|
da8f17955f
|
Removed intl version check since it's very inconsistent and it seems bundled versions are always the same ones for the same PHP versions
|
11 years ago |