-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[BUG]: Phalcon\Translate\Adapter\Gettext:setLocale doesn't allow multiple locales #14764
Comments
Doesn't the |
@niden That's what I meant. I think the implementation is there but we are unable to do:
Only this allowed:
|
We will probably need to remove the parameters from the signature so that |
@niden Maybe we should be fully compatible with |
This will have to be moved to 4,1 or 5.0. If we move it to 4.1 we can create a second method ( Alternatively, wait for v5 when we can change the method signature |
Moved to 4.1 to introduce temporarily a new method that will allow this functionality. We can clean things up with v5 |
Resolved in #15454 |
In our docs we mention that
setLocale
inPhalcon\Translate\Adapter\Gettext
allows multiple arguments just like the native setLocaleThe logic to handle this is there but our method doesn't allow it and will return a
wrong number of parameters
.Phalcon: 4.0.2
Php: 7.4
The text was updated successfully, but these errors were encountered: