Commit Graph

36 Commits

Author SHA1 Message Date
Carsten Brandt
7325fdd7ed better fix for #5448 not using customized DateTime class
fixes #6263 and has no problem with PHP Bug:

> it is a PHP bug: https://bugs.php.net/bug.php?id=45543
> Fixed in this commit: php/php-src@22dba2f#diff-7b738accc3d60f74c259da18588ddc5dL2996
>
> Fixed in PHP >5.4.26 and >5.5.10. http://3v4l.org/mlZX7
2014-11-27 21:55:33 +01:00
Carsten Brandt
41fca90cce split formatter test 2014-11-27 18:25:48 +01:00
Carsten Brandt
6a8f4b0e50 fixed date formatter to display date-only values correctly
fixes #5448
2014-11-26 01:54:58 +01:00
Carsten Brandt
8039026ae2 added Formatter::defaultTimeZone to allow non UTC-values in DB
fixes #5683
2014-11-20 13:18:34 +01: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
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
2fbce2fa25 improved formatter test coverage 2014-09-30 22:57:03 +02:00
Carsten Brandt
e305f0842c skip unsupported things on 32bit system 2014-09-30 02:21:17 +02:00
Carsten Brandt
6267b9ee1a Fixed issue with timezone conversion in formatter
related to #5128
2014-09-30 02:15:45 +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
c8f8f654ce fixed paragraph formatting 2014-09-10 18:41: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
SonicGD
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
Carsten Brandt
b59b77cd4f added timeZone property to i18n formatter
fixed #1021
2013-12-17 13:45:16 +01:00
Qiang Xue
1de06faa3b Fixes #1253 2013-11-24 14:18:33 -05:00
Qiang Xue
d2e5f2c507 Fixes #1234: use dash instead of underscore to separate language and country in locale id. 2013-11-19 16:33:52 -05:00
Alexander Makarov
1f6a823073 Short array syntax 2013-10-18 20:52:38 +04:00
Carsten Brandt
949dda5fdb tagged tests with @group tags 2013-09-14 12:49:47 +02:00
Qiang Xue
3eccd850fe Added Formatter::nullDisplay. 2013-06-25 11:32:16 -04:00
Qiang Xue
800b3dbed0 Fixed build break. 2013-05-31 21:55:11 -04:00
Qiang Xue
33dbe8fb43 Removed breaking tests. 2013-05-28 19:10:39 -04:00
Qiang Xue
6aba9ede8b Removed breaking test. 2013-05-28 19:10:04 -04:00
Qiang Xue
9a97037012 Finished Formatter. 2013-05-28 18:55:26 -04:00