From c678efcab2b739f7051fda74dcadf4502a184225 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Mon, 6 Oct 2008 20:01:43 +0000 Subject: [PATCH] Split date ($2) and time ($3) in 'protect-existing-expiry' per request of a translator. Leaving the old timestamp ($1) in for backward compatibility. --- includes/ProtectionForm.php | 5 ++++- languages/messages/MessagesEn.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index c2ab2e3aa9..a957a70a19 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -331,9 +331,12 @@ class ProtectionForm { $expiryFormOptions = ''; if ( $this->mExistingExpiry[$action] && $this->mExistingExpiry[$action] != 'infinity' ) { + $timestamp = $wgLang->timeanddate( $this->mExistingExpiry[$action] ); + $d = $wgLang->date( $this->mExistingExpiry[$action] ); + $t = $wgLang->time( $this->mExistingExpiry[$action] ); $expiryFormOptions .= Xml::option( - wfMsg( 'protect-existing-expiry', $wgLang->timeanddate( $this->mExistingExpiry[$action] ) ), + wfMsg( 'protect-existing-expiry', $timestamp, $d, $t ), 'existing', $this->mExpirySelection[$action] == 'existing' ) . "\n"; diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 0133c1ce18..9ae83a2aba 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2388,7 +2388,7 @@ You can change this page's protection level, but it will not affect the cascadin 'protect-cantedit' => 'You cannot change the protection levels of this page, because you do not have permission to edit it.', 'protect-othertime' => 'Other time:', 'protect-othertime-op' => 'other time', -'protect-existing-expiry' => 'Existing expiry time: $1', +'protect-existing-expiry' => 'Existing expiry time: $3, $2', 'protect-otherreason' => 'Other/additional reason:', 'protect-otherreason-op' => 'other/additional reason', 'protect-dropdown' => '*Common protection reasons -- 2.20.1