<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>32586</bug_id>
          
          <creation_ts>2016-10-07 13:42:21 +0300</creation_ts>
          <short_desc>Не локализуется &lt;span&gt; в теге &lt;a&gt;</short_desc>
          <delta_ts>2017-11-05 14:18:05 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>alterator-fbi</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrey Cherepanov">cas</reporter>
          <assigned_to name="Mikhail Efremov">sem</assigned_to>
          <cc>imz</cc>
    
    <cc>manowar</cc>
    
    <cc>nbr</cc>
    
    <cc>sem</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>159105</commentid>
    <comment_count>0</comment_count>
    <who name="Andrey Cherepanov">cas</who>
    <bug_when>2016-10-07 13:42:21 +0300</bug_when>
    <thetext>При использовании локализуемого &lt;span translate=&quot;_&quot;&gt; в теге &lt;a&gt;, он не локализуется.

В примере:
&lt;span translate=&quot;_&quot;&gt;WORD&lt;/span&gt; &lt;a href=&quot;/ca/root&quot;&gt;&lt;span translate=&quot;_&quot;&gt;WORD&lt;/span&gt;&lt;/a&gt;
первый span будет локализованным, а второй - нет.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>166962</commentid>
    <comment_count>1</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2017-11-05 14:18:05 +0300</bug_when>
    <thetext>Fixed in 5.35-alt1 by http://git.altlinux.org/gears/a/alterator-fbi.git?p=alterator-fbi.git;a=commitdiff;h=aa1a7e483d5dd0266c6e4509b915146cd5e206e1 :

--- a/alterator-fbi/interfaces/guile/ahttpd/translate.scm
+++ b/alterator-fbi/interfaces/guile/ahttpd/translate.scm
@@ -86,7 +86,7 @@
                              options
                              &apos;prefix-href token-prefix)
                             &apos;href token-prefix)
-                         ,content)))
+                         ,(process-translate2 content hsh default-domain))))
      (replace-tag: &quot;span&quot;
                    (lambda (options content)
                      (let ((domain (cond-assq &apos;translate options)))

(This bug was previously introduced in 5.32 when translate.scm was hijacked for inserting CSRF tokens into &lt;a href=&quot;...&quot; ...&gt;, and so other tags were translated as before, but the A tag was a special case, without calling the translation for any of its content.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>