Page MenuHomePhabricator

Rename namespaces on mr.wikisource.org
Closed, ResolvedPublic

Description

Please create 'अनुक्रमणिका' namespace.

https://mr.wikisource.org/wiki/%E0%A4%AE%E0%A4%BF%E0%A4%A1%E0%A4%BF%E0%A4%AF%E0%A4%BE%E0%A4%B5%E0%A4%BF%E0%A4%95%E0%A5%80:Proofreadpage_index_namespace


Version: unspecified
Severity: enhancement

Details

Reference
bz34378

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:12 AM
bzimport set Reference to bz34378.
bzimport added a subscriber: Unknown Object (MLST).

It'll convenient to add also two alias Index: for अनुक्रमणिका and Page: for namespace 104.

Note mr.wikisource seems to already have the namespaceses for proofread page.
To quote the config file:

'mrwikisource' => array(
    100 => 'दालन', // Portal
    101 => 'दालन_चर्चा', // Portal talk
    102 => 'सूची', // Author
    103 => 'सूची_चर्चा', // Author talk
    104 => 'पान', // Page
    105 => 'पान_चर्चा', // Page talk
    106 => 'साहित्यिक', // Index
    107 => 'साहित्यिक_चर्चा', // Index talk

So proofread page probably just needs to be associated with the right namespace in whatever hacky way it does that.

(In reply to comment #2)

Note mr.wikisource seems to already have the namespaceses for proofread page.
To quote the config file:

'mrwikisource' => array(
    100 => 'दालन', // Portal
    101 => 'दालन_चर्चा', // Portal talk
    102 => 'सूची', // Author
    103 => 'सूची_चर्चा', // Author talk
    104 => 'पान', // Page
    105 => 'पान_चर्चा', // Page talk
    106 => 'साहित्यिक', // Index
    107 => 'साहित्यिक_चर्चा', // Index talk

So proofread page probably just needs to be associated with the right namespace
in whatever hacky way it does that.

Please create the alias in English.

http://mr.wikisource.org/w/api.php?action=query&meta=siteinfo&siprop=namespaces&format=dumpfm

Same name is used for alias.

Also, correct translation for Index is 'अनुक्रमणिका'. Can 106 be renamed to 'अनुक्रमणिका'? Will make sure that installation of new plugin do not break.

Also, correct translation for Index is 'अनुक्रमणिका'. Can 106 be renamed to
'अनुक्रमणिका'

Yes - Generally how renaming namespaces work is the old name is made an alias of the new name, and a script moves all pages in the old namespace to the new namespace.

So just to get everything in one place for the shell users, what is wanted is:

  • Rename namespace 106 from साहित्यिक to अनुक्रमणिका
  • Create an alias to namespace 106 named Index (and similar for 107).

You shold probably specify if you want namespace 107 ( the corresponding talk namespace ) also renamed.

(In reply to comment #4)

Also, correct translation for Index is 'अनुक्रमणिका'. Can 106 be renamed to
'अनुक्रमणिका'

Yes - Generally how renaming namespaces work is the old name is made an alias
of the new name, and a script moves all pages in the old namespace to the new
namespace.

So just to get everything in one place for the shell users, what is wanted is:

  • Rename namespace 106 from साहित्यिक to अनुक्रमणिका
  • Create an alias to namespace 106 named Index (and similar for 107).

You shold probably specify if you want namespace 107 ( the corresponding talk
namespace ) also renamed.

  • Rename namespace 106 from साहित्यिक to अनुक्रमणिका. Add alias 'Index'
  • Rename namespace 107 from 'साहित्यिक चर्चा' to 'अनुक्रमणिका चर्चा'. Add alias 'Index talk'
  • Add alias for namespace 100. New alias Portal
  • Add alias for namespace 101. New alias 'Portal talk'
  • Rename namespace 102 from 'सूची' to 'साहित्यिक'. Add alias is 'Author'
  • Rename namespace 103 from 'सूची चर्चा' to 'साहित्यिक चर्चा'. Add alias is 'Author talk'
  • Add alias for namespace 104. New alias Page
  • Add alias for namespace 105. New alias 'Page talk'

(In reply to comment #5)

  • Rename namespace 106 from साहित्यिक to अनुक्रमणिका. Add alias 'Index'
  • Rename namespace 107 from 'साहित्यिक चर्चा' to 'अनुक्रमणिका चर्चा'. Add alias

'Index talk'

  • Add alias for namespace 100. New alias Portal
  • Add alias for namespace 101. New alias 'Portal talk'
  • Rename namespace 102 from 'सूची' to 'साहित्यिक'. Add alias is 'Author'
  • Rename namespace 103 from 'सूची चर्चा' to 'साहित्यिक चर्चा'. Add alias is

'Author talk'

  • Add alias for namespace 104. New alias Page
  • Add alias for namespace 105. New alias 'Page talk'

Done, http://mr.wikisource.org/w/api.php?action=query&meta=siteinfo&siprop=general|namespaces|namespacealiases|statistics

Can you confirm?

I also put the old names of the index/author namespaces as namespace aliases

Thanks Sam. Currently trying to get the Proofread module working. Will change the status once it start working. If there are any other changes required in namespace, will update in this ticket itself.

Hi Sam,

The namespace output should look as follow. <namespaces> and <namespacealiases> section.

<?xml version="1.0"?>
<api>

<query>
  <general mainpage="मुखपृष्ठ" base="http://mr.wikisource.org/wiki/%E0%A4%AE%E0%A5%81%E0%A4%96%E0%A4%AA%E0%A5%83%E0%A4%B7%E0%A5%8D%E0%A4%A0" sitename="विकिस्रोत" generator="MediaWiki 1.18wmf1" phpversion="5.3.2-2wm1" phpsapi="apache2handler" dbtype="mysql" dbversion="5.1.53-wm-log" rev="109351" case="first-letter" rights="Creative Commons Attribution-Share Alike 3.0 Unported" lang="mr" fallback8bitEncoding="windows-1252" writeapi="" timezone="Asia/Kolkata" timeoffset="330" articlepath="/wiki/$1" scriptpath="/w" script="/w/index.php" variantarticlepath="" server="//mr.wikisource.org" wikiid="mrwikisource" time="2012-02-14T17:24:48Z" misermode="" />
  <namespaces>


    <ns id="-2" case="first-letter" canonical="Media" xml:space="preserve">मिडिया</ns>
    <ns id="-1" case="first-letter" canonical="Special" xml:space="preserve">विशेष</ns>
    <ns id="0" case="first-letter" subpages="" content="" xml:space="preserve" />
    <ns id="1" case="first-letter" subpages="" canonical="Talk" xml:space="preserve">चर्चा</ns>
    <ns id="2" case="first-letter" subpages="" canonical="User" xml:space="preserve">सदस्य</ns>
    <ns id="3" case="first-letter" subpages="" canonical="User talk" xml:space="preserve">सदस्य चर्चा</ns>
    <ns id="4" case="first-letter" subpages="" canonical="Project" xml:space="preserve">विकिस्रोत</ns>
    <ns id="5" case="first-letter" subpages="" canonical="Project talk" xml:space="preserve">विकिस्रोत चर्चा</ns>

    <ns id="6" case="first-letter" canonical="File" xml:space="preserve">चित्र</ns>
    <ns id="7" case="first-letter" subpages="" canonical="File talk" xml:space="preserve">चित्र चर्चा</ns>
    <ns id="8" case="first-letter" canonical="MediaWiki" xml:space="preserve">मिडियाविकी</ns>
    <ns id="9" case="first-letter" subpages="" canonical="MediaWiki talk" xml:space="preserve">मिडियाविकी चर्चा</ns>
    <ns id="10" case="first-letter" subpages="" canonical="Template" xml:space="preserve">साचा</ns>
    <ns id="11" case="first-letter" subpages="" canonical="Template talk" xml:space="preserve">साचा चर्चा</ns>
    <ns id="12" case="first-letter" subpages="" canonical="Help" xml:space="preserve">सहाय्य</ns>
    <ns id="13" case="first-letter" subpages="" canonical="Help talk" xml:space="preserve">सहाय्य चर्चा</ns>
    <ns id="14" case="first-letter" canonical="Category" xml:space="preserve">वर्ग</ns>
    <ns id="15" case="first-letter" subpages="" canonical="Category talk" xml:space="preserve">वर्ग चर्चा</ns>
    <ns id="100" case="first-letter" canonical="Portal" xml:space="preserve">दालन</ns>
    <ns id="101" case="first-letter" subpages="" canonical="Portal talk" xml:space="preserve">दालन चर्चा</ns>
    <ns id="102" case="first-letter" canonical="Author" xml:space="preserve">साहित्यिक</ns>
    <ns id="103" case="first-letter" canonical="Author talk" xml:space="preserve">साहित्यिक चर्चा</ns>
    <ns id="104" case="first-letter" canonical="Page" xml:space="preserve">पान</ns>
    <ns id="105" case="first-letter" canonical="Page talk" xml:space="preserve">पान चर्चा</ns>
    <ns id="106" case="first-letter" canonical="Index" xml:space="preserve">अनुक्रमणिका</ns>
    <ns id="107" case="first-letter" canonical="Index talk" xml:space="preserve">अनुक्रमणिका चर्चा</ns>
  </namespaces>
  <namespacealiases>


    <ns id="-2" case="first-letter" canonical="Media" xml:space="preserve">Media</ns>
    <ns id="-1" case="first-letter" canonical="Special" xml:space="preserve">Special</ns>
    <ns id="0" case="first-letter" subpages="" content="" xml:space="preserve" />
    <ns id="1" case="first-letter" subpages="" canonical="Talk" xml:space="preserve">Talk</ns>
    <ns id="2" case="first-letter" subpages="" canonical="User" xml:space="preserve">User</ns>
    <ns id="3" case="first-letter" subpages="" canonical="User talk" xml:space="preserve">User talk</ns>
    <ns id="4" case="first-letter" subpages="" canonical="Project" xml:space="preserve">Wikisource</ns>
    <ns id="5" case="first-letter" subpages="" canonical="Project talk" xml:space="preserve">Wikisource talk</ns>
    <ns id="6" case="first-letter" canonical="File" xml:space="preserve">File</ns>
    <ns id="7" case="first-letter" subpages="" canonical="File talk" xml:space="preserve">File talk</ns>
    <ns id="8" case="first-letter" canonical="MediaWiki" xml:space="preserve">MediaWiki</ns>
    <ns id="9" case="first-letter" subpages="" canonical="MediaWiki talk" xml:space="preserve">MediaWiki talk</ns>
    <ns id="10" case="first-letter" subpages="" canonical="Template" xml:space="preserve">Template</ns>
    <ns id="11" case="first-letter" subpages="" canonical="Template talk" xml:space="preserve">Template talk</ns>
    <ns id="12" case="first-letter" canonical="Help" xml:space="preserve">Help</ns>
    <ns id="13" case="first-letter" canonical="Help talk" xml:space="preserve">Help talk</ns>
    <ns id="14" case="first-letter" canonical="Category" xml:space="preserve">Category</ns>
    <ns id="15" case="first-letter" canonical="Category talk" xml:space="preserve">Category talk</ns>
    <ns id="100" case="first-letter" subpages="" canonical="Portal" xml:space="preserve">Portal</ns>
    <ns id="101" case="first-letter" subpages="" canonical="Portal talk" xml:space="preserve">Portal talk</ns>
    <ns id="102" case="first-letter" subpages="" canonical="Author" content="" xml:space="preserve">Author</ns>
    <ns id="103" case="first-letter" subpages="" canonical="Author talk" xml:space="preserve">Author talk</ns>
    <ns id="104" case="first-letter" canonical="Page" content="" xml:space="preserve">Page</ns>
    <ns id="105" case="first-letter" canonical="Page talk" xml:space="preserve">Page talk</ns>
    <ns id="106" case="first-letter" canonical="Index" content="" xml:space="preserve">Index</ns>
    <ns id="107" case="first-letter" canonical="Index talk" xml:space="preserve">Index talk</ns>


  </namespacealiases>
</query>

If

<namespace>
<ns id="12" case="first-letter" subpages="" canonical="Help"
xml:space="preserve">सहाय्य</ns>
</namespace>

makes sure that Help: and सहाय्य: both are supported, then <namespacealiases> may look like as follow.

<namespacealiases>

<ns id="6" xml:space="preserve">Image</ns>
<ns id="7" xml:space="preserve">Image talk</ns>

</namespacealiases>

I just figure out the significance of canonical.

After looking at
http://ta.wikisource.org/w/api.php?action=query&meta=siteinfo&siprop=general|namespaces|namespacealiases|statistics
and
http://en.wikisource.org/w/api.php?action=query&meta=siteinfo&siprop=general|namespaces|namespacealiases|statistics

Came upon the following format.

<namespaces>
  <ns id="-2" case="first-letter" canonical="Media" xml:space="preserve">मिडिया</ns>
  <ns id="-1" case="first-letter" canonical="Special" xml:space="preserve">विशेष</ns>
  <ns id="0" case="first-letter" subpages="" content="" xml:space="preserve" />
  <ns id="1" case="first-letter" subpages="" canonical="Talk" xml:space="preserve">चर्चा</ns>
  <ns id="2" case="first-letter" subpages="" canonical="User" xml:space="preserve">सदस्य</ns>
  <ns id="3" case="first-letter" subpages="" canonical="User talk" xml:space="preserve">सदस्य चर्चा</ns>
  <ns id="4" case="first-letter" subpages="" canonical="Project" xml:space="preserve">विकिस्रोत</ns>
  <ns id="5" case="first-letter" subpages="" canonical="Project talk" xml:space="preserve">विकिस्रोत चर्चा</ns>
  <ns id="6" case="first-letter" canonical="File" xml:space="preserve">चित्र</ns>
  <ns id="7" case="first-letter" subpages="" canonical="File talk" xml:space="preserve">चित्र चर्चा</ns>
  <ns id="8" case="first-letter" canonical="MediaWiki" xml:space="preserve">मिडियाविकी</ns>
  <ns id="9" case="first-letter" subpages="" canonical="MediaWiki talk" xml:space="preserve">मिडियाविकी चर्चा</ns>
  <ns id="10" case="first-letter" subpages="" canonical="Template" xml:space="preserve">साचा</ns>
  <ns id="11" case="first-letter" subpages="" canonical="Template talk" xml:space="preserve">साचा चर्चा</ns>
  <ns id="12" case="first-letter" subpages="" canonical="Help" xml:space="preserve">सहाय्य</ns>
  <ns id="13" case="first-letter" subpages="" canonical="Help talk" xml:space="preserve">सहाय्य चर्चा</ns>
  <ns id="14" case="first-letter" canonical="Category" xml:space="preserve">वर्ग</ns>
  <ns id="15" case="first-letter" subpages="" canonical="Category talk" xml:space="preserve">वर्ग चर्चा</ns>
</namespaces>
<namespacealiases>
  <ns id="6" xml:space="preserve">Image</ns>
  <ns id="7" xml:space="preserve">Image talk</ns>
</namespacealiases>

Just pasting me a list of modified XML entries doesn't help.

I can't read the script, therefore it pretty much looks like squiggles.

You don't need to worry about the canonical ones

If any entries are wrong, please tell me what's wrong and I can attempt to correct/update them

Hi Sam,
When the canonical names are same across all sites, it is easy to get help from the people who understand roman script. Hence I am worried about the canonical name.

for the <namespaces> section
id | Canonical | Value (<ns>_this_</ns>)

+==============+

102 | 'Author' | 'साहित्यिक'
103 | 'Author talk' | 'साहित्यिक चर्चा'
104 | 'Page' | 'पान'
105 | 'Page talk' | 'पान चर्चा'
106 | 'Index' | 'अनुक्रमणिका'
107 | 'Index talk' | 'अनुक्रमणिका चर्चा'

For <namespacealiases> section

id | Value (<ns>_this_</ns>)

+

6 | 'Image'
7 | 'Image talk'

What are you wanting me to do? The current additions are as below

Namespace Aliases:

'mrwikisource' => array(
    'Portal' => 100,
    'Portal_talk' => 101,
    'Author' => 102,
    'Author_talk' => 103,
    'सूची' => 102,
    'सूची_चर्चा' => 103,
    'Page' => 104,
    'Page_talk' => 105,
    'Index' => 106,
    'Index_talk' => 107,
    'साहित्यिक' => 106,
    'साहित्यिक_चर्चा' => 107,
),

Extra namespaces:

'mrwikisource' => array(
    100 => 'दालन', // Portal
    101 => 'दालन_चर्चा', // Portal talk
    102 => 'साहित्यिक', // Author
    103 => 'साहित्यिक_चर्चा', // Author talk
    104 => 'पान', // Page
    105 => 'पान_चर्चा', // Page talk
    106 => 'अनुक्रमणिका', // Index
    107 => 'अनुक्रमणिका_चर्चा', // Index talk
),

Fixed via IRC private messages

Change 815776 had a related patch set uploaded (by Southparkfan; author: Southparkfan):

[mediawiki/core@master] ResourceLoader: replace $wgRequest global with RequestContext

https://gerrit.wikimedia.org/r/815776