https://bugzilla.wikimedia.org/show_bug.cgi?id=16672


Daniel Kinzler <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




--- Comment #5 from Daniel Kinzler <[email protected]>  2008-12-18 10:11:40 
UTC ---
thanks for fixing this, but the way it is now seems grossly inconsistent.
Specifically, the following points seem odd:

a) canonical names use underscores while the rest uses space
b) custom namespaces shouldn't have a canonical name
c) having canonical names in attributes vs. aliases in a separate section.

Why and how canonical names are different from aliases is something users (and
even users of the api) should not need to care about. It's an artifical,
technical distinction which might go away at some point.

I suggest to unify the output format:

<namespaces>
      <ns id="-2" preferred="yes">Média</ns>
      <ns id="-2" canonical="yes">Media</ns>
      <ns id="-1" preferred="yes">Speciální</ns>
      <ns id="-1" canonical="yes">Special</ns>
      <ns id="0" canonical="yes" preferred="yes"/>
      <ns id="1" preferred="yes">Diskuse</ns>
      <ns id="1" canonical="yes">Talk</ns>
      <ns id="4" preferred="yes">WP</ns>
      <ns id="4" canonical="yes">Project</ns>
      <ns id="6" preferred="yes">Soubor</ns>
      <ns id="6" canonical="yes">File</ns>
      <ns id="6" >Image</ns>
      <ns id="7" preferred="yes">Soubor diskuse</ns>
      <ns id="7" canonical="yes">File talk</ns>
      <ns id="7" >Image talk</ns>
</namespaces>

That is, for each entry, just say if it's preferred (i.e. what the system
itself generates) and if it's canonical. But that info can easily be ignored,
and I can build a list of all namespaces and a map namespace ids without having
to think about canonical, alias, etc.

If this info is split up into separate sections or not, i don't really care. 

Info about subpages would have to be delivered separately i guess. Or we could
use a more complex scheme:
<namespaces>
  <ns id="6" subpages="">
    <nsname canonical="yes">File</nsname>
    <nsname deprecated="yes">Image</nsname>
    <nsname preferred="yes">Soubor</nsname>
    <nsname >Obraz</nsname>
  </ns>
</namespaces>

that should cover everything. but would be quite incompatible to what we have
now.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to