Carsten Brandt
469c0548b6
fixed formatter to respect grouping separator for currency format
...
fixes #12331
2016-08-25 20:29:50 +02:00
stevekr
8ca845b680
Fixes #11212 : Added headers to PO file in yii\i18n\GettextPoFile::save()
2016-07-04 15:13:38 +03:00
Nikola Kovacs
43fddc74c9
remove unnecessary gettimeofday system call
...
close #9628
2016-07-04 12:41:58 +02:00
stevekr
73bc7aab71
Fixes #11878 : Fixed i18n gettext fallback language message loading
2016-07-04 12:53:54 +03:00
Carsten Brandt
b0bb8649a3
HHVM compatible fix for messageformatter error
...
fixes #11528
2016-07-04 11:01:24 +02:00
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
2016-07-04 10:42:39 +02:00
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
2016-07-02 21:06:39 +03:00
Ondřej Vašíček
4931f3f123
Adds indexes on message tables which partly fixes #11725 ( #11818 )
...
* Adds indexes on message tables which partly fixes #11725
* Adds indexes on for other specific DB languages, which fixes #11725
2016-06-25 15:49:04 +03:00
Artur Fursa
0b6169858f
Fix tables prefix use for i18n migrations ( #11748 )
2016-06-13 00:22:38 +02:00
Nikola Kovacs
f538878142
remove superfluous whitespace
2016-05-26 11:28:42 +02:00
Nikola Kovacs
9d327baa8b
coding style fixes
2016-05-26 11:19:32 +02:00
SilverFire - Dmitry Naumenko
f7ff153fce
Fixed yii\i18n\PhpMessageSource::loadFallbackMessages() not to log error when source and language is same, but locales are different
2016-05-12 01:30:17 +03:00
Robbert Jan van de Velde
c7f365910d
Fixed handling of intervals of 0 seconds in yii\i18n\Formatter::asDuration().
...
Added unit tests for handling 0 second intervals and numeric values for yii\i18n\Formatter::asDuration().
Closes #11038
2016-03-08 15:12:08 +02:00
Carsten Brandt
191f2a4943
fixed phpdoc type names
2016-02-25 20:24:32 +01:00
Carsten Brandt
645e78e832
fixed message formatter for input where no parameters are provided
...
fixes #10884
2016-02-25 19:39:52 +01:00
SilverFire - Dmitry Naumenko
b5c52ecbae
PHPDoc updates
2016-02-10 00:39:25 +02:00
SilverFire - Dmitry Naumenko
4f3adc2cb8
Added i18n/migration static migrations
2016-02-10 00:38:45 +02:00
SilverFire - Dmitry Naumenko
32c424da10
Fixed i18n message sources to load fallback messages in a smarter way
...
Added migration and unit-tests for `yii\i18n\DbMessageSource`
Closes #7964
2016-02-07 23:08:52 +02:00
SilverFire - Dmitry Naumenko
1ff847142d
Optimized Formatter::formatSizeNumber() - used normalizeNumericValue()
2016-01-19 00:41:39 +02:00
SilverFire - Dmitry Naumenko
56a035ef6c
Merge branch 'patch-1' of https://github.com/necrox87/yii2 into necrox87-patch-1
2016-01-19 00:33:41 +02:00
Carsten Brandt
cdb7d84fea
added support for non-gregorian calendar to formatter
...
fixes #8687
close #10517
2016-01-02 19:42:35 +01:00
AnatolyRugalev
3b31aa771a
#10363 : Fixed i18n fallback float and integer formatting
2015-12-26 10:42:34 +02:00
SilverFire - Dmitry Naumenko
cd87d67f34
Global DOCS update: ~~~ replaced with ```
2015-12-02 23:15:28 +02:00
Marco Germani
5747557794
Update Formatter.php
...
In according with the open discussion
2015-11-20 22:45:38 +01:00
SilverFire - Dima Naumenko
a6e1ba2cf6
Fixed mb_ functions calls to use UTF-8 or app charset
2015-11-17 09:02:22 +02:00
Marco Germani
53593c8ec3
Update Formatter.php
...
string type are cast to integer and have rapresentation of 2147483647 using float type instead for represent larger numbers
2015-10-27 15:48:13 +01:00
SilverFire - Dima Naumenko
b5d95f845e
Formatter::asDuration() PHPDoc and PHPUnit test enhanced
2015-10-26 23:57:05 +02:00
John Was
928a02c3bc
Added Formatter::asDuration() method
2015-10-26 20:48:39 +02:00
Carsten Brandt
255eec3ddd
fixed typo
2015-10-10 12:58:15 +02:00
Alexander Makarov
1b3770fd21
Use === instead of == where possible
2015-10-10 01:04:35 +03:00
Alexander Makarov
4ecafe653c
More compact number operations
2015-10-10 00:41:54 +03:00
Alexander Makarov
5ab4f0f090
Better quotes usage in strings
...
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
2015-10-10 00:23:52 +03:00
jeicd
c2f83da8d8
Fix phpdoc
2015-10-05 15:00:13 +06:00
jeicd
0407407b76
fix coding style to follow PSR-2
2015-10-05 13:58:47 +06:00
Alexandr
ded75253ca
Change 'de' to 'en' in comments of Formatter.php
2015-09-18 02:16:17 +07:00
Alexander Makarov
97f2fca72f
Fixes #9678 : I18N::format() wasn't able to handle named placeholder in "selectordinal"
2015-09-14 00:42:33 +03:00
Carsten Brandt
1706a9ee4f
updated DbMessageSource PHPdoc
...
fixes #9532
for deprecation see #9533
2015-08-28 15:36:29 +02:00
Alexander Makarov
71b728225b
Fixes #9532 : improved DbMessageSource::$cache phpdoc
2015-08-27 17:57:10 +03:00
Carsten Brandt
60af9d07fb
proper fix and changelog for #9108
...
close #9437
fixes #9108
2015-08-16 23:16:29 +02:00
nxnx
b562b50658
fix #9108 ( Negative number results in no formatting when using asSize or asShortSize )
2015-08-16 22:39:50 +02:00
Carsten Brandt
6d9fe671de
various code style and whitespace adjustments
2015-08-02 00:27:19 +02:00
Carsten Brandt
3c9c6b5d7d
fixed formatter to accept explicit setting of decimal numbers
...
this version keeps BC for symbols while fixing the issue with decimals.
fixes #8684
2015-07-26 01:35:42 +02:00
MaXL
17d8649509
Fix phpdoc typo
...
Change property type from array to integer for $sizeFormatBase in i18n/Formatter
2015-07-22 17:12:07 +10:00
Alexander Mohorev
38ca276e1f
PSR-2 try-catch statement
2015-06-08 23:32:08 +03:00
Carsten Brandt
3c2bd76236
allow negative dates for date formatter
...
fixes #8451
2015-05-18 02:14:14 +02:00
Carsten Brandt
543daf099f
Added Formatter:$numberFormatterSymbols
...
this allows to specify custom symbols such as currency symbol.
also improved error reporting in case intl fails
fixes #7915 , close #7920
2015-04-30 19:10:17 +02:00
Carsten Brandt
95cdd0905d
fix case in asDatetime method references
...
close #7095
2015-02-28 23:09:10 +01:00
nkovacs
ada9abe6b1
Fix documentation of PhpMessageSource::$basePath
2015-02-09 16:11:39 +01:00
Alexander Makarov
6481d13494
Optimized checks order in conditions
2015-02-08 17:56:36 +03:00
Carsten Brandt
9415c7921d
date formatter fall back to PHP impl. to solve Y2K38 issue
...
formatting date and time values for years >=2038 or <=1901 is now possible also with intl extension is
installed. 32bit systems will fall back to the PHP implementation because intl uses a 32bit UNIX timestamp internally.
On a 64bit system the intl formatter is used in all cases if installed.
fixes #5577
2015-01-10 18:27:35 +01:00