The ScoutWiki Network server was upgraded on November 20th, 2019. The maintenance is now over. Please inform us in Slack or via email support@scoutwiki.org if you encounter any unexpected errors – it's possible the upgrade has missed something. Thanks and happy scoutwiki'ng!

Bot configuration/scoutwiki family.py

From ScoutWiki Network
Jump to navigation Jump to search
# -*- coding: utf-8  -*-
import urllib
import family, config

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

        self.langs = {
            'ar': 'ar.scoutwiki.org',
            'cs': 'cs.scoutwiki.org',
            'da': 'da.scoutwiki.org',
            'de': 'de.scoutwiki.org',
            'en': 'en.scoutwiki.org',
            'eo': 'eo.scoutwiki.org',
       #    'es': 'wiki.larocadelconsejo.net',
            'fi': 'wiki.partio.net',
            'fr': 'fr.scoutwiki.org',
            'it': 'it.scoutwiki.org',
       #    'ja': 'www.scoutship.org',
            'nl': 'nl.scoutwiki.org',
            'pt': 'pt.scoutwiki.org',
            'sv': 'sv.scoutwiki.org',
            'uk': 'uk.scoutwiki.org',
            'asso': 'asso.scoutwiki.org',
            'scoutmedia': 'media.scoutwiki.org',
        }

        self.namespaces[4] = {
            '_default': [u'ScoutWiki', self.namespaces[4]['_default']],
            'ar': u'ScoutWiki',
            'cs': u'JunakWiki',
            'da': u'SpejderWiki',
            'de': u'Pfadiwiki',
            'en': u'ScoutWiki',
            'eo': u'SkoltVikio',
            'es': u'WikiRoca',
            'fi': u'PartioWiki',
            'fr': u'Scoutopedia',
            'it': u'ScoutWiki',
            'ja': u'ボーイスカウトガイド',
            'nl': u'Scoutpedia.nl',
       #    'pt': u' ',                        # to be added
            'sv': u'ScoutWiki',
       #    'uk': u' ',                        # to be added
            'asso': u'ScoutWiki Network',
            'scoutmedia': u'ScoutMedia',
        }

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

        self.namespaces[100] = {
            '_default': u'Portal',
       #    'fi':u'Lodju'
            'fr':u'Portail',
            'en':u'Portal',
            'it':u'Portale',
            'nl':u'Portaal',
        }

        self.namespaces[101] = {
            '_default': u'Portal talk',
       #    'fi':u'Keskustelu lodjusta'
            'fr':u'Discussion Portail',
            'en':u'Portal Talk',
            'it':u'Discussioni portale',
            'nl':u'Overleg portaal',
        }

        self.namespaces[102] = {
            '_default': u'Project',
       #    'fr':u'Projet'
        }

        self.namespaces[103] = {
            '_default': u'Project talk',
       #    'fr':u'Discussion projet'
        }

        self.disambiguationTemplates = {
            'it':  [u'Disambigua'],
        }

        self.disambcatname = {
            'it':  u'Disambigua',
            }

        self.alphabetic_revised = [
            'ar', 'cs', 'da', 'de', en', 'eo', 'es', 'fr', 'fi',
            'it', 'ja', 'nl', 'pt', 'sv','uk', 'asso', 'media',
        ]

    def version(self, code):
        return '1.13'

    def shared_image_repository(self, code):
        return ('scoutmedia', 'scoutmedia')