From 73a7c1fb710440e09af11c5996673f328083873c Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 23 Oct 2004 07:37:48 +0000 Subject: [PATCH] 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 --- includes/SkinPHPTal.php | 3 +++ 1 file changed, 3 insertions(+) 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)) { -- 2.20.1