Revision: 4426 Author: leogregianin Date: 2007-10-05 18:50:16 +0000 (Fri, 05 Oct 2007)
Log Message: ----------- add Mozilla Developer Center family
Added Paths: ----------- trunk/pywikipedia/families/mdc_family.py
Added: trunk/pywikipedia/families/mdc_family.py =================================================================== --- trunk/pywikipedia/families/mdc_family.py (rev 0) +++ trunk/pywikipedia/families/mdc_family.py 2007-10-05 18:50:16 UTC (rev 4426) @@ -0,0 +1,51 @@ +# -*- coding: utf-8 -*- +import family + +# The Mozilla Developer Center, Official Mozilla Documents. + +class Family(family.Family): + def __init__(self): + family.Family.__init__(self) + self.name = 'mdc' + + self.langs = { + 'ca': None, + 'cn': None, + 'de': None, + 'en': None, + 'es': None, + 'fr': None, + 'it': None, + 'ja': None, + 'ko': None, + 'nl': None, + 'pl': None, + 'pt': None, + } + + self.namespaces[4] = { + '_default': u'MDC', + } + self.namespaces[5] = { + '_default': u'MDC talk', + 'ca': u'MDC Discussió', + 'cn': u'MDC talk', + 'de': u'MDC Diskussion', + 'es': u'MDC Discusión', + 'fr': u'Discussion MDC', + 'it': u'Discussioni MDC', + 'ja': u'MDC�?ノート', + 'ko': u'MDC토론', + 'nl': u'Overleg MDC', + 'pl': u'Dyskusja MDC', + 'pt': u'MDC Discussão', + } + + def hostname(self,code): + return 'developer.mozilla.org' + + def path(self, code): + return '/'+code+'/docs/index.php' + + def version(self, code): + return "1.5"