Created
August 12, 2010 12:45
-
-
Save littlebtc/520903 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| import family | |
| class Family(family.Family): | |
| def __init__(self): | |
| family.Family.__init__(self) | |
| self.name = 'moztwwiki' | |
| self.langs = { | |
| 'zh': None, | |
| } | |
| # Translation used on all wikis for the different namespaces. | |
| # Most namespaces are inherited from family.Family. | |
| # Check the family.py file (in main directory) to see the standard | |
| # namespace translations for each known language. | |
| # You only need to enter translations that differ from the default. | |
| self.namespaces[4] = { | |
| '_default': u'MoztwWiki', # Specify the project namespace here. | |
| } | |
| self.namespaces[5] = { | |
| '_default': u'MoztwWiki討論', # Specify the talk page of the project namespace here. | |
| } | |
| def hostname(self,code): | |
| return 'twhk2011.twbbs.org' | |
| def path(self, code): | |
| return '/wiki/index.php' | |
| def apipath(self, code): | |
| return '/wiki/api.php' | |
| def version(self, code): | |
| return "1.16.0" # Which version of MediaWiki is used? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment