From: Brion Vibber Date: Sat, 23 Oct 2004 07:37:48 +0000 (+0000) Subject: Kludge for the present state of PHPTAL 1.0.0's i18n:attributes, which isn't backwards... X-Git-Tag: 1.5.0alpha1~1495 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=73a7c1fb710440e09af11c5996673f328083873c;p=lhc%2Fweb%2Fwiklou.git Kludge for the present state of PHPTAL 1.0.0's i18n:attributes, which isn't backwards-compatible with PHPTAL 0.7.0's version --- diff --git a/includes/SkinPHPTal.php b/includes/SkinPHPTal.php index f6cc7b94dc..f986ae4b6e 100644 --- a/includes/SkinPHPTal.php +++ b/includes/SkinPHPTal.php @@ -63,6 +63,9 @@ class MediaWiki_I18N { } function translate($value) { + // Hack for i18n:attributes in PHPTAL 1.0.0 dev version as of 2004-10-23 + $value = preg_replace( '/^string:/', '', $value ); + $value = wfMsg( $value ); // interpolate variables while (preg_match('/\$([0-9]*?)/sm', $value, $m)) {