Open mexn opened 5 years ago
You should add the gettext
functions file before load vendor autoload:
# public/index.php
require __DIR__.'/../vendor/gettext/gettext/src/translator_functions.php';
require __DIR__.'/../vendor/autoload.php';
and same into artisan.php
:
require __DIR__.'/vendor/gettext/gettext/src/translator_functions.php';
require __DIR__.'/vendor/autoload.php';
$app = require_once __DIR__.'/bootstrap/app.php';
Thank you, I had hoped you have found a different way I'm not aware of yet.
But this approach makes the functions
config setting non-functional, or do i miss the point here?
Yes, using this approach the functions
setting is not functional, but this way is needeed because laravel functions are load before any other package file.
Hi!
I just found your plugin and was wondering, if you found a way to use Gettext's global
__()
function instead of Laravel's (setting config-optionfunctions
totrue
)? Because I struggled doing so, whether I'm trying my own solution or using your package.