[Checkins] SVN: z3c.pt/trunk/src/z3c/pt/translation.txt Demonstrating two bugs in the interpolation translation: There's a slicing issue with text/tail and an unit-of-work ordering issue that causes problems when there's more than two interpolations per text.

Malthe Borch mborch at gmail.com
Sat Jul 5 14:51:04 EDT 2008


Log message for revision 88043:
  Demonstrating two bugs in the interpolation translation: There's a slicing issue with text/tail and an unit-of-work ordering issue that causes problems when there's more than two interpolations per text.

Changed:
  U   z3c.pt/trunk/src/z3c/pt/translation.txt

-=-
Modified: z3c.pt/trunk/src/z3c/pt/translation.txt
===================================================================
--- z3c.pt/trunk/src/z3c/pt/translation.txt	2008-07-05 18:28:26 UTC (rev 88042)
+++ z3c.pt/trunk/src/z3c/pt/translation.txt	2008-07-05 18:51:04 UTC (rev 88043)
@@ -170,6 +170,7 @@
   ... <div xmlns="http://www.w3.org/1999/xhtml"
   ...      xmlns:tal="http://xml.zope.org/namespaces/tal">
   ...   <span>inter${'pol' + 'ati'}on</span>is ${int('test') | 'convenient'}!
+  ...   <span>${'a'}${'b'}${'c'}</span>
   ...   <span tal:define="hello 'Hello'" class="${hello} World!" />
   ...   <span class="my-${'class'} item${'Last'}" />
   ...   <span style="position: ${'abs'}olute"
@@ -177,6 +178,7 @@
   ... </div>""", translate_xml)
     <div>
       <span>interpolation</span>is convenient!
+      <span>abc</span>
       <span class="Hello World!" />
       <span class="my-class itemLast" />
       <span style="position: absolute" class="my-class itemLast" />



More information about the Checkins mailing list