Kludge for the present state of PHPTAL 1.0.0's i18n:attributes, which isn't backwards...
authorBrion Vibber <brion@users.mediawiki.org>
Sat, 23 Oct 2004 07:37:48 +0000 (07:37 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sat, 23 Oct 2004 07:37:48 +0000 (07:37 +0000)
includes/SkinPHPTal.php

index f6cc7b9..f986ae4 100644 (file)
@@ -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)) {