zerospam / laravel-gettext

Adds localization support to laravel applications using PoEdit and GNU-Gettext.
99 stars 56 forks source link

default domain, locale in storage null? #3

Closed dave-at-petabit closed 7 years ago

dave-at-petabit commented 7 years ago

To make it work I have to add a few lines in this file: laravel-gettext/src/Xinax/LaravelGettext/LaravelGettextServiceProvider.php

I have to add the following lines after this one:

            $storage = $app->make($configuration->get()->getStorage());

            $storage->setDomain($configuration->get()->getDomain());
            $storage->setEncoding($configuration->get()->getEncoding());
            $storage->setLocale($configuration->get()->getLocale());

Otherwise, I get this error: (empty locale) Locale is not supported

Belphemur commented 7 years ago

Are you using the Symfony translation module or the gettext php extension ?