http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11120
Revision: 11120 Author: xqt Date: 2013-02-25 11:03:51 +0000 (Mon, 25 Feb 2013) Log Message: ----------- update namespace aliases
Modified Paths: -------------- trunk/pywikipedia/families/wikibooks_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/wikibooks_family.py =================================================================== --- trunk/pywikipedia/families/wikibooks_family.py 2013-02-25 10:27:05 UTC (rev 11119) +++ trunk/pywikipedia/families/wikibooks_family.py 2013-02-25 11:03:51 UTC (rev 11120) @@ -25,7 +25,8 @@ for lang in self.languages_by_size])
# Override defaults - self.namespaces[2]['ru'] = [u'Участник', u'Участница'] + self.namespaces[6]['be'] = [u'Файл', u'Выява'] + self.namespaces[7]['be'] = [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'] @@ -34,8 +35,6 @@ 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[14]['tr'] = [u'Kategori', u'KAT'] @@ -50,7 +49,6 @@ 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[12]['nl'] = [u'Help'] self.namespaces[9]['ro'] = [u'Discuție MediaWiki', u'Discuţie MediaWiki'] self.namespaces[15]['bn'] = [u'বিষয়শ্রেণী আলোচনা'] @@ -419,6 +417,16 @@ 'si': u'කණිෂ්ඨ විකි සාකච්ඡාව', }
+ self.namespaces[828] = { + 'cs': u'Module', + 'pt': u'Module', + } + + self.namespaces[829] = { + 'cs': u'Module talk', + 'pt': u'Module talk', + } + # Global bot allowed languages on http://meta.wikimedia.org/wiki/Bot_policy/Implementation#Current_implementat... self.cross_allowed = [ 'af', 'ang', 'ca', 'fa', 'fy', 'it', 'nl', 'ru', 'th', 'zh',
Modified: trunk/pywikipedia/families/wikinews_family.py =================================================================== --- trunk/pywikipedia/families/wikinews_family.py 2013-02-25 10:27:05 UTC (rev 11119) +++ trunk/pywikipedia/families/wikinews_family.py 2013-02-25 11:03:51 UTC (rev 11120) @@ -20,7 +20,6 @@ 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']
Modified: trunk/pywikipedia/families/wikipedia_family.py =================================================================== --- trunk/pywikipedia/families/wikipedia_family.py 2013-02-25 10:27:05 UTC (rev 11119) +++ trunk/pywikipedia/families/wikipedia_family.py 2013-02-25 11:03:51 UTC (rev 11120) @@ -45,6 +45,7 @@ for lang in self.languages_by_size])
# Override defaults + self.namespaces[2]['cs'] = [u'Wikipedista', u'Uživatel', u'Wikipedistka'] 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'] @@ -59,6 +60,7 @@ self.namespaces[13]['ja'] = [u'Help‐ノート', u'ヘルプ・トーク'] self.namespaces[14]['ja'] = [u'Category', u'カテゴリ'] self.namespaces[15]['ja'] = [u'Category‐ノート', u'カテゴリ・トーク'] + self.namespaces[2]['ru'] = [u'Участник', u'У', u'Участница'] self.namespaces[10]['ru'] = [u'Шаблон', u'Ш', u'T'] self.namespaces[14]['ru'] = [u'Категория', u'К']
Modified: trunk/pywikipedia/families/wikiquote_family.py =================================================================== --- trunk/pywikipedia/families/wikiquote_family.py 2013-02-25 10:27:05 UTC (rev 11119) +++ trunk/pywikipedia/families/wikiquote_family.py 2013-02-25 11:03:51 UTC (rev 11120) @@ -24,14 +24,13 @@ for lang in self.languages_by_size])
# Override defaults - self.namespaces[2]['ru'] = [u'Участник', u'Участница'] + self.namespaces[6]['be'] = [u'Файл', u'Выява'] + self.namespaces[7]['be'] = [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[3]['de'] = [u'Benutzer Diskussion', u'BD', u'Benutzerin Diskussion'] @@ -46,7 +45,6 @@ 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[10]['zh'] = [u'Template', u'模板', u'样板', u'樣板'] self.namespaces[12]['zh'] = [u'Help', u'帮助', u'幫助'] self.namespaces[14]['zh'] = [u'Category', u'分类', u'分類']
Modified: trunk/pywikipedia/families/wikisource_family.py =================================================================== --- trunk/pywikipedia/families/wikisource_family.py 2013-02-25 10:27:05 UTC (rev 11119) +++ trunk/pywikipedia/families/wikisource_family.py 2013-02-25 11:03:51 UTC (rev 11120) @@ -31,8 +31,6 @@ 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[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'] @@ -554,28 +552,112 @@ }
self.namespaces[250] = { + 'az': u'Page', + 'bg': u'Page', + 'bs': u'Page', + 'cs': u'Stránka', + 'fo': u'Page', + 'gl': u'Page', + 'is': u'Blaðsíða', + 'ja': u'Page', + 'ko': u'Page', + 'li': u'Page', + 'lt': u'Page', + 'mk': u'Page', + 'sah': u'Page', + 'sk': u'Page', + 'sr': u'Page', + 'ta': u'Page', + 'th': u'Page', + 'tr': u'Page', + 'uk': u'Page', + 'yi': u'Page', 'zh-min-nan': u'Page', }
self.namespaces[251] = { + 'az': u'Page talk', + 'bg': u'Page talk', + 'bs': u'Page talk', + 'cs': u'Diskuse ke stránce', + 'fo': u'Page talk', + 'gl': u'Page talk', + 'is': u'Blaðsíðuspjall', + 'ja': u'Page talk', + 'ko': u'Page talk', + 'li': u'Page talk', + 'lt': u'Page talk', + 'mk': u'Page talk', + 'sah': u'Page talk', + 'sk': u'Page talk', + 'sr': u'Page talk', + 'ta': u'Page talk', + 'th': u'Page talk', + 'tr': u'Page talk', + 'uk': u'Page talk', + 'yi': u'Page talk', 'zh-min-nan': u'Page talk', }
self.namespaces[252] = { + 'az': u'Index', + 'bg': u'Index', + 'bs': u'Index', + 'cs': u'Index', + 'fo': u'Index', + 'gl': u'Index', + 'is': u'Frumrit', + 'ja': u'Index', + 'ko': u'Index', + 'li': u'Index', + 'lt': u'Index', + 'mk': u'Index', + 'sah': u'Index', + 'sk': u'Index', + 'sr': u'Index', + 'ta': u'Index', + 'th': u'Index', + 'tr': u'Index', + 'uk': u'Index', + 'yi': u'Index', 'zh-min-nan': u'Index', }
self.namespaces[253] = { + 'az': u'Index talk', + 'bg': u'Index talk', + 'bs': u'Index talk', + 'cs': u'Diskuse k indexu', + 'fo': u'Index talk', + 'gl': u'Index talk', + 'is': u'Frumritsspjall', + 'ja': u'Index talk', + 'ko': u'Index talk', + 'li': u'Index talk', + 'lt': u'Index talk', + 'mk': u'Index talk', + 'sah': u'Index talk', + 'sk': u'Index talk', + 'sr': u'Index talk', + 'ta': u'Index talk', + 'th': u'Index talk', + 'tr': u'Index talk', + 'uk': u'Index talk', + 'yi': u'Index talk', 'zh-min-nan': u'Index talk', }
self.namespaces[828] = { + 'cs': u'Module', 'en': u'Module', + 'fr': u'Module', 'it': u'Module', }
self.namespaces[829] = { + 'cs': u'Module talk', 'en': u'Module talk', + 'fr': u'Module talk', 'it': u'Module talk', }
Modified: trunk/pywikipedia/families/wikiversity_family.py =================================================================== --- trunk/pywikipedia/families/wikiversity_family.py 2013-02-25 10:27:05 UTC (rev 11119) +++ trunk/pywikipedia/families/wikiversity_family.py 2013-02-25 11:03:51 UTC (rev 11120) @@ -19,9 +19,6 @@ 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']
Modified: trunk/pywikipedia/families/wikivoyage_family.py =================================================================== --- trunk/pywikipedia/families/wikivoyage_family.py 2013-02-25 10:27:05 UTC (rev 11119) +++ trunk/pywikipedia/families/wikivoyage_family.py 2013-02-25 11:03:51 UTC (rev 11120) @@ -18,7 +18,6 @@ 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[12]['nl'] = [u'Help']
Modified: trunk/pywikipedia/families/wiktionary_family.py =================================================================== --- trunk/pywikipedia/families/wiktionary_family.py 2013-02-25 10:27:05 UTC (rev 11119) +++ trunk/pywikipedia/families/wiktionary_family.py 2013-02-25 11:03:51 UTC (rev 11120) @@ -31,15 +31,14 @@ for lang in self.languages_by_size])
# Override defaults - self.namespaces[2]['ru'] = [u'Участник', u'Участница'] + self.namespaces[6]['be'] = [u'Файл', u'Выява'] + self.namespaces[7]['be'] = [u'Размовы пра файл', 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'] @@ -56,7 +55,6 @@ 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[12]['nl'] = [u'Help'] self.namespaces[9]['ro'] = [u'Discuție MediaWiki', u'Discuţie MediaWiki'] self.namespaces[3]['ca'] = [u'Usuari Discussió'] @@ -591,11 +589,15 @@ }
self.namespaces[828] = { + 'cs': u'Module', 'en': u'Module', + 'vi': u'Module', }
self.namespaces[829] = { + 'cs': u'Module talk', 'en': u'Module talk', + 'vi': u'Module talk', }
# Global bot allowed languages on