Revision: 5663 Author: leogregianin Date: 2008-07-01 02:04:05 +0000 (Tue, 01 Jul 2008)
Log Message: ----------- translated unknown message
Modified Paths: -------------- trunk/pywikipedia/solve_disambiguation.py
Modified: trunk/pywikipedia/solve_disambiguation.py =================================================================== --- trunk/pywikipedia/solve_disambiguation.py 2008-06-30 19:48:07 UTC (rev 5662) +++ trunk/pywikipedia/solve_disambiguation.py 2008-07-01 02:04:05 UTC (rev 5663) @@ -166,6 +166,13 @@ 'sr': u'Решавање вишезначних одредница помоћу бота: %s - Removed link(s)', 'sv': u'Länkar direkt till rätt artikel för: %s - Tog bort länk(ar)', } + +# Summary message to (unknown) +unknown_msg = { + 'en' : u'(unknown)', + 'pt' : u'(desconhecido)', + } + # disambiguation page name format for "primary topic" disambiguations # (Begriffsklärungen nach Modell 2) primary_topic_format = { @@ -838,7 +845,7 @@ targets = targets[:-2]
if not targets: - targets = u'(unknown)' + targets = wikipedia.translate(self.mysite, unknown_msg)
# first check whether user has customized the edit comment if wikipedia.config.disambiguation_comment.has_key(self.mysite.family.name) and wikipedia.config.disambiguation_comment[self.mysite.family.name].has_key(self.mylang):