-
Notifications
You must be signed in to change notification settings - Fork 83
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
Locale errors #10
Comments
Hi, Sure, a PR is always appreciated, so if you feel like it feel free. Here are my comments:
Also, please remember to add (or update) a test that demonstrate the bugs in the PR. You should also update the CHANGELOG file. |
Ok, thanks for the input - very good points. |
I have a question - what should happen if there is no translation file for a given locale? |
Fixed by PR #11 |
Hi @rlanvin,
Seems like it's impossible to use the
RRule::humanReadable()
method if the\Locale
doesn't exist, or if the locale is wrong. There are some cases where the defaultLocale
isen_US_POSIX
which in turn triggers an exception inRRule::i18nLoad()
line2022
. Would it be possible to fallback toen
if the locale isn't set or isn't supported?I could make a PR for it if you'd like, just wondering if that's something you see as fitting in this case?
The text was updated successfully, but these errors were encountered: