Qiang Xue
d2b864da84
prepare for 2.0.0-rc release.
10 years ago
Carsten Brandt
f6ef6c978f
fixed crash of Formatter when intl is not installed
...
related to #5214
10 years ago
Carsten Brandt
3b0f561480
format timestamps with invalid date input
...
fixes #4989
10 years ago
Kartik Visweswaran
18b57af5ac
Better date parsing and formatting including 32 bit support
...
Enhances `normalizeDateTimeValue` to return a DateTime object instead of a converted double value, that fails. The DateTime object input is supported by 32 bit, 64 bit, as well as the `IntlDateFormatter` to format all years. (including fixing of the Y2K38 bug). Fixes issue in #4989 .
close #5000
10 years ago
Carsten Brandt
3ff548a442
Refactored DateValidator to support ICU format
10 years ago
Carsten Brandt
9edf938bf1
Added tests for empty values
...
use "just now" for empty time difference in Formatter.
fixed wrong language name definition
10 years ago
Carsten Brandt
be655d4f39
extracted date format converting to a helper class
...
adding and reworking the conversion of:
- ICU to PHP
- PHP to ICU
- ICU to JUI
- PHP to JUI
10 years ago
Carsten Brandt
b5af2f6ab3
fixed size format plural rule to not format number itself
...
This fix ensures the format configured in the formatter class is used in the message instead
of the default ICU format.
fixes #4960
10 years ago
Carsten Brandt
0723f409ab
finished the first structure of the guide on formatting
10 years ago
Carsten Brandt
c8f8f654ce
fixed paragraph formatting
10 years ago
Carsten Brandt
d82195706f
UPGRADE and CHANGELOG notes for the Formatter changes
10 years ago
Carsten Brandt
47648a4b9f
final cleanup
10 years ago
Carsten Brandt
3f75728083
refactored size format
10 years ago
Carsten Brandt
916d2c182d
ensure some BC
...
ensure some features that were recently added to formatter keep working after refactoring
10 years ago
Carsten Brandt
9418c9d236
unit tests and some locale depended fixes
10 years ago
Carsten Brandt
8d397e7f0e
finished currency formatter
10 years ago
Carsten Brandt
f8f0ff5445
moved formatter to i18n namespace
10 years ago
Carsten Brandt
62e7c3e9a6
fixed some inconsistnecies in HHVM tests
...
exclude parts that have different default values
10 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
Alexander Makarov
f66e28c4aa
Fixes #4199 : added missing category to logging calls
10 years ago
Carsten Brandt
4d6d95256f
remove FormatDefs file
...
we do not want our own i18n database.
When this kind of data is needed intl extension is a requirement.
10 years ago
Erik_r
299d991a2e
#2359 testcases adapted and compatibility to old tests improved
10 years ago
Erik_r
cf960e891f
Namespace corrected #2359
10 years ago
Erik_r
0995a740c8
Refactored formatter class #2359 which works with or without intl extension. Use PHP format patterns alsow with intl. Class is compatible with previous version.
10 years ago
Alexander Kochetov
333f521f1e
\yii\i18n\DbMessageSource code style fixes
10 years ago
Alexander Makarov
c7d8439072
Fixes #3687 : Default `sourceLanguage` and `language` are now `en-US` in order for i18n formatter to work correctly
10 years ago
leandrogehlen
e6f05c6b9a
Adjusted documentation
10 years ago
leandrogehlen
51c162d65e
Fixes typo
10 years ago
leandrogehlen
f072b55638
Renamed `Formatter::currencySymbol` to `currencyCode`
10 years ago
leandrogehlen
0efa0faaf7
Added comment about $currency when it is null
10 years ago
leandrogehlen
55ad347e62
Fixes typo
10 years ago
leandrogehlen
f7488579b2
Renamed Formatter::intlCurrencySymbol to currencySymbol
10 years ago
Leandro Gehlen
4ecbd201ec
Added `yii\i18n\Formatter::intlCurrencySymbol`
10 years ago
Alexander Makarov
d0ddb56639
Fixes #699 : fixed wrong usage of self and static
11 years ago
Alexander Makarov
009238156e
Fixed slashed to match guide
11 years ago
Carsten Brandt
91965fd391
phpdoc formatting issues
11 years ago
Thiago Talma
c1445871f4
Correction of many errors code inspection.
...
Adjustments code according to the standards.
Adding missing PHPDoc comment.
11 years ago
Alexander Makarov
ab799d8ea9
Fixes #2911 : Removed `tbl_` default for table prefix
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
Alexander Makarov
182fc6882e
Fixed overriding default message sources
11 years ago
Qiang Xue
8e11ad0360
refactored code to use Instance::ensure()
11 years ago
Qiang Xue
8c2e39235f
Turn module and application into DI containers.
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Qiang Xue
fad635440b
Fixes #2655 : Arrayable and ArrayableTrait are incompatible for some PHP versions.
11 years ago
AlexGx
eaaa5b1bb5
fix code style
11 years ago
Alexander Mohorev
95ea1c20bb
code style. FOREACH
11 years ago