On 21 May 2011 06:28, Oto BREZINA <otik_at_printflow.eu> wrote:
> On 2011-05-21 00:37, tortoisesvn_at_googlecode.com wrote:
>> Revision: 21423
>> Author: Â simon.tortoisesvn
>> Date: Â Â Fri May 20 15:35:42 2011
>> Log: Â Â Â Silence warning when building potfile. Image files are not
>> translated so there is no point in warning at this point if they are not
>> found.
>> http://code.google.com/p/tortoisesvn/source/detail?r=21423
>>
>> Modified:
>> Â Â /trunk/doc/xml2po-modes/docbook.py
>>
>> =======================================
>> --- /trunk/doc/xml2po-modes/docbook.py     Sat Nov 13 00:30:27 2010
>> +++ /trunk/doc/xml2po-modes/docbook.py     Fri May 20 15:35:42 2011
>> @@ -133,7 +133,7 @@
>> Â Â Â Â Â Â Â Â Â Â Â Â hash = self._md5_for_file(fullpath)
>> Â Â Â Â Â Â Â Â Â Â else:
>> Â Â Â Â Â Â Â Â Â Â Â Â hash = "THIS FILE DOESN'T EXIST"
>> - Â Â Â Â Â Â Â Â Â Â print>>sys.stderr, "Warning: image file '%s' not
>> found." % fullpath
>> + Â Â Â Â Â Â Â Â Â Â # print>>sys.stderr, "Warning: image file '%s' not
>> found." % fullpath
>>
>> Â Â Â Â Â Â Â Â Â Â msg.outputMessage("@@image: '%s'; md5=%s" % (attr, hash),
>> node.lineNo(),
>> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â "When image changes, this message will
>> be marked fuzzy or untranslated for you.\n"+
>
> can be "missing" images info removed from .pot file in same manner ?
> Like this one:
>
> #. When image changes, this message will be marked fuzzy or untranslated
> for you.
> #. It doesn't matter what you translate it to: it's not used at all.
> #. (None)
> msgid "@@image: 'images/svn_move.png'; md5=THIS FILE DOESN'T EXIST"
> msgstr ""
That's exactly the file I was aiming at. It's not missing but the path
to it has been constructed incorrectly. The printf was causing the
Nant build to throw a warning which is always ignored anyway. I don't
know enough python to simply remove these references from the potfile
completely.
Simon
--
: Â Â Â ___
:  oo  // \\    "De Chelonian Mobile"
: (_,\/ \_/ \ Â Â TortoiseSVN
: Â \ \_/_\_/> Â Â The coolest Interface to (Sub)Version Control
: Â /_/ Â \_\ Â Â http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2743223
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-05-21 10:14:16 CEST