http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10749
Revision: 10749 Author: xqt Date: 2012-11-25 11:42:19 +0000 (Sun, 25 Nov 2012) Log Message: ----------- update namespace aliases
Modified Paths: -------------- trunk/pywikipedia/families/wikibooks_family.py trunk/pywikipedia/families/wikinews_family.py trunk/pywikipedia/families/wikiquote_family.py trunk/pywikipedia/families/wikisource_family.py trunk/pywikipedia/families/wikiversity_family.py trunk/pywikipedia/families/wiktionary_family.py
Modified: trunk/pywikipedia/families/wikibooks_family.py =================================================================== --- trunk/pywikipedia/families/wikibooks_family.py 2012-11-25 11:14:56 UTC (rev 10748) +++ trunk/pywikipedia/families/wikibooks_family.py 2012-11-25 11:42:19 UTC (rev 10749) @@ -30,9 +30,7 @@ self.namespaces[14]['zh'] = [u'Category', u'分类', u'分類'] self.namespaces[3]['ca'] = [u'Usuari Discussió'] self.namespaces[2]['ca'] = [u'Usuari'] - self.namespaces[3]['de'] = [u'Benutzer Diskussion', u'Benutzerin Diskussion'] self.namespaces[14]['tr'] = [u'Kategori', u'KAT'] - self.namespaces[-2]['tr'] = [u'Ortam', u'Medya'] self.namespaces[13]['da'] = [u'Hjælp diskussion', u'Hjælp-diskussion'] self.namespaces[9]['da'] = [u'MediaWiki diskussion', u'MediaWiki-diskussion'] self.namespaces[11]['hi'] = [u'साँचा वार्ता']
Modified: trunk/pywikipedia/families/wikinews_family.py =================================================================== --- trunk/pywikipedia/families/wikinews_family.py 2012-11-25 11:14:56 UTC (rev 10748) +++ trunk/pywikipedia/families/wikinews_family.py 2012-11-25 11:42:19 UTC (rev 10749) @@ -25,8 +25,6 @@ self.namespaces[14]['zh'] = [u'Category', u'分类', u'分類'] self.namespaces[3]['ca'] = [u'Usuari Discussió'] self.namespaces[2]['ca'] = [u'Usuari'] - self.namespaces[3]['de'] = [u'Benutzer Diskussion', u'Benutzerin Diskussion'] - self.namespaces[-2]['tr'] = [u'Ortam', u'Medya'] self.namespaces[3]['cs'] = [u'Diskuse s redaktorem', u'Diskuse s redaktorkou', u'Diskuse s uživatelem', u'Redaktor diskuse', u'Redaktorka diskuse', u'Uživatel diskuse', u'Uživatelka diskuse', u'Diskuse s uživatelkou'] self.namespaces[2]['cs'] = [u'Redaktor', u'Redaktorka', u'Uživatel', u'Uživatelka'] self.namespaces[3]['pl'] = [u'Dyskusja wikireportera', u'Dyskusja wikireporterki']
Modified: trunk/pywikipedia/families/wikiquote_family.py =================================================================== --- trunk/pywikipedia/families/wikiquote_family.py 2012-11-25 11:14:56 UTC (rev 10748) +++ trunk/pywikipedia/families/wikiquote_family.py 2012-11-25 11:42:19 UTC (rev 10749) @@ -28,7 +28,7 @@ self.namespaces[14]['zh'] = [u'Category', u'分类', u'分類'] self.namespaces[3]['ca'] = [u'Usuari Discussió'] self.namespaces[2]['ca'] = [u'Usuari'] - self.namespaces[-2]['tr'] = [u'Ortam', u'Medya'] + self.namespaces[3]['de'] = [u'Benutzer Diskussion', u'BD', u'Benutzerin Diskussion'] self.namespaces[13]['da'] = [u'Hjælp diskussion', u'Hjælp-diskussion'] self.namespaces[9]['da'] = [u'MediaWiki diskussion', u'MediaWiki-diskussion'] self.namespaces[11]['hi'] = [u'साँचा वार्ता']
Modified: trunk/pywikipedia/families/wikisource_family.py =================================================================== --- trunk/pywikipedia/families/wikisource_family.py 2012-11-25 11:14:56 UTC (rev 10748) +++ trunk/pywikipedia/families/wikisource_family.py 2012-11-25 11:42:19 UTC (rev 10749) @@ -29,14 +29,12 @@ self.namespaces[14]['zh'] = [u'Category', u'分类', u'分類'] self.namespaces[3]['ca'] = [u'Usuari Discussió'] self.namespaces[2]['ca'] = [u'Usuari'] - self.namespaces[-2]['tr'] = [u'Ortam', u'Medya'] self.namespaces[6]['vec'] = [u'File', u'Imagine'] self.namespaces[9]['ro'] = [u'Discuție MediaWiki', u'Discuţie MediaWiki'] self.namespaces[3]['pl'] = [u'Dyskusja wikiskryby', u'Dyskusja użytkownika', u'Dyskusja użytkowniczki'] self.namespaces[2]['pl'] = [u'Wikiskryba', u'Użytkownik', u'Użytkowniczka'] self.namespaces[15]['bn'] = [u'বিষয়শ্রেণী আলোচনা'] self.namespaces[14]['bn'] = [u'বিষয়শ্রেণী'] - self.namespaces[3]['de'] = [u'Benutzer Diskussion', u'Benutzerin Diskussion'] self.namespaces[9]['da'] = [u'MediaWiki diskussion', u'MediaWiki-diskussion'] self.namespaces[13]['da'] = [u'Hjælp diskussion', u'Hjælp-diskussion'] self.namespaces[12]['ml'] = [u'സഹായം', u'H', u'സ']
Modified: trunk/pywikipedia/families/wikiversity_family.py =================================================================== --- trunk/pywikipedia/families/wikiversity_family.py 2012-11-25 11:14:56 UTC (rev 10748) +++ trunk/pywikipedia/families/wikiversity_family.py 2012-11-25 11:42:19 UTC (rev 10749) @@ -18,7 +18,6 @@ self.langs = dict([(lang, '%s.wikiversity.org' % lang) for lang in self.languages_by_size])
# Override defaults - self.namespaces[3]['de'] = [u'Benutzer Diskussion', u'Benutzerin Diskussion']
# Most namespaces are inherited from family.Family. # Translation used on all wikis for the different namespaces.
Modified: trunk/pywikipedia/families/wiktionary_family.py =================================================================== --- trunk/pywikipedia/families/wiktionary_family.py 2012-11-25 11:14:56 UTC (rev 10748) +++ trunk/pywikipedia/families/wiktionary_family.py 2012-11-25 11:42:19 UTC (rev 10749) @@ -36,22 +36,9 @@ self.namespaces[14]['zh'] = [u'Category', u'分类', u'分類'] self.namespaces[15]['bn'] = [u'বিষয়শ্রেণী আলোচনা'] self.namespaces[14]['bn'] = [u'বিষয়শ্রেণী'] - self.namespaces[-2]['tr'] = [u'Ortam', u'Medya'] + self.namespaces[3]['de'] = [u'Benutzer Diskussion', u'BD', u'Benutzerin Diskussion'] self.namespaces[13]['da'] = [u'Hjælp diskussion', u'Hjælp-diskussion'] self.namespaces[9]['da'] = [u'MediaWiki diskussion', u'MediaWiki-diskussion'] - self.namespaces[13]['ks'] = [u'پَلزُن بَحَژ'] - self.namespaces[12]['ks'] = [u'پَلزُن'] - self.namespaces[15]['ks'] = [u'زٲژ بَحَژ'] - self.namespaces[14]['ks'] = [u'زٲژ'] - self.namespaces[6]['ks'] = [u'فَیِل'] - self.namespaces[1]['ks'] = [u'بَحَژ'] - self.namespaces[3]['ks'] = [u'رُکُن بَحَژ'] - self.namespaces[2]['ks'] = [u'رُکُن'] - self.namespaces[-1]['ks'] = [u'خاص'] - self.namespaces[7]['ks'] = [u'فَیِل بَحَژ'] - self.namespaces[-2]['ks'] = [u'میڈیا'] - self.namespaces[9]['ks'] = [u'میڈیاوکی بَحَژ'] - self.namespaces[8]['ks'] = [u'میڈیاوکی'] self.namespaces[11]['hi'] = [u'साँचा वार्ता'] self.namespaces[10]['hi'] = [u'साँचा'] self.namespaces[15]['hi'] = [u'श्रेणी वार्ता']
pywikipedia-svn@lists.wikimedia.org