Revision: 4497 Author: huji Date: 2007-11-02 08:01:46 +0000 (Fri, 02 Nov 2007)
Log Message: ----------- * Added inforation about the gettranslation() function to the beginning of the file.
Modified Paths: -------------- branches/pywikipedia/messages/wikipedia.py
Modified: branches/pywikipedia/messages/wikipedia.py =================================================================== --- branches/pywikipedia/messages/wikipedia.py 2007-11-02 07:56:45 UTC (rev 4496) +++ branches/pywikipedia/messages/wikipedia.py 2007-11-02 08:01:46 UTC (rev 4497) @@ -81,6 +81,10 @@ translate(xx, dict): dict is a dictionary, giving text depending on language, xx is a language. Returns the text in the most applicable language for the xx: wiki +gettranslation(xx, msg): msg is a string which contains the English versin of + and edit summary, xx is a langauge. Returns the edit summary in the most + applicable langauge for the xx: wiki. Uses the nested dictionaries located + at messages.py setUserAgent(text): Sets the string being passed to the HTTP server as the User-agent: header. Defaults to 'Pywikipediabot/1.0'.