PhiloNL/laravel-translate — pull request #4 by stuba (2014-01-06 07:33:17+00:00)
Title: Multidimensional array and digging for missing translations

Hi,

here is my contribution for this project. I was about to start my own, but this was a good start.

Bugfixes:
Adding some slashes so we don't get parse errors when ' -characters are used.

Changes:
It supports multidimensional translations. I recoded most of the file writing so for my point of view its more clear and supports any size of multidimensional translations.

New Features:
New command translate:digg can be used for digging some missing translations from predefined paths. This tries to find all translations and run regular add for each missing translation. There is some limitations tough, please have a look attached image for workarounds. New config key for this feature is digg_folders and its default paths are 'app/models', 'app/views', 'app/controllers'.

My time is up for now, somebody could write some test.. They are completely missing. I did manage to clean up my projects translations after few fixes and modifications. So this _should_ work out ot the box.

Hope you like it!

![tipsandtricks](https://f.cloud.github.com/assets/818066/1849021/26aeac56-76a4-11e3-9789-5f1bd2c1c700.png)