diff --git a/blackout/blackout.php b/blackout/blackout.php
index c8574002..4c9753e0 100644
--- a/blackout/blackout.php
+++ b/blackout/blackout.php
@@ -103,17 +103,17 @@ function blackout_addon_admin(&$a, &$o) {
$o = Renderer::replaceMacros($t, [
'$submit' => L10n::t('Save Settings'),
- '$rurl' => ["rurl", "Redirect URL", $myurl, "all your visitors from the web will be redirected to this URL"],
- '$startdate' => ["startdate", "Begin of the Blackout
(YYYY-MM-DD hh:mm)", $mystart, "format is YYYY year, MM month, DD day, hh hour and mm minute"],
- '$enddate' => ["enddate", "End of the Blackout
(YYYY-MM-DD hh:mm)", $myend, ""],
+ '$rurl' => ["rurl", "Redirect URL", $myurl, L10n::t("all your visitors from the web will be redirected to this URL")],
+ '$startdate' => ["startdate", L10n::t("Begin of the Blackout
(YYYY-MM-DD hh:mm)"), $mystart, "format is YYYY year, MM month, DD day, hh hour and mm minute"],
+ '$enddate' => ["enddate", L10n::t("End of the Blackout
(YYYY-MM-DD hh:mm)"), $myend, ""],
]);
$date1 = DateTime::createFromFormat('Y-m-d G:i', $mystart);
$date2 = DateTime::createFromFormat('Y-m-d G:i', $myend);
if ($date2 < $date1) {
- $o = "
Please double check that the current settings for the blackout. Begin will be '.$mystart.' and it will end '.$myend.'.
' . $o; + $o = L10n::t('Please double check that the current settings for the blackout. Begin will be '.$mystart.' and it will end '.$myend.'.
') . $o; } } function blackout_addon_admin_post (&$a) {