Hi Merlijn,

these updates are normaly made by /maintenance/update_namespaces.py bot script 
which calls the namespace via api. I've modified that script to be able dealing 
with all namespace aliases too. Anyway the order of ja: namespace and namespace 
alias has been changed and there is a difference between ja-wiki (1) and other 
projects like ja-wikinews (2). This caused me to change the family.py in r8236 
as default (3) which has valid namespace aliases for all related mediawiki 
families in the right order (<namespace> first, <namespacealiases> behind in 
that list) and to override it in wikipedia_family (4). I do recommend not to 
change the family.py but the related wikia family file. Otherwise all mediawiki 
family files must have these override assignments you can find in 
wikipedia_family.py now.

(1) look at 
http://ja.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=namespaces|namespacealiases
(2) look at 
http://ja.wikinews.org/w/api.php?action=query&meta=siteinfo&siprop=namespaces|namespacealiases
(3) 
http://svn.wikimedia.org/viewvc/pywikipedia/trunk/pywikipedia/family.py?r1=8236&r2=8235&pathrev=8236
(4) 
http://svn.wikimedia.org/viewvc/pywikipedia/trunk/pywikipedia/families/wikipedia_family.py?r1=8236&r2=8235&pathrev=8236

I hope this explanation was understandable.

Greetings

xqt


----- Original Nachricht ----
Von:     Merlijn van Deen <[email protected]>
An:      [email protected]
Datum:   16.04.2011 21:19
Betreff: Re: [Pywikipedia-svn] SVN: [8236] trunk/pywikipedia

> Hi xqt,
> 
> On IRC, someone complained about a bad namespace for "User page:" when
> creating a page on ja.wow.wikia. It was changed in this revision:
> 
> 2010/6/2 <[email protected]>
> 
> > Revision: 8236
> > Author:   xqt
> > Date:     2010-06-02 12:47:02 +0000 (Wed, 02 Jun 2010)
> >
> > Log Message:
> > -----------
> > update namespaces for wikipedia:ja
> >
> >
> > @@ -831,7 +831,7 @@
> >                 'io': u'Uzanto Debato',
> >                 'is': u'Notandaspjall',
> >                 'it': u'Discussioni utente',
> > -                'ja': [u'??????', u'???????'],
> > +                'ja': [u'???????', u'??????'],
> >                 'jv': u'Dhiskusi Panganggo',
> >                 'ka': [u'???????????? ????????', u'????????????
> ????????'],
> >                 'kaa': u"Paydalan?wsh? sa'wbeti",
> >
> >
> While jawiki seems to redirect the ''???????' variant to the '??????'
> variant.
> 
> Is there a reason not to change this back? And what are these updates based
> on? Wikimedia source code?
> 
> Best regards,
> Merlijn
> 

_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to