Edgewall Software

Ticket #404: script_output.txt

File script_output.txt, 1.9 KB (added by Martin Scharrer <martin@…>, 4 years ago)

Output of demonstration script attachment:i18n-msg_removes_text.py Download

Line 
1Template text:
2
3<html xmlns:py="http://genshi.edgewall.org/"
4      xmlns:i18n="http://genshi.edgewall.org/i18n">
5    <p class="incorrect"  i18n:msg="first,second">
6        $first <span>$second</span> REMOVED <span>Inside a tag</span> Outside a tag
7    </p>
8    <p class="correct">
9        $first <span>$second</span> NOT REMOVED <span>Inside a tag</span> Outside a tag
10    </p>
11    <p class="correct" i18n:msg="first,second">
12        $first <span>$second</span> NOT REMOVED <span>Inside a tag</span>
13    </p>
14    <p class="correct" i18n:msg="first,second">
15        <span>$first</span> <span>$second</span> NOT REMOVED <span>Inside a tag</span> Outside a tag
16    </p>
17    <p class="correct" i18n:msg="first,second">
18        $first <span>$second</span> NOT REMOVED
19    </p>
20    <p class="correct" i18n:msg="first,second">
21        <span>$first</span> <span>$second</span> NOT REMOVED
22    </p>
23</html>
24
25Extracted messages:
26(4, None, u'%(first)s [1:%(second)s] REMOVED [2:Inside a tag] Outside a tag', [])
27(8, None, u'NOT REMOVED', [])
28(8, None, u'Inside a tag', [])
29(8, None, u'Outside a tag', [])
30(10, None, u'%(first)s [1:%(second)s] NOT REMOVED [2:Inside a tag]', [])
31(13, None, u'[1:%(first)s] [2:%(second)s] NOT REMOVED [3:Inside a tag] Outside a tag', [])
32(16, None, u'%(first)s [1:%(second)s] NOT REMOVED', [])
33(19, None, u'[1:%(first)s] [2:%(second)s] NOT REMOVED', [])
34
35Generated XHTML:
36<html>
37    <p class="incorrect">FIRST <span>SECOND</span><span>Inside a tag</span> Outside a tag</p>
38    <p class="correct">
39        FIRST <span>SECOND</span> NOT REMOVED <span>Inside a tag</span> Outside a tag
40    </p>
41    <p class="correct">FIRST <span>SECOND</span> NOT REMOVED <span>Inside a tag</span></p>
42    <p class="correct"><span>FIRST</span> <span>SECOND</span> NOT REMOVED <span>Inside a tag</span> Outside a tag</p>
43    <p class="correct">FIRST <span>SECOND</span> NOT REMOVED</p>
44    <p class="correct"><span>FIRST</span> <span>SECOND</span> NOT REMOVED</p>
45</html>