From: Siebrand Mazeland Date: Mon, 21 Oct 2013 12:01:39 +0000 (+0200) Subject: Use i18n instead of hardcoded brackets and spaces X-Git-Tag: 1.31.0-rc.0~18391^2 X-Git-Url: https://git.cyclocoop.org/%27.%24link.%27?a=commitdiff_plain;h=16c2a52df57b78fa08c873bc9a02fdaef4a1a88b;p=lhc%2Fweb%2Fwiklou.git Use i18n instead of hardcoded brackets and spaces Change-Id: If914e26f2af23f04c46f011ad8a276a9d3190583 --- diff --git a/includes/Linker.php b/includes/Linker.php index 5bb92308ff..3e2d91fb34 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -2100,9 +2100,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(); } } }