zerospam / laravel-gettext

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

Any plan to add support for Laravel 6.0? #37

Closed daveatpeta closed 4 years ago

daveatpeta commented 4 years ago

Any plan to add support for Laravel 6.0?

Is there enough significant changes to have to change the code or it's possible to simply add 6.0 to the composer.json file?

https://github.com/zerospam/laravel-gettext/blob/master/composer.json

Regards,

Mxrck commented 4 years ago

Laravel 6 is released now, but this package is not compatible

@daveatpeta have you tried your solution?

CedNet commented 4 years ago

My PR make it work. But it fails CI test due to tests not compatible with latest Laravel testing framework. Might spend time fixing it later today.

daveatpeta commented 4 years ago

Shouldn't the public function now be a protected function?

https://github.com/zerospam/laravel-gettext/blob/master/tests/unit/LaravelGettextTest.php

public function setUp() -> protected function setUp(): void

daveatpeta commented 4 years ago

Thanks CedNet,

I added a Pull Request from my fork. https://github.com/zerospam/laravel-gettext/pull/39

WimDeMeester commented 4 years ago

Also looking forward to a laravel 6 version!

frofrik commented 4 years ago

39 is merged to the master branch, but no new release?

WimDeMeester commented 4 years ago

Can anyone make the new release please? It is the only package in my project that still needs to be updated for Laravel 6.

WimDeMeester commented 4 years ago

I have installed the latest source code manually in my laravel project. It works without problems in Laravel 6.

devuniverse commented 4 years ago

@WimDeMeester Could you please provide some guidance to do the same? I am stuck with this and I wish the maintainers could look into this.

WimDeMeester commented 4 years ago

@devuniverse , this is what I did:

composer remove zerospam/laravel-gettext

git clone https://github.com/WimDeMeester/laravel-gettext.git

composer config repositories.local '{"type": "path", "url": "../laravel-gettext"}' --file composer.json

(the url should point to the location where the checked out code is available)

"name": "wimdemeester/laravel-gettext",

in ../laravel-gettext/composer.json

composer require wimdemeester/laravel-gettext

frofrik commented 4 years ago

In composer.json you can also just set the version to master.

WimDeMeester commented 4 years ago

Indeed!

composer require zerospam/laravel-gettext:master

is a much cleaner solution!

devuniverse commented 4 years ago

@frofrik @WimDeMeester You guys are the best there is! Very much appreciated, because I have a few projects that depend on this package but I am always worried about the maintainability long term.

philippe-bourdeau commented 4 years ago

Hello guys, I haven't had much time to look into this and test with Laravel 6.0 (at the moment for our business case we are still comfortable with 5.9) but I'm following the discussion.

If master is working as expected, i'll just tag it and release so you can stick to semantic versioning instead of refering to master; in the mean time I will not merge anything in master so it's fine for now but in the long run it is not very reliable.

WimDeMeester commented 4 years ago

@philippe-bourdeau Works fine for me in Laravel 6.0

devuniverse commented 4 years ago

Hello guys, I haven't had much time to look into this and test with Laravel 6.0 (at the moment for our business case we are still comfortable with 5.9) but I'm following the discussion.

If master is working as expected, i'll just tag it and release so you can stick to semantic versioning instead of refering to master; in the mean time I will not merge anything in master so it's fine for now but in the long run it is not very reliable.

@philippe-bourdeau "..in the long run it not very reliable". The package or refering to master/versionning ?

Also as @WimDeMeester it is working with 6.0 for me (referenced master )

philippe-bourdeau commented 4 years ago

@devuniverse I meant relying on master branch being refered in the composer.json.

I tagged version 7.2, which supports laravel 6.0.