Alexander Mohorev
f1edafffaf
PHPDoc comment doesn't contain all necessary @throws tag
...
close #5762
2014-10-25 12:47:08 +02:00
Alexander Makarov
49760b64dd
Fixes #5595 : Better phpdoc value types for Formatter methods
2014-10-19 00:23:47 +04:00
Alexander Makarov
02622b6fe4
phpdoc fixes and additions
2014-10-14 01:35:21 +04:00
Alexander Makarov
327dde72f4
Fixes #5467 : Added ability to pass HTML tag options to asEmail(), asImage() and asUrl() methods of yii\i18n\Formatter
2014-10-10 12:00:44 +04:00
Alexey Kolmakov
ce4bf84452
#5467 Allow pass options to Html:a in Formatter:asUrl
2014-10-10 11:47:12 +04:00
Carsten Brandt
1b052f3e94
updated formatter docs and allow using DateTimeImmutable
...
see http://derickrethans.nl/immutable-datetime.html
by @derickr
2014-10-09 13:18:16 +02:00
Carsten Brandt
dfd68954a5
finished guide on formatting
2014-10-06 20:48:44 +02:00
Carsten Brandt
dfc4de877f
ensure integer is formatted without fraction digits
...
fixes #5179
2014-10-03 19:39:04 +02:00
Serge Bezborodov
76ade0f6b0
Changed order of attributes setting in Formatter
...
close #5261
2014-10-01 00:58:15 +02:00
Carsten Brandt
0818c9bbfc
do not override config when intl is not installed
...
fixes #5260
2014-10-01 00:46:28 +02:00
Carsten Brandt
6267b9ee1a
Fixed issue with timezone conversion in formatter
...
related to #5128
2014-09-30 02:15:45 +02:00
Qiang Xue
d2b864da84
prepare for 2.0.0-rc release.
2014-09-27 21:59:54 -04:00
Carsten Brandt
f6ef6c978f
fixed crash of Formatter when intl is not installed
...
related to #5214
2014-09-28 00:34:29 +02:00
Carsten Brandt
3b0f561480
format timestamps with invalid date input
...
fixes #4989
2014-09-23 12:13:00 +02:00
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
2014-09-23 11:59:19 +02:00
Carsten Brandt
3ff548a442
Refactored DateValidator to support ICU format
2014-09-16 22:53:12 +02:00
Carsten Brandt
9edf938bf1
Added tests for empty values
...
use "just now" for empty time difference in Formatter.
fixed wrong language name definition
2014-09-16 19:48:52 +02:00
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
2014-09-16 19:48:52 +02:00
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
2014-09-10 21:53:29 +02:00
Carsten Brandt
0723f409ab
finished the first structure of the guide on formatting
2014-09-10 19:24:14 +02:00
Carsten Brandt
c8f8f654ce
fixed paragraph formatting
2014-09-10 18:41:25 +02:00
Carsten Brandt
d82195706f
UPGRADE and CHANGELOG notes for the Formatter changes
2014-09-10 17:56:25 +02:00
Carsten Brandt
47648a4b9f
final cleanup
2014-09-09 00:00:45 +02:00
Carsten Brandt
3f75728083
refactored size format
2014-09-08 23:34:51 +02:00
Carsten Brandt
916d2c182d
ensure some BC
...
ensure some features that were recently added to formatter keep working after refactoring
2014-09-08 20:46:02 +02:00
Carsten Brandt
9418c9d236
unit tests and some locale depended fixes
2014-09-08 19:56:01 +02:00
Carsten Brandt
8d397e7f0e
finished currency formatter
2014-09-08 18:03:13 +02:00
Carsten Brandt
f8f0ff5445
moved formatter to i18n namespace
2014-09-07 20:40:34 +02:00
Erik_r
299d991a2e
#2359 testcases adapted and compatibility to old tests improved
2014-06-12 16:45:25 +02:00
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.
2014-06-11 09:18:31 +02:00
leandrogehlen
e6f05c6b9a
Adjusted documentation
2014-05-31 18:37:53 -03:00
leandrogehlen
51c162d65e
Fixes typo
2014-05-31 10:42:04 -03:00
leandrogehlen
f072b55638
Renamed Formatter::currencySymbol to currencyCode
2014-05-31 10:38:31 -03:00
leandrogehlen
0efa0faaf7
Added comment about $currency when it is null
2014-05-30 16:23:25 -03:00
leandrogehlen
55ad347e62
Fixes typo
2014-05-29 13:52:16 -03:00
leandrogehlen
f7488579b2
Renamed Formatter::intlCurrencySymbol to currencySymbol
2014-05-29 13:42:46 -03:00
Leandro Gehlen
4ecbd201ec
Added yii\i18n\Formatter::intlCurrencySymbol
2014-05-29 11:53:42 -03:00
Carsten Brandt
91965fd391
phpdoc formatting issues
2014-04-23 02:55:17 +02:00
Carsten Brandt
bf3c75147d
reverted breaking PHPdoc codestyle changes
...
issue #2852
2014-03-23 20:51:09 +01:00
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
2014-03-16 10:46:21 +06:00
Vladimir Zbrailov
330ae053e6
remove timezone from i18n formatter
2014-01-26 01:42:36 +04:00
Qiang Xue
0c38655217
psr-4 move
2014-01-10 21:41:43 -05:00