Hi !
You can check what's describe in this article : http://keithloy.me/yaml-config-files-in-laravel/ . It's a litlle bit old but it's a good start.
Maybe check what's done with laravel.language.loader event.
Firstly thank you for the answer.
But the link you provided is for Laravel 3 - I am using Laravel 4 and I can't comprehend how and when and by whom the language files are being loaded.
It seems the 'laravel.language.loader' no longer exists in Laravel 4.
I just made up a little package to do the trick, check it out at https://github.com/Devitek/laravel-yaml-translation .
Just follow the instructions and you should be able to use yml/yaml files instead of classic php files. Tell me if it works for you :).
I took a look at your code - I forked your code on GitHub in order to make the code PHP 5.3.x and Laravel 4.0.x compatible.
I tested the Yaml FileLoader and it works well - thank you :)
You're welcome :), feel free to make a pull request if you want.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community