Revision: 7011 Author: alexsh Date: 2009-07-03 16:12:57 +0000 (Fri, 03 Jul 2009)
Log Message: ----------- Update anarchopedia, omegawiki and memoryalpha
Modified Paths: -------------- trunk/pywikipedia/families/anarchopedia_family.py trunk/pywikipedia/families/memoryalpha_family.py trunk/pywikipedia/families/omegawiki_family.py
Modified: trunk/pywikipedia/families/anarchopedia_family.py =================================================================== --- trunk/pywikipedia/families/anarchopedia_family.py 2009-07-01 18:19:47 UTC (rev 7010) +++ trunk/pywikipedia/families/anarchopedia_family.py 2009-07-03 16:12:57 UTC (rev 7011) @@ -8,50 +8,13 @@ family.Family.__init__(self) self.name = 'anarchopedia'
- interface_lang = { - 'ara': 'ar', - 'bos': 'sr', - 'dan': 'da', - 'deu': 'de', - 'dut': 'nl', - 'ell': 'el', - 'eng': 'en', - 'epo': 'en', - 'fas': 'fa', - 'fin': 'fi', - 'fra': 'fr', - 'heb': 'he', - 'hrv': 'sr', - 'hye': 'hy', - 'ind': 'id', - 'ita': 'it', - 'jpn': 'ja', - 'kor': 'ko', - 'lav': 'lv', - 'lit': 'lit', - 'nor': 'no', - 'nsh': 'sr', - 'pol': 'pl', - 'por': 'pt', - 'rum': 'ro', - 'rus': 'ru', - 'spa': 'es', - 'sqi': 'sq', - 'srp': 'sr', - 'swe': 'sv', - 'tur': 'tr', - 'zho': 'zh', - } + self.languages_by_size = [ + 'ar','sr','da','de','nl','el','en','fa','fi','fr','he','sr','hy','id','it','ja', + 'ko','lv','lit','no','sr','pl','pt','ro','ru','es','sq','sr','sv','tr','zh', + ] + for l in self.languages_by_size: + self.langs[l] = '%s.anarchopedia.org' % l
- for lang in interface_lang.values(): - self.langs[lang] = '%s.anarchopedia.org' % lang - - copy = [-2, -1, 1, 2, 3, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15] - for code, interface in interface_lang.items(): - for ns in copy: - if self.namespaces[ns].has_key(interface): - self.namespaces[ns][code] = self.namespaces[ns][interface] - self.namespaces[1]['fr'] = u'Discuter'
self.namespaces[3]['fr'] = u'Discussion Utilisateur' @@ -180,7 +143,7 @@ return ''
def path(self, code): - return '%s/index.php' % self.scriptpath(code) + return '/index.php'
def apipath(self, code): - return '%s/api.php' % self.scriptpath(code) + return '/api.php'
Modified: trunk/pywikipedia/families/memoryalpha_family.py =================================================================== --- trunk/pywikipedia/families/memoryalpha_family.py 2009-07-01 18:19:47 UTC (rev 7010) +++ trunk/pywikipedia/families/memoryalpha_family.py 2009-07-03 16:12:57 UTC (rev 7011) @@ -7,15 +7,23 @@ def __init__(self): family.Family.__init__(self) self.name = 'memoryalpha' - self.languages_by_size = ['en', 'de', 'es', 'nl', 'sv', 'fr', 'eo', 'pl', 'zh-cn'] + self.languages_by_size = ['bg', 'cs', 'en', 'de', 'es', 'mu', 'nl', 'sv', 'fr', 'eo', 'pl', 'zh-cn', 'ja', 'it', 'pt', 'sr'] self.langs = { + 'bg':'bg', + 'cs':'cs', 'de':'de', 'en':'en', 'eo':'eo', 'es':'es', + 'mu':'mu', 'fr':'fr', + 'it':'it', + 'ja':'ja', 'nl':'nl', 'pl':'pl', + 'pt':'pt', + 'ru':'ru', + 'sr':'sr', 'sv':'sv', 'zh-cn':'zh-cn', } @@ -29,24 +37,90 @@
self.namespaces[4] = { '_default': u'Memory Alpha', + 'cs': u'encyklopedie Star Treku', + 'pt': u'Memória Alfa', + 'ru': u'Memory Alpha - A Wikia wiki', + 'sr': u'Успомене Алфе', + 'zh-cn': u'阿尔法记忆', } self.namespaces[5] = { '_default': u'Memory Alpha talk', + 'bg': u'Memory Alpha беседа', + 'cs': u'encyklopedie Star Treku diskuse', 'de': u'Memory Alpha Diskussion', 'eo': u'Memory Alpha diskuto', 'es': u'Memory Alpha Discusión', 'fr': u'Discussion Memory Alpha', + 'it': u'Discussioni Memory Alpha', + 'ja': u'Memory Alpha‐ノート', 'nl': u'Overleg Memory Alpha', 'pl': u'Dyskusja Memory Alpha', + 'pt': u'Memória Alfa Discussão', + 'ru': u'Обсуждение Memory Alpha - A Wikia wiki', + 'sr': u'Разговор о Успомене Алфе', 'sv': u'Memory Alphadiskussion', + 'zh-cn': u'阿尔法记忆 talk', } + self.namespaces[6]['pt'] = u'Arquivo' + + self.namespaces[7]['pt'] = u'Arquivo Discussão' + self.namespaces[7]['fr'] = u'Discussion Fichier' + self.namespaces[100] = { '_default': u'Forum', + 'ru': u'Форум', + 'pt': u'Fórum', } self.namespaces[101] = { '_default': u'Forum talk', + 'pl': u'Dyskusja forum', + 'ru': u'Обсуждение форума', 'de': u'Forum Diskussion', + 'pt': u'Fórum Discussão', } + self.namespaces[102] = { + '_default': u'Portal', + } + self.namespaces[103] = { + '_default': u'Portal talk', + 'de': u'Portal Diskussion', + 'pt': u'Portal Discussão', + } + self.namespaces[110] = { + '_default': u'Forum', + 'ru': u'Форум', + } + self.namespaces[111] = { + '_default': u'Forum talk', + 'pl': u'Dyskusja forum', + 'ru': u'Обсуждение форума', + } + self.namespaces[400] = { + '_default': u'Video', + } + self.namespaces[401] = { + '_default': u'Video talk', + 'de': u'Video Diskussion', + 'pl': u'Dyskusja Video', + } + self.namespaces[402] = { + '_default': u'Video Template', + } + self.namespaces[500] = { + '_default': u'User blog', + 'de': u'Benutzer Blog', + } + self.namespaces[501] = { + '_default': u'User blog comment', + 'de': u'Benutzer Blog Kommentare', + } + self.namespaces[502] = { + '_default': u'Blog', + } + self.namespaces[503] = { + '_default': u'Blog talk', + 'de': u'Blog Diskussion', + }
# A few selected big languages for things that we do not want to loop over # all languages. This is only needed by the titletranslate.py module, so @@ -66,10 +140,10 @@
def path(self, code): - return '/index.php' + return '%s/index.php' % self.scriptpath(code)
def apipath(self, code): - return '/api.php' + return '%s/api.php' % self.scriptpath(code)
def version(self, code): return "1.12alpha"
Modified: trunk/pywikipedia/families/omegawiki_family.py =================================================================== --- trunk/pywikipedia/families/omegawiki_family.py 2009-07-01 18:19:47 UTC (rev 7010) +++ trunk/pywikipedia/families/omegawiki_family.py 2009-07-03 16:12:57 UTC (rev 7011) @@ -11,9 +11,8 @@ def __init__(self): family.Family.__init__(self) self.name = 'omegawiki' - self.langs = { - 'en': 'omegawiki.org', - } + self.langs['omegawiki'] = 'www.omegawiki.org' + self.namespaces[4] = { '_default': [u'OmegaWiki'], } @@ -74,6 +73,17 @@
self.nocapitalize = self.langs.keys()
+ def hostname(self,code): + return 'www.omegawiki.org' + def version(self, code): return "1.10alpha"
+ def scriptpath(self, code): + return '' + + def path(self, code): + return '/index.php' + + def apipath(self, code): + return '/api.php'
pywikipedia-svn@lists.wikimedia.org