-
Notifications
You must be signed in to change notification settings - Fork 171
fix langs path selection #192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
the last condition was a dead code cuz >=5 will override >=9
Thank you @bhanwarpsrathore |
I don't see the new tag version 1.11.2 or something, so I cannot pull it to my project... Can you pls tag it as new release? |
@rmariuzzo this actually breaks previous installations that were updated to the latest Laravel version without changing the directory structure. I was still able to adjust the command by specifying the source |
This should be fixed as soon as possible, it breaked the translations for my laravel project, although I'm on the latest version, the old translation directory structure should be also supported. |
@TCM-RAN As @IP-Developer said, you can adjust the command by specifying the source |
@rmariuzzo we meet again in the same tremendous situation haha; please don't introduce breaking changes into minor versions! |
@Chomiciak I followed him for tagging as 1.11.2. What do you think we should do now, revert the changes? I have access to the package now |
But this was a bug, because from Laravel 9+ the default |
Hi, I'm sorry to reply late, but this week is extremely busy for me. I wanted to make a PR, but it has to wait for weekend I'm afraid. Because the new tag is already up for over a week, reverting the changes would break compatibility for many users that set the library up during this period. Therefore we need a third approach - that 'reverts' it in case the file/directory is not found. This way we don't break it for users synced for 1.11.1, nor for this who have 1.11.2. I think this is the only way to handle this, acceptable because this has very low impact on performance due to the offline nature of this lib's functionality. I'd be able to work on this on Saturday; if someone can do it faster feel free |
Doesn't matter. A bug that many relies on cannot just be fixed to break the functionality for those who have taken it into account. There are many projects upgraded between laravel versions (I hope most developers upgrade frameworks from time to time), and you can't simply say that this is a bug for them :) |
added a fix to support both like laravel did i believe if added in a minor version too all will be happy |
This broke for me too. We've been on Laravel forever and never bothered to move our resource files from Regardless, in Laravel v5 a method was added to Application to return the langPath Laravel chose, so it seems to me the "right fix" to this code is just ask Laravel for the the langPath instead of trying to guess it.
|
I completely agree for next version, however for now this should be kept with the weird fix I've proposed to ensure everyone, no matter when installed, will have the thing working |
@Chomiciak I just released beta version with laravel 12 support, Would you give it a try? |
the last condition was a dead code cuz >=5 will override >=9