From: <fri...@us...> - 2007-02-28 15:19:06
|
Revision: 5195 http://svn.sourceforge.net/translate/?rev=5195&view=rev Author: friedelwolff Date: 2007-02-28 07:17:22 -0800 (Wed, 28 Feb 2007) Log Message: ----------- Properly convert cvs unit with base class methods without doing the escaping here. Modified Paths: -------------- src/trunk/translate/convert/csv2po.py Modified: src/trunk/translate/convert/csv2po.py =================================================================== --- src/trunk/translate/convert/csv2po.py 2007-02-28 13:52:12 UTC (rev 5194) +++ src/trunk/translate/convert/csv2po.py 2007-02-28 15:17:22 UTC (rev 5195) @@ -86,9 +86,10 @@ def convertunit(self, csvunit): """converts csv unit to po unit""" pounit = po.pounit(encoding="UTF-8") - pounit.sourcecomments = ["#: " + csvunit.comment + "\n"] - pounit.msgid = [quotecsvstr(line) for line in csvunit.source.split('\n')] - pounit.msgstr = [quotecsvstr(line) for line in csvunit.target.split('\n')] + if csvunit.comment: + pounit.addlocation(csvunit.comment) + pounit.source = csvunit.source + pounit.target = csvunit.target return pounit def handlecsvunit(self, csvunit): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |