mcamara/laravel-localization — pull request #24 by jaumesala (2014-01-02 11:31:13+00:00)
Title: Fixes compatibility with Laravel 4.1

if (method_exists($router, 'getCurrentRoute')){…} fails to determine if we are using Laravel 4.1.x or 4.0.x.
Instead, we can use a constant de identify the version...