-
Notifications
You must be signed in to change notification settings - Fork 42
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
setLanguage throws error with empty strings. #70
Comments
BTW, thank you, to all of the maintainers of this library. I appreciate your work. |
I'd say that this is the correct behaviour, since |
I think it should just fallback to 'en_US' because if I write: However when
trySettingLanguages() returns en empty string because it returns the original string, not the one output by
On my system, If you read the php docs, it states:
So it may vary. Personally I would like PHPTAL to not throw an error, because setlocale does not throw an error. |
This code:
Will throw this exception:
Looks like some sort of strange string concatenation problem as indicated by the leading comma in the list of languages in the error.
The text was updated successfully, but these errors were encountered: