Skip to content

Instantly share code, notes, and snippets.

@littlebtc
Created August 12, 2010 12:45
Show Gist options
  • Select an option

  • Save littlebtc/520903 to your computer and use it in GitHub Desktop.

Select an option

Save littlebtc/520903 to your computer and use it in GitHub Desktop.
# -*- 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