From d5d24c20a435b015804d70293458eacda59f1fff Mon Sep 17 00:00:00 2001 From: "Amir E. Aharoni" Date: Sun, 21 Jul 2013 12:44:59 +0300 Subject: [PATCH] Document the block duration tooltip This is a follow-up to I31aef50196319be7355ad14657e67ca23fc15e20. Change-Id: If0abba018fe59a289c2ae82e9e5b91459dd4baf6 --- includes/logging/LogPage.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/includes/logging/LogPage.php b/includes/logging/LogPage.php index cc473c18fc..bdae3666e0 100644 --- a/includes/logging/LogPage.php +++ b/includes/logging/LogPage.php @@ -262,7 +262,12 @@ class LogPage { // User suppression if ( preg_match( '/^(block|suppress)\/(block|reblock)$/', $key ) ) { if ( $skin ) { - $params[1] = '' . + // Localize the duration, and add a tooltip + // in English to help visitors from other wikis. + // The lrm is needed to make sure that the number + // is shown on the correct side of the tooltip text. + $durationTooltip = '‎' . htmlspecialchars( $params[1] ); + $params[1] = "" . $wgLang->translateBlockExpiry( $params[1] ) . ''; } else { $params[1] = $wgContLang->translateBlockExpiry( $params[1] ); -- 2.20.1