# -*- coding: utf-8 -*-
import family
__version__ = '$Id: wikiversity_family.py 8225 2010-05-28 06:16:24Z xqt $'
# The Wikimedia family that is known as Wikiversity
class Family(family.Family):
def __init__(self):
family.Family.__init__(self)
self.name = 'wikiversity'
self.languages_by_size = [
'en', 'fr', 'de', 'beta', 'cs', 'es', 'it', 'ru', 'pt', 'el', 'fi',
'ja',
]
if family.config.SSL_connection:
self.langs = dict([(lang, None) for lang in self.languages_by_size])
else:
self.langs = dict([(lang, '%s.wikiversity.org' % lang) for lang in self.languages_by_size])
# Most namespaces are inherited from family.Family.
# Translation used on all wikis for the different namespaces.
# (Please sort languages alphabetically)
# You only need to enter translations that differ from _default.
self.namespaces[4] = {
'_default': [u'Wikiversity', self.namespaces[4]['_default']],
'cs': u'Wikiverzita',
'el': u'',
'es': u'Wikiversidad',
'fi': u'Wikiopisto',
'fr': u'Wikiversit',
'it': u'Wikiversit',
'pt': u'Wikiversidade',
'ru': u'',
}
self.namespaces[5] = {
'_default': [u'Wikiversity talk', self.namespaces[5]['_default']],
'cs': u'Diskuse k Wikiverzit',
'de': u'Wikiversity Diskussion',
'el': u' ',
'es': u'Wikiversidad Discusin',
'fi': u'Keskustelu Wikiopistosta',
'fr': u'Discussion Wikiversit',
'it': u'Discussioni Wikiversit',
'ja': u'Wikiversity',
'pt': u'Wikiversidade Discusso',
'ru': u' ',
}
self.namespaces[100] = {
'cs': u'Frum',
'el': u'',
'en': u'School',
'it': u'Facolt',
'ja': u'School',
}
self.namespaces[101] = {
'cs': u'Diskuse k fru',
'el': u' ',
'en': u'School talk',
'it': u'Discussioni facolt',
'ja': u'School',
}
self.namespaces[102] = {
'el': u'',
'en': u'Portal',
'fr': u'Projet',
'it': u'Corso',
'ja': u'Portal',
}
self.namespaces[103] = {
'el': u' ',
'en': u'Portal talk',
'fr': u'Discussion Projet',
'it': u'Discussioni corso',
'ja': u'Portal',
}
self.namespaces[104] = {
'en': u'Topic',
'it': u'Materia',
'ja': u'Topic',
}
self.namespaces[105] = {
'en': u'Topic talk',
'it': u'Discussioni materia',
'ja': u'Topic',
}
self.namespaces[106] = {
'de': u'Kurs',
'fr': u'Facult',
'it': u'Dipartimento',
}
self.namespaces[107] = {
'de': u'Kurs Diskussion',
'fr': u'Discussion Facult',
'it': u'Discussioni dipartimento',
}
self.namespaces[108] = {
'de': u'Projekt',
'fr': u'Dpartement',
}
self.namespaces[109] = {
'de': u'Projekt Diskussion',
'fr': u'Discussion Dpartement',
}
self.namespaces[110] = {
'fr': u'Transwiki',
'ja': u'Transwiki',
}
self.namespaces[111] = {
'fr': u'Discussion Transwiki',
'ja': u'Transwiki',
}
self.cross_allowed = [
'ja',
]
# CentralAuth cross avaliable projects.
self.cross_projects = [
'wikipedia', 'wiktionary', 'wikibooks', 'wikiquote', 'wikisource', 'wikinews',
'meta', 'mediawiki', 'test', 'incubator', 'commons', 'species'
]
def version(self,code):
return '1.16wmf4'
def shared_image_repository(self, code):
return ('commons', 'commons')
if family.config.SSL_connection:
def hostname(self, code):
return 'secure.wikimedia.org'
def protocol(self, code):
return 'https'
def scriptpath(self, code):
return '/%s/%s/w' % (self.name, code)
def nicepath(self, code):
return '/%s/%s/wiki/' % (self.name, code)
|