We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The uptime info contains not localised strings "days", "hours", "minutes", "seconds"
It comes from this function:
private function formatUptime(int $uptime): string { if ($uptime === -1) { return 'Unknown'; } try { $boot = new \DateTime($uptime . ' seconds ago'); } catch (\Exception $e) { return 'Unknown'; } $interval = $boot->diff(new \DateTime()); if ($interval->days > 0) { return $interval->format('%a days, %h hours, %i minutes, %s seconds'); } return $interval->format('%h hours, %i minutes, %s seconds'); }
So, localisation tags are to be added there.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The uptime info contains not localised strings "days", "hours", "minutes", "seconds"
It comes from this function:
So, localisation tags are to be added there.
The text was updated successfully, but these errors were encountered: