* 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:
Alex Roitman
2006-03-17 19:15:16 +00:00
parent 626349a7a2
commit 9577aba0bf
6 changed files with 61 additions and 60 deletions

View File

@@ -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":