Convert -{}- markups in title="" and alt="".
authorLiangent <liangent@gmail.com>
Fri, 31 Aug 2012 17:30:05 +0000 (01:30 +0800)
committerLiangent <liangent@gmail.com>
Fri, 31 Aug 2012 18:46:15 +0000 (02:46 +0800)
convertTo() is used to replace translate() currently in use to
do conversion for some attributes of HTML tags.

Change-Id: Iee3ec2913787f15616abe6cf8880b59a883c82a0

languages/LanguageConverter.php

index cbd5d9a..fe670e1 100644 (file)
@@ -406,7 +406,7 @@ class LanguageConverter {
                                        $attr = $attrs[$attrName];
                                        // Don't convert URLs
                                        if ( !strpos( $attr, '://' ) ) {
-                                               $attr = $this->translate( $attr, $toVariant );
+                                               $attr = $this->convertTo( $attr, $toVariant );
                                        }
 
                                        // Remove HTML tags to avoid disrupting the layout