[Checkins] SVN: Sandbox/malthe/chameleon.core/ Fixed issue where the element text would not be included in a generated msg id.

Malthe Borch mborch at gmail.com
Thu Oct 30 13:22:34 EDT 2008


Log message for revision 92714:
  Fixed issue where the element text would not be included in a generated msg id.

Changed:
  U   Sandbox/malthe/chameleon.core/CHANGES.txt
  U   Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py

-=-
Modified: Sandbox/malthe/chameleon.core/CHANGES.txt
===================================================================
--- Sandbox/malthe/chameleon.core/CHANGES.txt	2008-10-30 17:21:03 UTC (rev 92713)
+++ Sandbox/malthe/chameleon.core/CHANGES.txt	2008-10-30 17:22:33 UTC (rev 92714)
@@ -4,6 +4,8 @@
 head
 ~~~~
 
+- Fixed translation issues (see recently added tests). [malthe]
+
 - Refactored string coercion. [malthe]
 
 1.0b3 (released 13/10/2008)

Modified: Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py
===================================================================
--- Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py	2008-10-30 17:21:03 UTC (rev 92713)
+++ Sandbox/malthe/chameleon.core/src/chameleon/core/translation.py	2008-10-30 17:22:33 UTC (rev 92714)
@@ -429,7 +429,8 @@
     def create_msgid(self):
         """Create an i18n msgid from the tag contents."""
 
-        out = StringIO(self.element.text)
+        out = StringIO()
+        out.write(self.element.text)
         
         for element in self.element:
             name = element.node.translation_name



More information about the Checkins mailing list