Skip to content

Commit

Permalink
Refactor translation and validation
Browse files Browse the repository at this point in the history
We now use Symfony's Translation component. Yay! We get more powerful pluralisation and better a fallback mechanism. Will want to implement the caching mechanism at some point too. The API is replicated in JavaScript, which could definitely use some testing.

Validators have been refactored so that they are decoupled from models completely (i.e. they simply validate arrays of user input). Language packs should include Laravel's validation messages.

ref #267
  • Loading branch information
tobyzerner committed Oct 15, 2015
1 parent a23180f commit c08b62a
Show file tree
Hide file tree
Showing 32 changed files with 574 additions and 4,092 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"dflydev/fig-cookies": "^1.0",
"symfony/console": "^2.7",
"symfony/yaml": "^2.7",
"symfony/translation": "^2.7",
"doctrine/dbal": "^2.5",
"monolog/monolog": "^1.16.0",
"franzl/whoops-middleware": "^0.1.0",
Expand Down

0 comments on commit c08b62a

Please sign in to comment.