http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10727
Revision: 10727 Author: xqt Date: 2012-11-14 20:45:14 +0000 (Wed, 14 Nov 2012) Log Message: ----------- update namespace aliases
Modified Paths: -------------- trunk/pywikipedia/families/wikibooks_family.py trunk/pywikipedia/families/wikidata_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-14 19:03:00 UTC (rev 10726) +++ trunk/pywikipedia/families/wikibooks_family.py 2012-11-14 20:45:14 UTC (rev 10727) @@ -30,7 +30,9 @@ 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/wikidata_family.py =================================================================== --- trunk/pywikipedia/families/wikidata_family.py 2012-11-14 19:03:00 UTC (rev 10726) +++ trunk/pywikipedia/families/wikidata_family.py 2012-11-14 20:45:14 UTC (rev 10727) @@ -16,10 +16,10 @@ } #https://wikidata.org/w/api.php?action=query&meta=siteinfo&siprop=nam... self.namespaces[4] = { - '_default': [u'Wikidata', 'Project'], + '_default': [u'Wikidata', u'WD', 'Project'], } self.namespaces[5] = { - '_default': [u'Wikidata talk', 'Project talk'], + '_default': [u'Wikidata talk', u'WT', 'Project talk'], } self.namespaces[120] = { '_default': u'Property',
Modified: trunk/pywikipedia/families/wikinews_family.py =================================================================== --- trunk/pywikipedia/families/wikinews_family.py 2012-11-14 19:03:00 UTC (rev 10726) +++ trunk/pywikipedia/families/wikinews_family.py 2012-11-14 20:45:14 UTC (rev 10727) @@ -25,6 +25,8 @@ 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-14 19:03:00 UTC (rev 10726) +++ trunk/pywikipedia/families/wikiquote_family.py 2012-11-14 20:45:14 UTC (rev 10727) @@ -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[3]['de'] = [u'Benutzer Diskussion', u'BD', u'Benutzerin Diskussion'] + 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/wikisource_family.py =================================================================== --- trunk/pywikipedia/families/wikisource_family.py 2012-11-14 19:03:00 UTC (rev 10726) +++ trunk/pywikipedia/families/wikisource_family.py 2012-11-14 20:45:14 UTC (rev 10727) @@ -29,12 +29,14 @@ 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-14 19:03:00 UTC (rev 10726) +++ trunk/pywikipedia/families/wikiversity_family.py 2012-11-14 20:45:14 UTC (rev 10727) @@ -18,6 +18,7 @@ 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-14 19:03:00 UTC (rev 10726) +++ trunk/pywikipedia/families/wiktionary_family.py 2012-11-14 20:45:14 UTC (rev 10727) @@ -36,9 +36,22 @@ self.namespaces[14]['zh'] = [u'Category', u'分类', u'分類'] self.namespaces[15]['bn'] = [u'বিষয়শ্রেণী আলোচনা'] self.namespaces[14]['bn'] = [u'বিষয়শ্রেণী'] - self.namespaces[3]['de'] = [u'Benutzer Diskussion', u'BD', u'Benutzerin Diskussion'] + 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[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'श्रेणी वार्ता'] @@ -279,7 +292,7 @@ 'km': [u'ការពិភាក្សាអំពីWiktionary', u'Wiktionary ពិភាក្ស'], 'kn': u'Wiktionary ಚರ್ಚೆ', 'ko': u'위키낱말사전토론', - 'ks': u'Wiktionary talk', + 'ks': u'Wiktionary بَحَژ', 'ku': [u'Gotûbêja Wîkîferhengê', u'Wîkîferheng gotûbêj', u'Wîkîferheng nîqaş'], 'kw': [u'Kescows Wiktionary', u'Cows Wiktionary', u'Keskows Wiktionary'], 'ky': u'Wiktionary баарлашуу', @@ -387,6 +400,7 @@ 'bn': u'উইকিসরাস', 'br': u'Stagadenn', 'bs': u'Portal', + 'cs': u'Příloha', 'cy': u'Atodiad', 'el': u'Παράρτημα', 'en': u'Appendix', @@ -421,6 +435,7 @@ 'bn': u'উইকিসরাস আলোচনা', 'br': u'Kaozeadenn Stagadenn', 'bs': u'Razgovor o Portalu', + 'cs': u'Diskuse k příloze', 'cy': u'Sgwrs Atodiad', 'el': u'Συζήτηση παραρτήματος', 'en': u'Appendix talk',
pywikipedia-svn@lists.wikimedia.org