[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [tortoisesvn] r21423 committed - Silence warning when building potfile. Image files are not translated ...

From: Simon Large <simon.tortoisesvn_at_gmail.com>
Date: Sat, 21 May 2011 09:14:11 +0100

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

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.