Commit Graph

18215 Commits

Author SHA1 Message Date
Aaron Carlino c99ed2d262 Reorganise i18n keys 2017-05-08 23:34:39 +12:00
Damian Mooyman 8f43bc128b Merge pull request #6348 from open-sausages/pulls/4.0/test-cleanup-db
ENHANCEMENT Prevent test DBs persisting after testing
2017-05-08 23:14:53 +12:00
Damian Mooyman d2c6c539d2 Merge pull request #6872 from sminnee/fixture-by-table
NEW: Allow SapphireTest::objFromFixture() to accept either table or class
2017-05-05 15:14:01 +12:00
Sam Minnee a05958b3ea FIX: i18n test fixtures stricter for Symfony3 2017-05-05 14:32:07 +12:00
Damian Mooyman 942c0257b7 API Upgrade to behat 3 2017-05-05 14:32:07 +12:00
Sam Minnee 1691e90fbd NEW: Allow SapphireTest::objFromFixture() to accept either table or class
Right now SapphireTest::objFromFixture() requires a class as the first
argument. This is fine when your fixture file uses classes as the keys,
but if populating a fixture via tables, objFromFixture() won’t work.

This patch lets you specify either the table name or the class name as
the key.

The benefit here is that you can build fixtures as raw inserts, which is
substantially quicker, and is likely to be a useful tool in building
more efficient test suites.
2017-05-05 10:53:49 +12:00
Chris Joe 9dff7e4eeb Merge pull request #6865 from open-sausages/pulls/4.0/apcucache-fix
BUG Fix ApcuCache namespace
2017-05-04 14:19:40 +12:00
Damian Mooyman 1f8de20ce7
Fix FormSchemaTest.php linting issues 2017-05-04 13:56:54 +12:00
Damian Mooyman 8b9f41d4f4 BUG Fix ApcuCache and MemCache namespace 2017-05-04 12:17:33 +12:00
Damian Mooyman 0c52ea067c BUG Fix incorrect text collection of __CLASS__ following an Name::class constant (#6868) 2017-05-04 10:19:05 +12:00
Damian Mooyman edcb46bd3a Merge pull request #6836 from sminnee/cli-error-fix
FIX: Show detailed errors on CLI for live environments
2017-05-03 15:49:09 +12:00
Aaron Carlino dd7777321f Added 4.0.0-alpha7 changelog 2017-05-02 13:16:17 +12:00
Aaron Carlino 7c67d29484 Update translations 2017-05-02 10:46:54 +12:00
Sam Minnee 4c772c80c3 FIX: Show detailed errors on CLI for live environments
API: Add HTTPOutputHandler::setCLIFormatter

Fixes https://github.com/silverstripe/silverstripe-framework/issues/6835

This provides detailed errors (but not warnings or notices) in CLI calls
on live environments.

It does this by adding a 2nd argument to our output handler,
CliFormatter. This formatter will be used when Director::is_cli() is
true.
2017-05-01 15:28:48 +12:00
Damian Mooyman 12fc690d80 Merge pull request #6850 from robbieaverill/bugfix/i18n-lang-region-same
FIX IntlLocales::validate when lang and region are the same e.g. de_DE
2017-05-01 08:41:44 +12:00
Damian Mooyman 8dd3f4ce1d Fix template localisation namespaces (#6852) 2017-05-01 08:28:24 +12:00
Stevie Mayhew 0d6da9b0e8 Merge pull request #6858 from Firesphere/pulls/typo
Fix quote outside the if statement.
2017-04-30 17:44:16 +12:00
Simon Erkelens 391901df87 Fix quote outside the if statement. 2017-04-29 17:14:35 +12:00
Damian Mooyman 3f9528a073 Merge pull request #6849 from robbieaverill/bugfix/extension-arguments-in-sapphiretest
FIX Regression from 3.x: allow $required_extensions to have arguments
2017-04-28 20:29:11 +12:00
Robbie Averill 3a372a1f41 FIX IntlLocales::validate when lang and region are the same e.g. de_DE 2017-04-28 17:19:27 +12:00
Damian Mooyman 03750acbee API Namespace i18n keys 2017-04-28 16:08:35 +12:00
Damian Mooyman 82dd157741
Remove empty localisations 2017-04-28 15:09:36 +12:00
Damian Mooyman 2fa7598261 Shift hierarchy namespace i18n key 2017-04-28 14:59:42 +12:00
Damian Mooyman 23710cf23e Run upgrader 2017-04-28 14:59:42 +12:00
Damian Mooyman 7b4b133ad8 Remove unused keys (textcollector with merge=0) 2017-04-28 14:59:42 +12:00
Damian Mooyman fce38e0f5b Revert yml files to transifex 2017-04-28 14:59:42 +12:00
Damian Mooyman 699d5d6a42 Fix i18nTextCollector handling of special string characters 2017-04-28 14:59:42 +12:00
Damian Mooyman 2ae8fde2d3 Fix tests 2017-04-28 14:59:42 +12:00
Aaron Carlino 7b7b3810e6 Merge permission translations back in 2017-04-28 14:59:42 +12:00
Aaron Carlino 20985bc484 alphabetise keys 2017-04-28 14:59:42 +12:00
Aaron Carlino 978d9a36df remove js transifex 2017-04-28 14:59:42 +12:00
Aaron Carlino 48343f1620 Remove client side lang 2017-04-28 14:59:42 +12:00
Uncle Cheese d51c4891e2 New namespaced i18n keys 2017-04-28 14:59:42 +12:00
Uncle Cheese 494cbd1875 Ran upgrader for lang files 2017-04-28 14:59:42 +12:00
Damian Mooyman 61388b153f API Rewrite Date and Time fields to support HTML5 2017-04-28 10:06:37 +12:00
Ingo Schommer daed727acc Fixed form schema validation 2017-04-28 08:30:59 +12:00
Ingo Schommer 22f232ed4d Mark up <time> in validation errors
Allow better localisation of values in JS
2017-04-27 21:44:52 +12:00
Ingo Schommer a2ee6a76a0 Fixed formschematest 2017-04-27 21:44:28 +12:00
Robbie Averill c95c6c466f FIX Regression from 3.x: allow $required_extensions to have arguments 2017-04-27 17:59:52 +12:00
Ingo Schommer cbe534c675 Fixed component capitalisation 2017-04-27 15:36:18 +12:00
Ingo Schommer 94b49e3e28 Removed unused field 2017-04-27 15:36:11 +12:00
Ingo Schommer 60706c8efd Store $value in ISO and server timezone consistently, fix min/max timezone handling 2017-04-27 14:59:11 +12:00
Chris Joe 16aebb83e4 Merge pull request #6831 from robbieaverill/patch-6
DOCS Remove tabs from JSON examples to fix code blocks
2017-04-27 13:44:05 +12:00
Ingo Schommer 628fd216ad PHPDoc fixes 2017-04-27 11:56:23 +12:00
Ingo Schommer f01a20d5c4 Only used normalised ISO on HTML5 2017-04-27 11:56:18 +12:00
Ingo Schommer de8abe1167 API rename 2017-04-27 11:53:43 +12:00
Ingo Schommer 9b41350f64 More min/max setter tests 2017-04-27 11:53:34 +12:00
Ingo Schommer b852a76334 Consistent schema keys 2017-04-27 11:47:04 +12:00
Ingo Schommer 14b3468eee Removed setting format in getter
That’s already handled in getFormatter()
2017-04-27 11:09:59 +12:00
Ingo Schommer 655b047d80 Removed superfluous methods 2017-04-27 11:09:43 +12:00