http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11109
Revision: 11109 Author: xqt Date: 2013-02-24 12:22:44 +0000 (Sun, 24 Feb 2013) Log Message: ----------- update namespace aliases
Modified Paths: -------------- trunk/pywikipedia/families/meta_family.py trunk/pywikipedia/families/test_family.py trunk/pywikipedia/families/wikibooks_family.py trunk/pywikipedia/families/wikidata_family.py trunk/pywikipedia/families/wikinews_family.py trunk/pywikipedia/families/wikipedia_family.py trunk/pywikipedia/families/wikiquote_family.py trunk/pywikipedia/families/wikisource_family.py trunk/pywikipedia/families/wikiversity_family.py trunk/pywikipedia/families/wikivoyage_family.py trunk/pywikipedia/families/wiktionary_family.py
Modified: trunk/pywikipedia/families/meta_family.py =================================================================== --- trunk/pywikipedia/families/meta_family.py 2013-02-24 12:18:20 UTC (rev 11108) +++ trunk/pywikipedia/families/meta_family.py 2013-02-24 12:22:44 UTC (rev 11109) @@ -141,6 +141,18 @@ self.namespaces[205] = { '_default': u'Participation talk', } + self.namespaces[206] = { + '_default': u'Iberocoop', + } + self.namespaces[207] = { + '_default': u'Iberocoop talk', + } + self.namespaces[470] = { + '_default': u'Schema', + } + self.namespaces[471] = { + '_default': u'Schema talk', + } self.namespaces[1198] = { '_default': u'Translations', }
Modified: trunk/pywikipedia/families/test_family.py =================================================================== --- trunk/pywikipedia/families/test_family.py 2013-02-24 12:18:20 UTC (rev 11108) +++ trunk/pywikipedia/families/test_family.py 2013-02-24 12:22:44 UTC (rev 11109) @@ -144,6 +144,12 @@ self.namespaces[711] = { '_default': u'TimedText talk', } + self.namespaces[866] = { + '_default': u'CNBanner', + } + self.namespaces[867] = { + '_default': u'CNBanner talk', + } self.namespaces[1198] = { '_default': u'Translations', }
Modified: trunk/pywikipedia/families/wikibooks_family.py =================================================================== --- trunk/pywikipedia/families/wikibooks_family.py 2013-02-24 12:18:20 UTC (rev 11108) +++ trunk/pywikipedia/families/wikibooks_family.py 2013-02-24 12:22:44 UTC (rev 11109) @@ -26,8 +26,6 @@
# Override defaults self.namespaces[2]['ru'] = [u'Участник', u'Участница'] - self.namespaces[10]['ru'] = [u'Шаблон'] - self.namespaces[14]['ru'] = [u'Категория'] self.namespaces[3]['fr'] = [u'Discussion utilisateur', u'Discussion Utilisateur'] self.namespaces[2]['fr'] = [u'Utilisateur'] self.namespaces[14]['en'] = [u'Category', u'CAT'] @@ -36,10 +34,10 @@ 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[6]['be'] = [u'Файл', u'Выява'] + self.namespaces[7]['be'] = [u'Размовы пра файл', u'Размовы пра выяву'] self.namespaces[3]['ca'] = [u'Usuari Discussió'] self.namespaces[2]['ca'] = [u'Usuari'] - self.namespaces[13]['de'] = [u'Hilfe Diskussion'] - self.namespaces[12]['de'] = [u'Hilfe'] 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'] @@ -106,6 +104,7 @@ 'ja': u'Wikibooks', 'ka': [u'ვიკიწიგნები', u'Wikibooks'], 'kk': [u'Уикикітап', u'Wikibooks'], + 'km': u'Wikibooks', 'ko': [u'위키책', u'Wikibooks'], 'ku': u'Wikibooks', 'ky': u'Wikibooks', @@ -201,7 +200,7 @@ 'ja': [u'Wikibooks・トーク', u'Wikibooks‐ノート'], 'ka': u'ვიკიწიგნები განხილვა', 'kk': [u'Уикикітап талқылауы', u'Уикикітап talqılawı', u'Уикикітап تالقىلاۋى'], - 'km': u'ការពិភាក្សាអំពីWikibooks', + 'km': [u'ការពិភាក្សាអំពីWikibooks', u'Wikibooks ពិភាក្ស'], 'kn': u'Wikibooks ಚರ್ಚೆ', 'ko': u'위키책토론', 'ku': [u'Gotûbêja Wîkîpirtûkê', u'Wikibooks nîqaş'],
Modified: trunk/pywikipedia/families/wikidata_family.py =================================================================== --- trunk/pywikipedia/families/wikidata_family.py 2013-02-24 12:18:20 UTC (rev 11108) +++ trunk/pywikipedia/families/wikidata_family.py 2013-02-24 12:22:44 UTC (rev 11109) @@ -16,6 +16,14 @@ 'client': 'wikidata-test-client.wikimedia.de', }
+ # Override defaults + self.namespaces[1]['repo'] = [u'Talk', u'Item talk'] + self.namespaces[0]['repo'] = [u'', u'Item'] + + # 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] = { '_default': [u'Wikidata', u'WD', 'Project'], 'client': u'Testwiki',
Modified: trunk/pywikipedia/families/wikinews_family.py =================================================================== --- trunk/pywikipedia/families/wikinews_family.py 2013-02-24 12:18:20 UTC (rev 11108) +++ trunk/pywikipedia/families/wikinews_family.py 2013-02-24 12:22:44 UTC (rev 11109) @@ -20,10 +20,15 @@ for lang in self.languages_by_size])
# Override defaults + self.namespaces[2]['ru'] = [u'Участник', u'Участница'] + 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']
Modified: trunk/pywikipedia/families/wikipedia_family.py =================================================================== --- trunk/pywikipedia/families/wikipedia_family.py 2013-02-24 12:18:20 UTC (rev 11108) +++ trunk/pywikipedia/families/wikipedia_family.py 2013-02-24 12:22:44 UTC (rev 11109) @@ -47,6 +47,8 @@ # Override defaults self.namespaces[3]['cs'] = [u'Diskuse s wikipedistou', u'Diskuse s uživatelem', u'Diskuse s wikipedistkou', u'Wikipedista diskuse', u'Wikipedistka diskuse', u'Uživatel diskuse', u'Uživatelka diskuse'] self.namespaces[3]['de'] = [u'Benutzer Diskussion', u'BD', u'Benutzerin Diskussion'] + self.namespaces[12]['de'] = [u'Hilfe', u'H'] + self.namespaces[13]['de'] = [u'Hilfe Diskussion', u'HD'] self.namespaces[1]['ja'] = [u'ノート', u'トーク'] self.namespaces[3]['ja'] = [u'利用者‐会話', u'利用者・トーク'] self.namespaces[7]['ja'] = [u'ファイル‐ノート', u'ファイル・トーク', u'Image talk', u'画像‐ノート'] @@ -57,6 +59,8 @@ self.namespaces[13]['ja'] = [u'Help‐ノート', u'ヘルプ・トーク'] self.namespaces[14]['ja'] = [u'Category', u'カテゴリ'] self.namespaces[15]['ja'] = [u'Category‐ノート', u'カテゴリ・トーク'] + self.namespaces[10]['ru'] = [u'Шаблон', u'Ш', u'T'] + self.namespaces[14]['ru'] = [u'Категория', u'К']
# Most namespaces are inherited from family.Family. # Translation used on all wikis for the different namespaces. @@ -427,7 +431,7 @@ 'gl': u'Conversa Wikipedia', 'glk': u'بحث Wikipedia', 'gn': u'Vikipetã myangekõi', - 'got': u'𐌸𐌹𐍃 Wikipedia 𐌲𐌰𐍅𐌰𐌿𐍂𐌳𐌾𐌰', + 'got': u'??? Wikipedia ?????????', 'gu': u'વિકિપીડિયા ચર્ચા', 'gv': u'Resooney Wikipedia', 'ha': u'Wikipedia talk',
Modified: trunk/pywikipedia/families/wikiquote_family.py =================================================================== --- trunk/pywikipedia/families/wikiquote_family.py 2013-02-24 12:18:20 UTC (rev 11108) +++ trunk/pywikipedia/families/wikiquote_family.py 2013-02-24 12:22:44 UTC (rev 11109) @@ -24,18 +24,16 @@ 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[6]['be'] = [u'Файл', u'Выява'] + self.namespaces[7]['be'] = [u'Размовы пра файл', u'Размовы пра выяву'] self.namespaces[3]['ca'] = [u'Usuari Discussió'] self.namespaces[2]['ca'] = [u'Usuari'] - self.namespaces[13]['de'] = [u'Hilfe Diskussion'] - self.namespaces[12]['de'] = [u'Hilfe'] 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']
Modified: trunk/pywikipedia/families/wikisource_family.py =================================================================== --- trunk/pywikipedia/families/wikisource_family.py 2013-02-24 12:18:20 UTC (rev 11108) +++ trunk/pywikipedia/families/wikisource_family.py 2013-02-24 12:22:44 UTC (rev 11109) @@ -29,11 +29,10 @@ self.namespaces[14]['zh'] = [u'Category', u'分类', u'分類'] self.namespaces[3]['ca'] = [u'Usuari Discussió'] self.namespaces[2]['ca'] = [u'Usuari'] + self.namespaces[14]['as'] = [u'শ্ৰেণী', u'श्रेणी', 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[2]['ru'] = [u'Участник', u'Участница'] - self.namespaces[10]['ru'] = [u'Шаблон'] - self.namespaces[14]['ru'] = [u'Категория'] 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'] @@ -41,12 +40,12 @@ 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[7]['be'] = [u'Размовы пра файл', u'Размовы пра выяву'] + self.namespaces[6]['be'] = [u'Файл', u'Выява'] 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[13]['de'] = [u'Hilfe Diskussion'] - self.namespaces[12]['de'] = [u'Hilfe'] 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 2013-02-24 12:18:20 UTC (rev 11108) +++ trunk/pywikipedia/families/wikiversity_family.py 2013-02-24 12:22:44 UTC (rev 11109) @@ -19,6 +19,13 @@ 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[2]['ru'] = [u'Участник', u'Участница'] + 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/wikivoyage_family.py =================================================================== --- trunk/pywikipedia/families/wikivoyage_family.py 2013-02-24 12:18:20 UTC (rev 11108) +++ trunk/pywikipedia/families/wikivoyage_family.py 2013-02-24 12:22:44 UTC (rev 11109) @@ -18,16 +18,12 @@ 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']
Modified: trunk/pywikipedia/families/wiktionary_family.py =================================================================== --- trunk/pywikipedia/families/wiktionary_family.py 2013-02-24 12:18:20 UTC (rev 11108) +++ trunk/pywikipedia/families/wiktionary_family.py 2013-02-24 12:22:44 UTC (rev 11109) @@ -32,19 +32,17 @@
# Override defaults self.namespaces[2]['ru'] = [u'Участник', u'Участница'] - self.namespaces[10]['ru'] = [u'Шаблон'] - self.namespaces[14]['ru'] = [u'Категория'] 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[6]['be'] = [u'Файл', u'Выява'] + self.namespaces[7]['be'] = [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[13]['de'] = [u'Hilfe Diskussion'] - self.namespaces[12]['de'] = [u'Hilfe'] self.namespaces[3]['fr'] = [u'Discussion utilisateur', u'Discussion Utilisateur'] self.namespaces[2]['fr'] = [u'Utilisateur'] self.namespaces[13]['da'] = [u'Hjælp diskussion', u'Hjælp-diskussion']