From 69bf03c300ab568051ba7e7d7446d2af71698dbd Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Tue, 12 Mar 2019 14:45:14 +0100 Subject: [PATCH] Added translation of strings --- blackout/blackout.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 = "
The end-date is prior to the start-date of the blackout, you should fix this.
" . $o; + $o = L10n::t("
The end-date is prior to the start-date of the blackout, you should fix this.
") . $o; } else { - $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) {