Alexander Makarov
49760b64dd
Fixes #5595 : Better phpdoc value types for Formatter methods
10 years ago
Alexander Makarov
02622b6fe4
phpdoc fixes and additions
10 years ago
Alexander Makarov
327dde72f4
Fixes #5467 : Added ability to pass HTML tag options to `asEmail()`, `asImage()` and `asUrl()` methods of `yii\i18n\Formatter`
10 years ago
Alexey Kolmakov
ce4bf84452
#5467 Allow pass options to Html:a in Formatter:asUrl
10 years ago
Carsten Brandt
1b052f3e94
updated formatter docs and allow using DateTimeImmutable
...
see http://derickrethans.nl/immutable-datetime.html
by @derickr
10 years ago
Carsten Brandt
dfd68954a5
finished guide on formatting
10 years ago
Carsten Brandt
dfc4de877f
ensure integer is formatted without fraction digits
...
fixes #5179
10 years ago
Serge Bezborodov
76ade0f6b0
Changed order of attributes setting in Formatter
...
close #5261
10 years ago
Carsten Brandt
0818c9bbfc
do not override config when intl is not installed
...
fixes #5260
10 years ago
Carsten Brandt
6267b9ee1a
Fixed issue with timezone conversion in formatter
...
related to #5128
10 years ago
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
065db64db3
finsihed formatter implementation
...
neads cleanup
10 years ago
Carsten Brandt
2a15ae12e6
refactored number formatting
10 years ago
Carsten Brandt
a4e86c02de
date formatter iteration
10 years ago
Carsten Brandt
7f1f759472
small doc adjustments
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
3a1e0f3a5c
property codestyle framework
10 years ago
Kai Mindermann
46b553f012
fixes formatter doing one division too much, fixes #4427
10 years ago
Kai Mindermann
f3520187d6
formatter: adds unit tests for base 1000, fixes #4412
10 years ago
Carsten Brandt
d7b4ea859b
refactored date formatting functions
...
- removed unformat methods, they do not belong here
- removed db format, which is also not purpose of this class
- refactored the whole set of methods to be simpler and better
maintainable
More unit tests needed.
10 years ago
Erik_r
a8ad3b83bd
#2359 Bugfix in normalizeDatetimeValue after regression test
10 years ago
Erik_r
0a10e92f92
#2359 one test failed in Travis because standard medium date format is different in Travis then on my locale PC.
10 years ago
Erik_r
299d991a2e
#2359 testcases adapted and compatibility to old tests improved
10 years ago
Erik_r
d80d9dcd1d
remove comment lines in asRelativeTime
10 years ago
Erik_r
4dbf1fe7b2
Typo in function call #2359
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
Kartik Visweswaran
7f788e7427
Fix #3756 : Convert values to float for number formatting
...
Convert string values to floating point, so that `number_format` method can properly format values.
10 years ago
Philippe Gaultier
20e96cca05
Fix DateTime cast
11 years ago
Qiang Xue
7d8dfe52cd
Fixed test break.
11 years ago
Kartik Visweswaran
b1a26ff336
Fix the Y2K38 bug
...
Adds support for timestamps beyond year 2038.
11 years ago
marsuboss
db244a61b2
Fix typo
11 years ago
Carsten Brandt
76d8e2b5b3
code style, fixes #3140
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