Closed ruaq closed 1 year ago
can someone merge this and create a new tag?
As of today I can't install the package on Laravel 9 with composer require zerospam/laravel-gettext
because it will return this error:
- Root composer.json requires zerospam/laravel-gettext ^8.0 -> satisfiable by zerospam/laravel-gettext[8, 8.0.1, 8.0.2].
- zerospam/laravel-gettext[8, ..., 8.0.2] require laravel/framework ^6.0 || ^7.0 || ^8.0 -> found laravel/framework[v6.0.0, ..., 6.x-dev, v7.0.0, ..., 7.x-dev, v8.0.0, ..., 8.x-dev] but it conflicts with your root composer.json require (^9.19).
I guess I could manually fix it somehow but I'd rather wait for official compatibility to avoid problems.
Would be great if this could be merged...we're also upgrading our app to Laravel 9 and this is blocking the process atm.
Any Updates on this? @zerospam
Any Updates on this? @zerospam
Any updates on this? @zerospam
Any updates on this? @zerospam
Any updates on this? @zerospam
How can I 'composer require' these changes? I am not very well known into Github. @ruaq ?
How can I 'composer require' these changes?
My workaround was to change my composer.json
from
"require": {
"zerospam/laravel-gettext": "^8.0"
},
to
"repositories": [
{
"type": "git",
"url": "https://github.com/prevplan/laravel-gettext"
}
],
"require": {
"zerospam/laravel-gettext": "dev-patch-1"
},
any update on this ?
Since my temp workaround is nearly a year old, there wasn’t a reaction in any kind of @zerospam neither here nor anywhere else in the repos and Laravel 10 is already on the horizon, I would offer to fork it entirely and release a working version for composer.
Opinions? Other offers?
I guess the alternative would be to just configure the default gettext without using this package, maybe the only issue could rise when trying to parse blade views where u use for example {{ _('String') }}
, xgettext and msgfmt might not be able to get it.
You could try something like this: Generating PO files with Laravel & translating Blade templates
And for local environment I can suggest my gettext guide for Windows
@nekhbet has also forked it and will maintain it for its own longtime projects. So I’ll change to this fork. See comment https://github.com/zerospam/laravel-gettext/issues/56#issuecomment-1374922286 and repo https://github.com/nekhbet/laravel-gettext
added support for Laravel 9.x
solves #56