http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11092
Revision: 11092 Author: xqt Date: 2013-02-20 09:35:13 +0000 (Wed, 20 Feb 2013) Log Message: ----------- override default namespaces for wikivoyage
Modified Paths: -------------- trunk/pywikipedia/families/wikivoyage_family.py
Modified: trunk/pywikipedia/families/wikivoyage_family.py =================================================================== --- trunk/pywikipedia/families/wikivoyage_family.py 2013-02-20 09:14:35 UTC (rev 11091) +++ trunk/pywikipedia/families/wikivoyage_family.py 2013-02-20 09:35:13 UTC (rev 11092) @@ -17,6 +17,25 @@ self.langs = dict([(lang, '%s.wikivoyage.org' % lang) for lang in self.languages_by_size])
+ # Override defaults + self.namespaces[10]['ru'] = [u'Шаблон'] + self.namespaces[14]['ru'] = [u'Категория'] + self.namespaces[2]['ru'] = [u'Участник', u'Участница'] + self.namespaces[3]['fr'] = [u'Discussion utilisateur', u'Discussion Utilisateur'] + self.namespaces[2]['fr'] = [u'Utilisateur'] + self.namespaces[12]['nl'] = [u'Help'] + self.namespaces[3]['pt'] = [u'Utilizador Discussão', u'Usuário Discussão', u'Utilizadora Discussão'] + self.namespaces[2]['pt'] = [u'Utilizador', u'Usuário', u'Utilizadora'] + self.namespaces[13]['de'] = [u'Hilfe Diskussion'] + self.namespaces[12]['de'] = [u'Hilfe'] + self.namespaces[9]['ro'] = [u'Discuție MediaWiki', u'Discuţie MediaWiki'] + self.namespaces[3]['pl'] = [u'Dyskusja użytkownika', u'Dyskusja użytkowniczki'] + self.namespaces[2]['pl'] = [u'Użytkownik', u'Użytkowniczka'] + + # 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] = { 'de': u'Wikivoyage', 'en': u'Wikivoyage',
pywikipedia-svn@lists.wikimedia.org