From: Amir E. Aharoni Date: Sun, 21 Jul 2013 09:44:59 +0000 (+0300) Subject: Document the block duration tooltip X-Git-Tag: 1.31.0-rc.0~17878^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=d5d24c20a435b015804d70293458eacda59f1fff;p=lhc%2Fweb%2Fwiklou.git Document the block duration tooltip This is a follow-up to I31aef50196319be7355ad14657e67ca23fc15e20. Change-Id: If0abba018fe59a289c2ae82e9e5b91459dd4baf6 --- 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] );