Welcome to the ScoutWiki Network

Bot configuration/scoutwiki family.py

From ScoutWiki Network
Revision as of 21:07, 10 August 2008 by Akela NDE (talk | contribs)
Jump to: navigation, search
# -*- coding: utf-8  -*-
import family

# ScoutWiki, the international network of scouting wikis.
# ScoutWiki, le réseau international de wikis scouts.

class Family(family.Family):
    def __init__(self):
        family.Family.__init__(self)
        self.name = 'scoutwiki'

        self.langs = {
            'fi':'wiki.partio.net', # PartioWiki
            'fr':'fr.scoutwiki.org', # Scoutopedia
            'de':'de.scoutwiki.org', #PfadiWiki
            'nl':'www.scoutpedia.nl', #Scoutpedia (NL)
            'es':'wiki.larocadelconsejo.net', #WikiRoca
            'en':'en.scoutwiki.org', #ScoutWiki English
            'ar':'ar.scoutwiki.org', #ScoutWiki Arabic
            'eo':'eo.scoutwiki.org', #SkoltViko en Esperanto
	    'sv':'sv.scoutwiki.org', #ScoutWiki Swedish
	    'it':'it.scoutwiki.org', #ScoutWiki en italiano
	    'da':'da.scoutwiki.org', #ScoutWiki in Danish: SpejderWiki
	    'ja':'www.scoutship.org', #Boyscout Guide, Japanese scoutwiki
	    'cs':'cs.scoutwiki.org', #JunakWiki, Czechish scoutwiki
           #ScoutMedia
            'media':'media.scoutwiki.org',
        }

        # Most namespaces are inherited from family.Family.

        self.namespaces[4] = {
            '_default': u'scoutwiki',
            'fi': u'PartioWiki',
            'fr': u'Scoutopedia',
            'de': u'Pfadiwiki',
            'nl': u'Scoutpedia',
            'es': u'WikiRoca',
            'en': u'ScoutWiki',
            'ar': u'ScoutWiki',
            'eo': u'SkoltVikio',
	    'sv': u'ScoutWiki',
	    'it': u'ScoutWiki',
	    'da': u'SpejderWiki',
	    'ja': u'ボーイスカウトガイド',
	    'cs': u'JunakWiki',
            #ScoutMedia
            'media': u'ScoutMedia',
        }
        self.namespaces[5] = {
            '_default': u'Talk about scoutwiki',
            'fi': u'Keskustelu PartioWikista',
            'fr': u'Discussion Scoutopedia',
            'de': u'Pfadiwiki Diskussion',
            'nl': u'Overleg Scoutpedia',
            'es': u'WikiRoca Discusión',
            'en': u'ScoutWiki talk',
            'ar': u'نقاش ScoutWiki',
            'eo': u'SkoltVikio diskuto',
	    'sv': u'ScoutWikidiskussion',
	    'it': u'Discussioni ScoutWiki',
	    'da': u'SpejderWiki-diskussion',
	    'ja': u'ボーイスカウトガイド‐ノート',
	    'cs': u'JunakWiki diskuse',
            #ScoutMedia
            'media': u'ScoutMedia talk',
        }

        #custom namespaces
        self.namespaces[100] = {
            '_default':u'Portal',       #portals
            #'fi':u'Lodju' #Geocache (bug)
            'fr':u'Portail',
	    'en':u'Portal',
	    'it':u'Portale',
        }
        self.namespaces[101] = {
            '_default':u'Portal talk',
            #'fi':u'Keskustelu lodjusta'
            'fr':u'Discussion Portail',
	    'en':u'Portal Talk',
	    'it':u'Discussioni portale',
        }
        self.namespaces[102] = {
            '_default':u'Projet'     #Wiki-projects
            #'fr':u'Projet' bug ?
        }
        self.namespaces[103] = {
            '_default':u'Discussion Projet'    #Wikiproject talk pages
            #'fr':u'Discussion projet' bug ?
        }

    def version(self, code):
        return "1.12.0"

    def path(self, code):
        return '/index.php'

#Special lines for NL wiki compatibility - Not tested
	def scriptpath(self, code):
	if code=='nl':
		return '/wiki'
		return ''

	def path(self, code):
	if code=='nl':
		return '/wiki/index.php'
		return '/index.php'