Revision: 8227 Author: xqt Date: 2010-05-28 17:18:45 +0000 (Fri, 28 May 2010)
Log Message: ----------- +vikidia family file
Added Paths: ----------- trunk/pywikipedia/families/vikidia_family.py
Added: trunk/pywikipedia/families/vikidia_family.py =================================================================== --- trunk/pywikipedia/families/vikidia_family.py (rev 0) +++ trunk/pywikipedia/families/vikidia_family.py 2010-05-28 17:18:45 UTC (rev 8227) @@ -0,0 +1,105 @@ +# -*- 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'Conversación acerca de', + } + self.namespaces[3] = { + 'fr': [u'Discussion utilisateur', u'Discussion Utilisateur'], + 'es': [u'Mensajes de usuario', u'Usuario Discusión'], + } + self.namespaces[4] = { + '_default': [u'Vikidia', self.namespaces[4]['_default']], # REQUIRED + } + self.namespaces[5] = { + '_default': [u'Discussion Vikidia', self.namespaces[5]['_default']], + 'es' : u'Conversación 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'Conversación acerca de imagen', u'Image talk', u'Imagen Discusión'], + } + self.namespaces[11] = { + 'fr': [u'Discussion modèle', u'Discussion Modèle'], + 'es': u'Conversación acerca de plantilla' + } + self.namespaces[13] = { + 'fr': [u'Discussion aide', u'Discussion Aide'], + 'es': u'Conversación acerca de ayuda', + } + self.namespaces[15] = { + 'fr': [u'Discussion catégorie', u'Discussion Catégorie'], + 'es': u'Conversación acerca de categor�a' + } + self.namespaces[100] = { + 'fr': u'Projet', + 'es': u'Proyecto', + } + self.namespaces[101] = { + 'fr': u'Discussion Projet', + 'es': u'Conversación de proyecto', + } + self.namespaces[102] = { + 'fr': u'Portail', + 'es': u'Portal', + } + self.namespaces[103] = { + 'fr': u'Discussion Portail', + 'es': u'Conversación acerca de portal', + } + self.namespaces[104] = { + 'fr': u'Quiz', + 'es': u'Quiz', + } + self.namespaces[105] = { + 'fr': u'Discussion Quiz', + 'es': u'Conversación 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'
Property changes on: trunk/pywikipedia/families/vikidia_family.py ___________________________________________________________________ Added: svn:eol-style + native
pywikipedia-svn@lists.wikimedia.org