# -*- coding: utf-8 -*-
__version__ = '$Id$'
import family
class Family(family.Family):
def __init__(self):
family.Family.__init__(self)
self.name = 'vikidia'
self.langs = {
'fr': 'fr.vikidia.org',
'es': 'es.vikidia.org',
}
self.namespaces[1] = {
'fr': [u'Discussion', u'Discuter'],
'es': u'Conversacin acerca de',
}
self.namespaces[3] = {
'fr': [u'Discussion utilisateur', u'Discussion Utilisateur'],
'es': [u'Mensajes de usuario', u'Usuario Discusin'],
}
self.namespaces[4] = {
'_default': [u'Vikidia', self.namespaces[4]['_default']], # REQUIRED
}
self.namespaces[5] = {
'_default': [u'Discussion Vikidia', self.namespaces[5]['_default']],
'es' : u'Conversacin acerca de Vikidia',
}
self.namespaces[6] = {
'fr': [u'Fichier', u'Image'],
'es': [u'Archivo', u'Image', u'Imagen'],
}
self.namespaces[7] = {
'fr': [u'Discussion fichier', u'Image talk', u'Discussion Fichier',
u'Discussion Image'],
'es': [u'Conversacin acerca de imagen', u'Image talk', u'Imagen Discusin'],
}
self.namespaces[11] = {
'fr': [u'Discussion modle', u'Discussion Modle'],
'es': u'Conversacin acerca de plantilla'
}
self.namespaces[13] = {
'fr': [u'Discussion aide', u'Discussion Aide'],
'es': u'Conversacin acerca de ayuda',
}
self.namespaces[15] = {
'fr': [u'Discussion catgorie', u'Discussion Catgorie'],
'es': u'Conversacin acerca de categora'
}
self.namespaces[100] = {
'fr': u'Projet',
'es': u'Proyecto',
}
self.namespaces[101] = {
'fr': u'Discussion Projet',
'es': u'Conversacin de proyecto',
}
self.namespaces[102] = {
'fr': u'Portail',
'es': u'Portal',
}
self.namespaces[103] = {
'fr': u'Discussion Portail',
'es': u'Conversacin acerca de portal',
}
self.namespaces[104] = {
'fr': u'Quiz',
'es': u'Quiz',
}
self.namespaces[105] = {
'fr': u'Discussion Quiz',
'es': u'Conversacin acerca de quiz',
}
# Wikimedia wikis all use "bodyContent" as the id of the <div>
# element that contains the actual page content; change this for
# wikis that use something else (e.g., mozilla family)
self.content_id = "bodyContent"
def scriptpath(self, code):
"""The prefix used to locate scripts on this wiki.
This is the value displayed when you enter {{SCRIPTPATH}} on a
wiki page (often displayed at [[Help:Variables]] if the wiki has
copied the master help page correctly).
The default value is the one used on Wikimedia Foundation wikis,
but needs to be overridden in the family file for any wiki that
uses a different value.
"""
return '/wiki'
# Which version of MediaWiki is used? REQUIRED
def version(self, code):
# Replace with the actual version being run on your wiki
return '1.15.2'
def code2encoding(self, code):
"""Return the encoding for a specific language wiki"""
# Most wikis nowadays use UTF-8, but change this if yours uses
# a different encoding
return 'utf-8'
|