Eriksen Costa
c1c0c3c42e
[Locale] added parsing for hours (12 and 24 hours)
2011-02-27 15:22:25 -03:00
Eriksen Costa
ed85345312
[Locale] added parsing implementation for year, month and day
2011-02-27 02:22:07 -03:00
Eriksen Costa
f096b7b2bb
[Locale] removed trailing whitespace
2011-02-27 01:04:07 -03:00
Igor Wiedler
0e260c1170
[Locale] refactor date formatting into separate transformer classes, early concepts for date parsing
2011-02-26 19:34:59 +01:00
Igor Wiedler
bcca989c41
[Locale] refactor and simplify some parts of StubIntlDateFormatter
2011-02-23 19:09:48 +01:00
Bernhard Schussek
4af27bd590
[Locale] Added stubs for \Collator and \IntlDateFormatter
2011-02-23 14:46:27 +01:00
Igor Wiedler
ee5bc36c55
[Locale] add docblocks to StubIntlDateFormatter and adjust some things to be more like StubNumberFormatter
2011-02-23 14:20:47 +01:00
Igor Wiedler
7b2b025ebd
[Locale] add @author tag to StubCollator
2011-02-23 14:20:46 +01:00
Igor Wiedler
30ea2bae32
[Locale] add @author tag to StubIntlDateFormatter
2011-02-23 14:20:46 +01:00
Igor Wiedler
96b7c8ff73
[Locale] initial stub of StubCollator with class constants
2011-02-23 14:20:45 +01:00
Igor Wiedler
3cc60f7cb4
[Locale] throw NotImplementedException on unimplemented chars
2011-02-23 14:20:45 +01:00
Igor Wiedler
577dd30927
[Locale] remove setLocale from StubIntlDateFormatter
2011-02-23 14:20:45 +01:00
Igor Wiedler
53839f9235
[Locale] refactor tests, make use of specialized exception
2011-02-23 14:20:45 +01:00
Igor Wiedler
77258223f1
[Locale] re-order StubIntlDateFormatter methods, rename timezoneId to timeZoneId, add setLenient method
2011-02-23 14:20:44 +01:00
Igor Wiedler
1191ab4b56
[Locale] add remaining IntlDateFormatter methods with tests
2011-02-23 14:20:44 +01:00
Igor Wiedler
69b38faff7
[Locale] refactoring and some more tests
2011-02-23 14:20:44 +01:00
Igor Wiedler
1f248652cc
[Locale] minor naming change
2011-02-23 14:20:43 +01:00
Jordi Boggiano
bfbc8f63fa
[Locale] Fixed implementation of quote parsing and replacement
2011-02-23 14:20:43 +01:00
Igor Wiedler
c7380fbb4c
[Locale] support standard date and time types if no format is set, refactoring and more tests
2011-02-23 14:20:42 +01:00
Igor Wiedler
d3a63d35d4
[Locale] slightly adjust regex for matching quotes
2011-02-23 14:20:42 +01:00
Igor Wiedler
632ded5c96
[Locale] use UTC if timezone is unsupported
2011-02-23 14:20:42 +01:00
Igor Wiedler
a883a3f62a
[Locale] adjust to new quoting format, some tests failing
2011-02-23 14:20:42 +01:00
Igor Wiedler
cc6f996334
[Locale] add a list of unimplemented date format keywords
2011-02-23 14:20:41 +01:00
Igor Wiedler
cbfaaef76e
[Locale] support for z (timezone offset from GMT)
2011-02-23 14:20:41 +01:00
Igor Wiedler
d68c5fa7fd
[Locale] refactor to use DateTime and DateTimeZone, adding timezone support
2011-02-23 14:20:41 +01:00
Igor Wiedler
7efe476693
[Locale] support for s (second)
2011-02-23 14:20:41 +01:00
Igor Wiedler
87d3547679
[Locale] support for m (minute of hour)
2011-02-23 14:20:40 +01:00
Igor Wiedler
6b26f8296d
[Locale] support for K (12-hour (0-11))
2011-02-23 14:20:40 +01:00
Igor Wiedler
5a767045b6
[Locale] implement k (24-hour (1-24)
2011-02-23 14:20:40 +01:00
Igor Wiedler
42a652ce3d
[Locale] refactor IntlDateFormatter::format to build regExp dynamically
2011-02-23 14:20:40 +01:00
Igor Wiedler
bfc7e55692
[Locale] support for H (24 hour)
2011-02-23 14:20:39 +01:00
Igor Wiedler
71e3c97358
[Locale] support for a (AM/PM)
2011-02-23 14:20:39 +01:00
Igor Wiedler
49752f104b
[Locale] support for E (day of week)
2011-02-23 14:20:39 +01:00
Igor Wiedler
d4c1357f11
[Locale] support for D (day of year)
2011-02-23 14:20:39 +01:00
Igor Wiedler
5ffce2d6a2
[Locale] add support for h
2011-02-23 14:20:39 +01:00
Igor Wiedler
ae3ee5d896
[Locale] add support for L, which is the same as M
2011-02-23 14:20:38 +01:00
Igor Wiedler
b702ce86b5
[Locale] support for G and Q placeholders in StubIntlDateFormatter::format
2011-02-23 14:20:38 +01:00
Igor Wiedler
8c1146974f
[Locale] add support for escaping, give specifics on implementation used in tests
2011-02-23 14:20:38 +01:00
Igor Wiedler
55ac407458
[Locale] first implementation of StubIntlDateFormatter
2011-02-23 14:20:37 +01:00
Bernhard Schussek
404f83ccc3
[Locale] Added stubs as a replacement for the intl extension
...
You can enable the stubs by including the following code in app/autoload.php:
$loader->registerPrefixFallback(array(
__DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs',
));
If the intl extension is not loaded, the stub classes for the "en" locale
will be created automatically.
2011-02-23 13:26:05 +01:00
Eriksen Costa
b649843e00
[Locale] added implementation to StubNumberFormatter::getLocale(), matching StubIntlDateFormatter::getLocale()
2011-02-23 13:26:05 +01:00
Eriksen Costa
b58e25cc83
[Locale] added static constructor
2011-02-23 13:26:05 +01:00
Eriksen Costa
69b0e09d6a
[Locale] added stub implementations of Locale and NumberFormatter classes
...
Updated update-data.php script to extract locales, countries names, languages and currencies
from ICU to be used by the stub implementations
2011-02-23 13:26:05 +01:00
Fabien Potencier
f54cedfe5e
added LICENSE files for the subtree repositories
2011-02-22 18:58:15 +01:00
Dominique Bongiraud
64fb94c725
normalized license messages in PHP files
2011-01-18 08:07:46 +01:00
Bernhard Schussek
b9c2e98315
[Form][Locale] Implemented LocaleField and added script for updating ICU data
2011-01-02 10:41:05 +01:00
Jordi Boggiano
094d428e68
CS: Unified strict equality comparisons, put var on the right side
2010-12-21 08:51:21 +01:00
Bernhard Schussek
fdb7f84c7d
[Locale][Form][Validator] Refactored code to new Locale component, implemented Country constraint
2010-12-16 10:18:33 +01:00