-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Support translations #5
Comments
I would love to get Ping internationalized; I didn't realize ping was localized like that. Since I don't have too much experience with localization, I'd love your input (and anyone else's); is gettext the best/preferred way of doing localization in PHP at this time? |
I think gettext is the perfect way to solve this. |
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution! Please read this blog post to see the reasons why I mark issues as stale. |
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details. |
This issue is no longer marked for closure. |
Loosen the regex to search for a time value, to support non-english output of the ping command. Since the output is generic in all languages we dont need to look for a specific english term. Refs geerlingguy#5 Refs geerlingguy#49
Right now the class uses the hardcoded string 'time=' to find the latency from the exec output, but when the ping program is localized the class incorrectly assumes the host is unreachable.
In dutch for example this should be 'tijd='.
The text was updated successfully, but these errors were encountered: