From: jenkins-bot Date: Fri, 25 Oct 2013 09:00:29 +0000 (+0000) Subject: Merge "Use i18n instead of hardcoded brackets and spaces" X-Git-Tag: 1.31.0-rc.0~18391 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=85d95e6abde67286fe69e247e21ac2c3a78db1b6;hp=2041294b14a3d00c0812a1922ccf313daab7adad;p=lhc%2Fweb%2Fwiklou.git Merge "Use i18n instead of hardcoded brackets and spaces" --- diff --git a/includes/Linker.php b/includes/Linker.php index 23ece751af..4dcdfd5510 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -2116,9 +2116,10 @@ class Linker { $accesskey = self::accesskey( $name ); if ( $accesskey !== false ) { if ( $tooltip === false || $tooltip === '' ) { - $tooltip = "[$accesskey]"; + $tooltip = wfMessage( 'brackets', $accesskey )->escaped(); } else { - $tooltip .= " [$accesskey]"; + $tooltip .= wfMessage( 'word-separator' )->escaped(); + $tooltip .= wfMessage( 'brackets', $accesskey )->escaped(); } } }