http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11493
Revision: 11493 Author: xqt Date: 2013-05-04 16:06:08 +0000 (Sat, 04 May 2013) 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/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 2013-05-04 15:51:07 UTC (rev 11492) +++ trunk/pywikipedia/families/wikibooks_family.py 2013-05-04 16:06:08 UTC (rev 11493) @@ -25,62 +25,18 @@ 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[828]['zh'] = [u'模組'] - self.namespaces[3]['ca'] = [u'Usuari Discussió'] - self.namespaces[2]['ca'] = [u'Usuari'] - self.namespaces[829]['ca'] = [u'Mòdul Discussió'] - self.namespaces[828]['ca'] = [u'Mòdul'] - self.namespaces[829]['it'] = [u'Discussioni modulo'] - self.namespaces[828]['it'] = [u'Modulo'] - self.namespaces[829]['eu'] = [u'Modulu eztabaida'] - self.namespaces[828]['eu'] = [u'Modulu'] - self.namespaces[829]['cy'] = [u'Sgwrs modiwl'] - self.namespaces[828]['cy'] = [u'Modiwl'] - self.namespaces[829]['ar'] = [u'نقاش الوحدة'] - self.namespaces[828]['ar'] = [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[829]['et'] = [u'Mooduli arutelu'] - self.namespaces[828]['et'] = [u'Moodul'] - self.namespaces[829]['gl'] = [u'Conversa módulo'] - self.namespaces[829]['id'] = [u'Pembicaraan Modul'] - self.namespaces[828]['id'] = [u'Modul'] - self.namespaces[829]['es'] = [u'Módulo discusión'] - self.namespaces[828]['es'] = [u'Módulo'] - self.namespaces[829]['ru'] = [u'Обсуждение модуля'] - self.namespaces[828]['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'] - self.namespaces[829]['tt'] = [u'Обсуждение модуля'] - self.namespaces[828]['tt'] = [u'Модуль'] + self.namespaces[3]['ca'] = [u'Usuari Discussió'] + self.namespaces[2]['ca'] = [u'Usuari'] self.namespaces[14]['tr'] = [u'Kategori', u'KAT'] - self.namespaces[829]['cv'] = [u'Обсуждение модуля'] - self.namespaces[828]['cv'] = [u'Модуль'] - self.namespaces[9]['ro'] = [u'Discuție MediaWiki', u'Discuţie MediaWiki'] - 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[829]['pl'] = [u'Dyskusja modułu'] - self.namespaces[828]['pl'] = [u'Moduł'] - 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[829]['uk'] = [u'Обговорення модуля'] - self.namespaces[828]['uk'] = [u'Модуль'] - self.namespaces[15]['bn'] = [u'বিষয়শ্রেণী আলোচনা'] - self.namespaces[14]['bn'] = [u'বিষয়শ্রেণী'] - self.namespaces[829]['bn'] = [u'মডিউল আলাপ'] - self.namespaces[828]['bn'] = [u'মডিউল'] self.namespaces[13]['da'] = [u'Hjælp diskussion', u'Hjælp-diskussion'] - self.namespaces[829]['da'] = [u'Moduldiskussion'] - self.namespaces[828]['da'] = [u'Modul'] self.namespaces[9]['da'] = [u'MediaWiki diskussion', u'MediaWiki-diskussion'] - self.namespaces[829]['fa'] = [u'بحث پودمان'] - self.namespaces[828]['fa'] = [u'پودمان'] self.namespaces[11]['hi'] = [u'साँचा वार्ता'] self.namespaces[10]['hi'] = [u'साँचा'] self.namespaces[15]['hi'] = [u'श्रेणी वार्ता'] @@ -89,16 +45,14 @@ self.namespaces[2]['hi'] = [u'सदस्य'] self.namespaces[9]['hi'] = [u'मीडियाविकि वार्ता'] self.namespaces[8]['hi'] = [u'मीडियाविकि'] - self.namespaces[829]['ja'] = [u'モジュール・トーク'] - self.namespaces[828]['ja'] = [u'モジュール'] - self.namespaces[828]['ka'] = [u'მოდული'] - self.namespaces[829]['ko'] = [u'모듈토론'] - self.namespaces[828]['ko'] = [u'모듈'] - self.namespaces[829]['sk'] = [u'Diskusia k modulu'] - self.namespaces[828]['sk'] = [u'Modul'] - self.namespaces[828]['ms'] = [u'Modul'] - self.namespaces[829]['sl'] = [u'Pogovor o modulu'] - self.namespaces[828]['sl'] = [u'Modul'] + 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'বিষয়শ্রেণী আলোচনা'] + 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']
# Most namespaces are inherited from family.Family. # Translation used on all wikis for the different namespaces. @@ -435,24 +389,28 @@ 'az': u'Vikiuşaq', 'en': u'Wikijunior', 'tr': u'Vikiçocuk', + 'zh': u'Wikijunior', }
self.namespaces[111] = { 'az': u'Vikiuşaq müzakirəsi', 'en': u'Wikijunior talk', 'tr': u'Vikiçocuk tartışma', + 'zh': u'Wikijunior talk', }
self.namespaces[112] = { 'en': u'Subject', 'si': u'විෂයය', 'tr': u'Kitaplık', + 'zh': u'Subject', }
self.namespaces[113] = { 'en': u'Subject talk', 'si': u'විෂයය සාකච්ඡාව', 'tr': u'Kitaplık tartışma', + 'zh': u'Subject talk', }
self.namespaces[114] = {
Modified: trunk/pywikipedia/families/wikidata_family.py =================================================================== --- trunk/pywikipedia/families/wikidata_family.py 2013-05-04 15:51:07 UTC (rev 11492) +++ trunk/pywikipedia/families/wikidata_family.py 2013-05-04 16:06:08 UTC (rev 11493) @@ -17,7 +17,6 @@ }
# 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.
Modified: trunk/pywikipedia/families/wikinews_family.py =================================================================== --- trunk/pywikipedia/families/wikinews_family.py 2013-05-04 15:51:07 UTC (rev 11492) +++ trunk/pywikipedia/families/wikinews_family.py 2013-05-04 16:06:08 UTC (rev 11493) @@ -20,41 +20,20 @@ for lang in self.languages_by_size])
# Override defaults - self.namespaces[829]['ru'] = [u'Обсуждение модуля'] - self.namespaces[828]['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'] 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[828]['zh'] = [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[829]['ca'] = [u'Mòdul Discussió'] - self.namespaces[828]['ca'] = [u'Mòdul'] - self.namespaces[829]['ko'] = [u'모듈토론'] - self.namespaces[828]['ko'] = [u'모듈'] - self.namespaces[829]['it'] = [u'Discussioni modulo'] - self.namespaces[828]['it'] = [u'Modulo'] - self.namespaces[829]['fa'] = [u'بحث پودمان'] - self.namespaces[828]['fa'] = [u'پودمان'] - self.namespaces[829]['ar'] = [u'نقاش الوحدة'] - self.namespaces[828]['ar'] = [u'وحدة'] - self.namespaces[3]['pl'] = [u'Dyskusja wikireportera', u'Dyskusja wikireporterki'] - self.namespaces[2]['pl'] = [u'Wikireporter', u'Wikireporterka'] - self.namespaces[829]['pl'] = [u'Dyskusja modułu'] - self.namespaces[828]['pl'] = [u'Moduł'] - self.namespaces[829]['uk'] = [u'Обговорення модуля'] - self.namespaces[828]['uk'] = [u'Модуль'] 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[829]['ja'] = [u'モジュール・トーク'] - self.namespaces[828]['ja'] = [u'モジュール'] - self.namespaces[829]['es'] = [u'Módulo discusión'] - self.namespaces[828]['es'] = [u'Módulo'] + self.namespaces[3]['pl'] = [u'Dyskusja wikireportera', u'Dyskusja wikireporterki'] + self.namespaces[2]['pl'] = [u'Wikireporter', u'Wikireporterka']
# Most namespaces are inherited from family.Family. # Translation used on all wikis for the different namespaces.
Modified: trunk/pywikipedia/families/wikisource_family.py =================================================================== --- trunk/pywikipedia/families/wikisource_family.py 2013-05-04 15:51:07 UTC (rev 11492) +++ trunk/pywikipedia/families/wikisource_family.py 2013-05-04 16:06:08 UTC (rev 11493) @@ -263,6 +263,7 @@ 'hu': u'Szerző', 'hy': u'Հեղինակ', 'id': u'Pengarang', + 'is': u'Gátt', 'kn': u'ಸಂಪುಟ', 'ko': u'저자', 'ml': u'രചയിതാവ്', @@ -294,6 +295,7 @@ 'hu': u'Szerző vita', 'hy': u'Հեղինակի քննարկում', 'id': u'Pembicaraan Pengarang', + 'is': u'Gáttarspjall', 'kn': u'ಸಂಪುಟ ಚರ್ಚೆ', 'ko': u'저자토론', 'ml': u'രചയിതാവിന്റെ സംവാദം', @@ -328,6 +330,7 @@ 'hr': u'Stranica', 'hy': u'Պորտալ', 'id': u'Indeks', + 'is': u'Höfundur', 'it': u'Autore', 'kn': u'ಕರ್ತೃ', 'la': u'Scriptor', @@ -366,6 +369,7 @@ 'hr': u'Razgovor o stranici', 'hy': u'Պորտալի քննարկում', 'id': u'Pembicaraan Indeks', + 'is': u'Höfundarspjall', 'it': u'Discussioni autore', 'kn': u'ಕರ್ತೃ ಚರ್ಚೆ', 'la': u'Disputatio Scriptoris', @@ -594,6 +598,7 @@ 'bg': u'Page', 'bs': u'Page', 'cs': u'Stránka', + 'fi': u'Sivu', 'fo': u'Page', 'gl': u'Page', 'is': u'Blaðsíða', @@ -618,6 +623,7 @@ 'bg': u'Page talk', 'bs': u'Page talk', 'cs': u'Diskuse ke stránce', + 'fi': u'Keskustelu sivusta', 'fo': u'Page talk', 'gl': u'Page talk', 'is': u'Blaðsíðuspjall', @@ -642,6 +648,7 @@ 'bg': u'Index', 'bs': u'Index', 'cs': u'Index', + 'fi': u'Hakemisto', 'fo': u'Index', 'gl': u'Index', 'is': u'Frumrit', @@ -666,6 +673,7 @@ 'bg': u'Index talk', 'bs': u'Index talk', 'cs': u'Diskuse k indexu', + 'fi': u'Keskustelu hakemistosta', 'fo': u'Index talk', 'gl': u'Index talk', 'is': u'Frumritsspjall',
Modified: trunk/pywikipedia/families/wikiversity_family.py =================================================================== --- trunk/pywikipedia/families/wikiversity_family.py 2013-05-04 15:51:07 UTC (rev 11492) +++ trunk/pywikipedia/families/wikiversity_family.py 2013-05-04 16:06:08 UTC (rev 11493) @@ -56,7 +56,7 @@ 'fr': [u'Wikiversité', u'Wikiversity'], 'it': [u'Wikiversità', u'Wikiversity'], 'ja': u'Wikiversity', - 'ko': u'Wikiversity', + 'ko': [u'위키배움터', u'Wikiversity'], 'pt': [u'Wikiversidade', u'Wikiversity'], 'ru': [u'Викиверситет', u'Wikiversity'], 'sl': [u'Wikiverza', u'Wikiversity'], @@ -75,7 +75,7 @@ 'fr': u'Discussion Wikiversité', 'it': u'Discussioni Wikiversità', 'ja': [u'Wikiversity・トーク', u'Wikiversity talk', u'Wikiversity‐ノート'], - 'ko': u'Wikiversity토론', + 'ko': [u'위키배움터토론', u'Wikiversity토론'], 'pt': u'Wikiversidade Discussão', 'ru': u'Обсуждение Викиверситета', 'sl': u'Pogovor o Wikiverzi', @@ -107,6 +107,7 @@ 'fr': u'Projet', 'it': u'Corso', 'ja': u'Portal', + 'ko': u'포털', } self.namespaces[103] = { 'ar': u'نقاش البوابة', @@ -115,6 +116,7 @@ 'fr': u'Discussion Projet', 'it': u'Discussioni corso', 'ja': u'Portal‐ノート', + 'ko': u'포털토론', } self.namespaces[104] = { 'ar': u'موضوع',
Modified: trunk/pywikipedia/families/wiktionary_family.py =================================================================== --- trunk/pywikipedia/families/wiktionary_family.py 2013-05-04 15:51:07 UTC (rev 11492) +++ trunk/pywikipedia/families/wiktionary_family.py 2013-05-04 16:06:08 UTC (rev 11493) @@ -155,7 +155,7 @@ 'cy': [u'Wiciadur', u'Wiktionary'], 'da': u'Wiktionary', 'de': [u'Wiktionary', u'WT'], - 'dv': u'Wiktionary', + 'dv': [u'ވިކިރަދީފު', u'Wiktionary'], 'dz': u'Wiktionary', 'el': [u'Βικιλεξικό', u'Wiktionary'], 'en': [u'Wiktionary', u'WT'], @@ -312,7 +312,7 @@ 'cy': u'Sgwrs Wiciadur', 'da': [u'Wiktionary diskussion', u'Wiktionary-diskussion'], 'de': u'Wiktionary Diskussion', - 'dv': u'Wiktionary talk', + 'dv': [u'ވިކިރަދީފު ޚިޔާ', u'Wiktionary talk'], 'dz': u'Wiktionary talk', 'el': [u'Συζήτηση βικιλεξικού', u'Βικιλεξικό συζήτηση'], 'en': u'Wiktionary talk',
pywikipedia-svn@lists.wikimedia.org