Lübbe,
On 28 October 2011 08:55, Lübbe Onken <luebbe.tortoisesvn_at_googlemail.com>wrote:
> Hi Folks,
>
> I just updated my WC, so Otos fixes should be there, but I get the same
> failure that Simon reported initially:
>
> [echo] Creating po template from sources
> [exec] Traceback (most recent call last):
> [exec] File "xml2po.py", line 746, in <module>
> [exec] setTranslations()
> [exec] File "xml2po.py", line 221, in setTranslations
> [exec] file = open(mofile, "rb")
> [exec] IOError: [Errno 22] invalid mode ('rb') or filename: ''
>
> BUILD FAILED - 0 non-fatal error(s), 6 warning(s)
>
> Why does it work on Jean-Marcs machine?
>
> It probably doesn't on my machine (I am not at home at the moment so can't
test right now), but I visually inspected Simon's first patch. There should
be an if statement guarding the call to setTranslations() in the script:
Index: xml2po.py
===================================================================
--- xml2po.py (revision 22202)
+++ xml2po.py (working copy)
@@ -744,7 +744,8 @@
if CurrentXmlMode and origxml=='':
CurrentXmlMode.preProcessXml(doc,msg)
# timetick( "XML pre processed")
- setTranslations()
+ if mode == 'merge':
+ setTranslations()
doSerialize(doc)
# timetick( "doc serialized")
Given that Simon sent in the patch, I inferred that he had successfully
created the .pot file.
--
Regards,
Jean-Marc
--
. ___
. @@ // \\ "De Chelonian Mobile"
. (_,\/ \_/ \ TortoiseSVN
. \ \_/_\_/> The coolest Interface to (Sub)Version Control
. /_/ \_\ http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2865639
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-10-28 09:01:14 CEST