http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10654
Revision: 10654 Author: xqt Date: 2012-11-03 13:15:02 +0000 (Sat, 03 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-03 13:14:40 UTC (rev 10653) +++ trunk/pywikipedia/families/wikibooks_family.py 2012-11-03 13:15:02 UTC (rev 10654) @@ -24,19 +24,13 @@ self.langs = dict([(lang, '%s.wikibooks.org' % lang) for lang in self.languages_by_size])
# Override defaults - self.namespaces[3]['fr'] = [u'Discussion utilisateur', u'Discussion Utilisateur'] - self.namespaces[2]['fr'] = [u'Utilisateur'] - self.namespaces[14]['en'] = [u'Category', u'CAT'] - self.namespaces[10]['zh'] = [u'Template', u'模板', u'样板', u'樣板'] - self.namespaces[12]['zh'] = [u'Help', u'帮助', u'幫助'] - self.namespaces[14]['zh'] = [u'Category', u'分类', u'分類'] - 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[15]['bn'] = [u'বিষয়শ্রেণী আলোচনা'] + self.namespaces[14]['bn'] = [u'বিষয়শ্রেণী'] self.namespaces[3]['ca'] = [u'Usuari Discussió'] self.namespaces[2]['ca'] = [u'Usuari'] - self.namespaces[14]['tr'] = [u'Kategori', u'KAT'] self.namespaces[13]['da'] = [u'Hjælp diskussion', u'Hjælp-diskussion'] self.namespaces[9]['da'] = [u'MediaWiki diskussion', u'MediaWiki-diskussion'] + self.namespaces[14]['en'] = [u'Category', u'CAT'] self.namespaces[11]['hi'] = [u'साँचा वार्ता'] self.namespaces[10]['hi'] = [u'साँचा'] self.namespaces[15]['hi'] = [u'श्रेणी वार्ता'] @@ -45,13 +39,13 @@ self.namespaces[2]['hi'] = [u'सदस्य'] self.namespaces[9]['hi'] = [u'मीडियाविकि वार्ता'] self.namespaces[8]['hi'] = [u'मीडियाविकि'] - self.namespaces[3]['cs'] = [u'Diskuse s uživatelem', u'Uživatel diskuse', u'Uživatelka diskuse', u'Diskuse s uživatelkou'] - self.namespaces[2]['cs'] = [u'Uživatel', u'Uživatelka'] - self.namespaces[9]['ro'] = [u'Discuție MediaWiki', u'Discuţie MediaWiki'] - self.namespaces[15]['bn'] = [u'বিষয়শ্রেণী আলোচনা'] - self.namespaces[14]['bn'] = [u'বিষয়শ্রেণী'] self.namespaces[3]['pl'] = [u'Dyskusja wikipedysty', u'Dyskusja wikipedystki', u'Dyskusja użytkownika', u'Dyskusja użytkowniczki'] self.namespaces[2]['pl'] = [u'Wikipedysta', u'Wikipedystka', u'Użytkownik', u'Użytkowniczka'] + self.namespaces[9]['ro'] = [u'Discuție MediaWiki', u'Discuţie MediaWiki'] + self.namespaces[14]['tr'] = [u'Kategori', u'KAT'] + self.namespaces[10]['zh'] = [u'Template', u'模板', u'样板', u'樣板'] + self.namespaces[12]['zh'] = [u'Help', u'帮助', u'幫助'] + self.namespaces[14]['zh'] = [u'Category', u'分类', u'分類']
# Most namespaces are inherited from family.Family. # Translation used on all wikis for the different namespaces. @@ -283,6 +277,7 @@ 'tl': u'Pagluluto', 'tr': u'Yemek', 'uk': u'Полиця', + 'zh': u'Transwiki', }
self.namespaces[101] = { @@ -299,6 +294,7 @@ 'tl': u'Usapang pagluluto', 'tr': u'Yemek tartışma', 'uk': u'Обговорення полиці', + 'zh': u'Transwiki talk', }
self.namespaces[102] = {
Modified: trunk/pywikipedia/families/wikinews_family.py =================================================================== --- trunk/pywikipedia/families/wikinews_family.py 2012-11-03 13:14:40 UTC (rev 10653) +++ trunk/pywikipedia/families/wikinews_family.py 2012-11-03 13:15:02 UTC (rev 10654) @@ -19,20 +19,16 @@ self.langs = dict([(lang, '%s.wikinews.org' % lang) for lang in self.languages_by_size])
# Override defaults - self.namespaces[3]['fr'] = [u'Discussion utilisateur', u'Discussion Utilisateur'] - self.namespaces[2]['fr'] = [u'Utilisateur'] - self.namespaces[14]['en'] = [u'Category', u'CAT'] - self.namespaces[10]['zh'] = [u'Template', u'模板', u'样板', u'樣板'] - self.namespaces[12]['zh'] = [u'Help', u'帮助', u'幫助'] - self.namespaces[14]['zh'] = [u'Category', u'分类', u'分類'] - 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[3]['ca'] = [u'Usuari Discussió'] self.namespaces[2]['ca'] = [u'Usuari'] 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[14]['en'] = [u'Category', u'CAT'] self.namespaces[3]['pl'] = [u'Dyskusja wikireportera', u'Dyskusja wikireporterki'] self.namespaces[2]['pl'] = [u'Wikireporter', u'Wikireporterka'] + self.namespaces[10]['zh'] = [u'Template', u'模板', u'样板', u'樣板'] + self.namespaces[12]['zh'] = [u'Help', u'帮助', u'幫助'] + self.namespaces[14]['zh'] = [u'Category', u'分类', u'分類']
# Most namespaces are inherited from family.Family. # Translation used on all wikis for the different namespaces.
Modified: trunk/pywikipedia/families/wikiquote_family.py =================================================================== --- trunk/pywikipedia/families/wikiquote_family.py 2012-11-03 13:14:40 UTC (rev 10653) +++ trunk/pywikipedia/families/wikiquote_family.py 2012-11-03 13:15:02 UTC (rev 10654) @@ -23,18 +23,11 @@ self.langs = dict([(lang, '%s.wikiquote.org' % lang) for lang in self.languages_by_size])
# Override defaults - self.namespaces[3]['fr'] = [u'Discussion utilisateur', u'Discussion Utilisateur'] - self.namespaces[2]['fr'] = [u'Utilisateur'] - self.namespaces[10]['zh'] = [u'Template', u'模板', u'样板', u'樣板'] - self.namespaces[12]['zh'] = [u'Help', u'帮助', u'幫助'] - self.namespaces[14]['zh'] = [u'Category', u'分类', u'分類'] - 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[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[13]['da'] = [u'Hjælp diskussion', u'Hjælp-diskussion'] self.namespaces[9]['da'] = [u'MediaWiki diskussion', u'MediaWiki-diskussion'] + self.namespaces[3]['de'] = [u'Benutzer Diskussion', u'BD', u'Benutzerin Diskussion'] self.namespaces[11]['hi'] = [u'साँचा वार्ता'] self.namespaces[10]['hi'] = [u'साँचा'] self.namespaces[15]['hi'] = [u'श्रेणी वार्ता'] @@ -43,11 +36,12 @@ self.namespaces[2]['hi'] = [u'सदस्य'] self.namespaces[9]['hi'] = [u'मीडियाविकि वार्ता'] self.namespaces[8]['hi'] = [u'मीडियाविकि'] - self.namespaces[3]['cs'] = [u'Diskuse s uživatelem', u'Uživatel diskuse', u'Uživatelka diskuse', u'Diskuse s uživatelkou'] - self.namespaces[2]['cs'] = [u'Uživatel', u'Uživatelka'] 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'] + self.namespaces[10]['zh'] = [u'Template', u'模板', u'样板', u'樣板'] + self.namespaces[12]['zh'] = [u'Help', u'帮助', u'幫助'] + self.namespaces[14]['zh'] = [u'Category', u'分类', u'分類']
# Most namespaces are inherited from family.Family. # Translation used on all wikis for the different namespaces. @@ -217,6 +211,7 @@ 'fr': u'Portail', 'he': u'פורטל', 'li': u'Portaol', + 'zh': u'Transwiki', }
self.namespaces[101] = { @@ -224,6 +219,7 @@ 'fr': u'Discussion Portail', 'he': u'שיחת פורטל', 'li': u'Euverlèk portaol', + 'zh': u'Transwiki talk', }
self.namespaces[102] = {
Modified: trunk/pywikipedia/families/wikisource_family.py =================================================================== --- trunk/pywikipedia/families/wikisource_family.py 2012-11-03 13:14:40 UTC (rev 10653) +++ trunk/pywikipedia/families/wikisource_family.py 2012-11-03 13:15:02 UTC (rev 10654) @@ -24,26 +24,20 @@ self.langs['-'] = 'wikisource.org'
# Override defaults - self.namespaces[10]['zh'] = [u'Template', u'模板', u'样板', u'樣板'] - self.namespaces[12]['zh'] = [u'Help', u'帮助', u'幫助'] - self.namespaces[14]['zh'] = [u'Category', u'分类', u'分類'] - self.namespaces[3]['ca'] = [u'Usuari Discussió'] - self.namespaces[2]['ca'] = [u'Usuari'] - self.namespaces[3]['cs'] = [u'Diskuse s uživatelem', u'Uživatel diskuse', u'Uživatelka diskuse', u'Diskuse s uživatelkou'] - self.namespaces[2]['cs'] = [u'Uživatel', u'Uživatelka'] - 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[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[3]['fr'] = [u'Discussion utilisateur', u'Discussion Utilisateur'] - self.namespaces[2]['fr'] = [u'Utilisateur'] self.namespaces[15]['bn'] = [u'বিষয়শ্রেণী আলোচনা'] self.namespaces[14]['bn'] = [u'বিষয়শ্রেণী'] + self.namespaces[3]['ca'] = [u'Usuari Discussió'] + self.namespaces[2]['ca'] = [u'Usuari'] 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'സ'] + 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[9]['ro'] = [u'Discuție MediaWiki', u'Discuţie MediaWiki'] + self.namespaces[6]['vec'] = [u'File', u'Imagine'] + self.namespaces[10]['zh'] = [u'Template', u'模板', u'样板', u'樣板'] + self.namespaces[12]['zh'] = [u'Help', u'帮助', u'幫助'] + self.namespaces[14]['zh'] = [u'Category', u'分类', u'分類']
# Most namespaces are inherited from family.Family. # Translation used on all wikis for the different namespaces. @@ -506,6 +500,7 @@ 'it': u'Pagina', 'pt': u'Em Tradução', 'sv': u'Index', + 'zh': u'Transwiki', }
self.namespaces[109] = { @@ -516,6 +511,7 @@ 'it': u'Discussioni pagina', 'pt': u'Discussão Em Tradução', 'sv': u'Indexdiskussion', + 'zh': u'Transwiki talk', }
self.namespaces[110] = {
Modified: trunk/pywikipedia/families/wikiversity_family.py =================================================================== --- trunk/pywikipedia/families/wikiversity_family.py 2012-11-03 13:14:40 UTC (rev 10653) +++ trunk/pywikipedia/families/wikiversity_family.py 2012-11-03 13:15:02 UTC (rev 10654) @@ -18,12 +18,6 @@ self.langs = dict([(lang, '%s.wikiversity.org' % lang) for lang in self.languages_by_size])
# Override defaults - self.namespaces[3]['cs'] = [u'Diskuse s uživatelem', u'Uživatel diskuse', u'Uživatelka diskuse', u'Diskuse s uživatelkou'] - self.namespaces[2]['cs'] = [u'Uživatel', u'Uživatelka'] - self.namespaces[3]['fr'] = [u'Discussion utilisateur', u'Discussion Utilisateur'] - self.namespaces[2]['fr'] = [u'Utilisateur'] - 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']
# 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-03 13:14:40 UTC (rev 10653) +++ trunk/pywikipedia/families/wiktionary_family.py 2012-11-03 13:15:02 UTC (rev 10654) @@ -30,20 +30,14 @@ self.langs = dict([(lang, '%s.wiktionary.org' % lang) for lang in self.languages_by_size])
# Override defaults - self.namespaces[3]['eo'] = [u'Uzanta diskuto', u'Vikipediista diskuto', u'Uzula diskuto'] - self.namespaces[10]['zh'] = [u'Template', u'模板', u'样板', u'樣板'] - self.namespaces[12]['zh'] = [u'Help', u'帮助', u'幫助'] - self.namespaces[14]['zh'] = [u'Category', u'分类', u'分類'] - 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[15]['bn'] = [u'বিষয়শ্রেণী আলোচনা'] self.namespaces[14]['bn'] = [u'বিষয়শ্রেণী'] - self.namespaces[3]['de'] = [u'Benutzer Diskussion', u'BD', u'Benutzerin Diskussion'] - self.namespaces[3]['fr'] = [u'Discussion utilisateur', u'Discussion Utilisateur'] - self.namespaces[2]['fr'] = [u'Utilisateur'] + self.namespaces[3]['ca'] = [u'Usuari Discussió'] + self.namespaces[2]['ca'] = [u'Usuari'] 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'साँचा वार्ता'] + self.namespaces[3]['de'] = [u'Benutzer Diskussion', u'BD', u'Benutzerin Diskussion'] + self.namespaces[3]['eo'] = [u'Uzanta diskuto', u'Vikipediista diskuto', u'Uzula diskuto'] self.namespaces[10]['hi'] = [u'साँचा'] self.namespaces[15]['hi'] = [u'श्रेणी वार्ता'] self.namespaces[14]['hi'] = [u'श्रेणी'] @@ -51,11 +45,10 @@ self.namespaces[2]['hi'] = [u'सदस्य'] self.namespaces[9]['hi'] = [u'मीडियाविकि वार्ता'] self.namespaces[8]['hi'] = [u'मीडियाविकि'] - self.namespaces[3]['cs'] = [u'Diskuse s uživatelem', u'Uživatel diskuse', u'Uživatelka diskuse', u'Diskuse s uživatelkou'] - self.namespaces[2]['cs'] = [u'Uživatel', u'Uživatelka'] self.namespaces[9]['ro'] = [u'Discuție MediaWiki', u'Discuţie MediaWiki'] - self.namespaces[3]['ca'] = [u'Usuari Discussió'] - self.namespaces[2]['ca'] = [u'Usuari'] + self.namespaces[10]['zh'] = [u'Template', u'模板', u'样板', u'樣板'] + self.namespaces[12]['zh'] = [u'Help', u'帮助', u'幫助'] + self.namespaces[14]['zh'] = [u'Category', u'分类', u'分類']
# Most namespaces are inherited from family.Family. # Translation used on all wikis for the different namespaces. @@ -472,6 +465,7 @@ 'ru': [u'Конкорданс', u'Concordance'], 'sv': u'Appendix', 'uk': u'Індекс', + 'zh': u'Transwiki', }
self.namespaces[103] = { @@ -489,6 +483,7 @@ 'ru': [u'Обсуждение конкорданса', u'Concordance talk'], 'sv': u'Appendixdiskussion', 'uk': u'Обговорення індексу', + 'zh': u'Transwiki talk', }
self.namespaces[104] = {