* configure.in: Multiple improvements.
* config.guess, config.sub: newer versions. * autogen.sh: Better gnome-common message. * src/TipOfDay.py (TipParser): skip messages with xml:lang attribute, because these are already supplied in the po file. svn: r6162
This commit is contained in:
@@ -130,12 +130,15 @@ class TipParser:
|
||||
"""
|
||||
if tag == "tip":
|
||||
self.tlist = []
|
||||
# Skip all tips with xml:lang attribute, as they are
|
||||
# already in the translation catalog
|
||||
self.skip = attrs.has_key('xml:lang')
|
||||
elif tag != "tips":
|
||||
# let all the other tags through, except for the "tips" tag
|
||||
self.tlist.append("<%s>" % tag)
|
||||
|
||||
def endElement(self,tag):
|
||||
if tag == "tip":
|
||||
if tag == "tip" and not self.skip:
|
||||
text = self.escape(''.join(self.tlist))
|
||||
self.mylist.append(' '.join(text.split()))
|
||||
elif tag != "tips":
|
||||
|
||||
Reference in New Issue
Block a user