<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
    <title>Magento Issue Tracking</title>
    <link>http://www.magentocommerce.com/bug-tracking/</link>
    <description></description>
    <dc:language>en</dc:language>
    <dc:creator>MagentoCommerce</dc:creator>
    <dc:rights>Copyright {gmt_date format="%Y"}</dc:rights>
    <dc:date>{gmt_date format="%Y-%m-%dT%H:%i:%s%Q"}</dc:date>
    <admin:generatorAgent rdf:resource="http://expressionengine.com/" />
        <item>
        <title>View Issue #21501 / Problem with translate inline and translations.</title>
        <link>http://www.magentocommerce.com/bug-tracking/issue?issue=8678</link>
        <description><![CDATA[<strong>Posted:</strong> 2010-03-12 07:42:01<br/><strong>Category:</strong> Configuration<br/><strong>Version:</strong> 1.4.0.1<br/><strong>Priority:</strong> normal<br/><strong>Status:</strong> closed<br/><strong>Reported By:</strong> <a href="http://www.magentocommerce.com/boards/member/285965/">pmjacob</a></strong><br/><br/>I detect an error in version 1.4.0.1.<br />
<br />
Some translations are not working.<br />
<br />
In function _otherText() in /app/code/core/Mage/Core/Model/Translate/Inline.php we have<br />
<br />
[code]<br />
            if(-1 == $m[1][1])//title was not found - this is not an attribute<br />
            {<br />
<br />
                $tr = '{shown:''.$this-&amp;gt;_escape($m[3][0]).'','<br />
                    .'translated:''.$this-&amp;gt;_escape($m[4][0]).'','<br />
                    .'original:''.$this-&amp;gt;_escape($m[5][0]).'','<br />
                    .'location:'Text','<br />
                    .'scope:''.$this-&amp;gt;_escape($m[6][0]).''}';<br />
                $spanHtml = '&amp;lt;span translate='.$quoteHtml.'['.$tr.']'.$quoteHtml.'&amp;gt;'.$m[3][0].'&amp;lt;/span&amp;gt;';<br />
            }<br />
            else<br />
            {<br />
                $spanHtml = $m[3][0];<br />
            }<br />
                $spanHtml = $m[3][0];<br />
            $this-&amp;gt;_content = substr_replace($this-&amp;gt;_content, $spanHtml, $m[2][1], strlen($m[2][0]) );<br />
            $next = $m[0][1];<br />
[/code]<br />
<br />
and after the if-else statement we get the same &quot;$spanHtml = $m[3][0];&quot; that is inside else statement.<br />
<br />
In my case i've commented that line and most of the translations worked again.<br/><br/><hr/>]]></description>
    </item>
    
                    <item>
        <title>RE: Problem with translate inline and translations.</title>
        <description><![CDATA[<em>#1 / Comment by <a href="http://www.magentocommerce.com/boards/member/78929/">NoStress Commerce.</a></em><br/><br/>Hi,<br />
<br />
look at my _otherText() method in file /app/code/core/Mage/Core/Model/Translate/Inline.php<br />
<br />
I've remove some lines and it works very well for me. I hope that didn't break something else :-)<br />
<br />
I attach my modified method below:<br />
<br />
<br />
<br />
 protected function _otherText()<br />
    {<br />
        if ($this-&gt;getIsJson()) {<br />
            $quoteHtml = '\&quot;';<br />
        } else {<br />
            $quoteHtml = '&quot;';<br />
        }<br />
<br />
        $next = 0;<br />
        $m    = array();<br />
        <br />
        while (preg_match('#(&gt;|title=\&quot;)*('.$this-&gt;_tokenRegex.')#', $this-&gt;_content, $m, PREG_OFFSET_CAPTURE, $next)) {<br />
               <br />
            {<br />
<br />
                $tr = '{shown:\''.$this-&gt;_escape($m[3][0]).'\','<br />
                    .'translated:\''.$this-&gt;_escape($m[4][0]).'\','<br />
                    .'original:\''.$this-&gt;_escape($m[5][0]).'\','<br />
                    .'location:\'Text\','<br />
                    .'scope:\''.$this-&gt;_escape($m[6][0]).'\'}';<br />
                $spanHtml = '&lt;span translate='.$quoteHtml.'['.$tr.']'.$quoteHtml.'&gt;'.$m[3][0].'&lt;/span&gt;';<br />
            }<br />
<br />
            $this-&gt;_content = substr_replace($this-&gt;_content, $spanHtml, $m[2][1], strlen($m[2][0]) );<br />
            $next = $m[0][1];<br />
        }<br />
<br />
    }]]></description>
    </item>
            <item>
        <title>RE: Problem with translate inline and translations.</title>
        <description><![CDATA[<em>#2 / Comment by <a href="http://www.magentocommerce.com/boards/member/57688/">mrgniarf</a></em><br/><br/>@ NoStress Commerce : your method works perfectly for me. No mater what is the text type, translate tools shows up as it shows in 1.3.2CE ! I just correct it to be cleaner :<br />
<br />
protected function _otherText() {<br />
        <br />
        if ($this-&gt;getIsJson()) {<br />
            $quoteHtml = '\&quot;';<br />
        } else {<br />
            $quoteHtml = '&quot;';<br />
        }<br />
        <br />
        $next = 0;<br />
        $m = array();<br />
        <br />
        while (preg_match('#(&gt;|title=\&quot;)*('.$this-&gt;_tokenRegex.')#', $this-&gt;_content, $m, PREG_OFFSET_CAPTURE, $next)) {<br />
        <br />
        $tr = '{shown:\''.$this-&gt;_escape($m[3][0]).'\','<br />
        .'translated:\''.$this-&gt;_escape($m[4][0]).'\','<br />
        .'original:\''.$this-&gt;_escape($m[5][0]).'\','<br />
        .'location:\'Text\','<br />
        .'scope:\''.$this-&gt;_escape($m[6][0]).'\'}';<br />
        $spanHtml = '&lt;span translate='.$quoteHtml.'['.$tr.']'.$quoteHtml.'&gt;'.$m[3][0].'&lt;/span&gt;';<br />
            <br />
        <br />
        $this-&gt;_content = substr_replace($this-&gt;_content, $spanHtml, $m[2][1], strlen($m[2][0]) );<br />
        $next = $m[0][1];<br />
        }<br />
    }]]></description>
    </item>
            <item>
        <title>RE: Problem with translate inline and translations.</title>
        <description><![CDATA[<em>#3 / Comment by Magento Team</em><br/><br/>fixed]]></description>
    </item>
        </channel>
</rss>